MCP (Model Context Protocol)
Lingo.dev MCP Integration connects AI tools directly to Lingo.dev's translation capabilities using the Model Context Protocol. This allows you to translate content without leaving your preferred AI environment.
Unlike the JavaScript and PHP SDKs which require direct code integration, MCP provides translation functionality through AI tool interfaces like Cursor, Claude Desktop, and VS Code extensions.
What is Model Context Protocol
Model Context Protocol allows AI tools to access external services like Lingo.dev. When you ask your AI tool to translate content, it uses Lingo.dev's translation engine behind the scenes through the MCP connection.
Supported AI Tools
Lingo.dev MCP Integration works with these AI tools:
- Cursor — AI-powered code editor
- Claude Desktop — Anthropic's AI assistant
- Cline for VS Code — VS Code extension for AI assistance
Basic Command
All MCP integrations use this command:
npx -y lingo.dev mcp <api-key>
Replace <api-key>
with your project API key from the Lingo.dev dashboard.
Cursor Setup
Configure Cursor for Lingo.dev:
- Open Cursor Settings
- Select the MCP tab
- Click + Add new MCP server
- Configure with:
- Name: Lingo.dev
- Type: command
- Command:
npx -y lingo.dev mcp <api-key>
- Look for green status indicator and "translate" tool in the list
The integration appears as a connected MCP server with translation capabilities.
Claude Desktop Setup
Configure Claude Desktop for Lingo.dev:
- Open Settings in Claude desktop
- Navigate to the Developer tab
- Click Edit Config to open configuration file
- Add this JSON configuration:
{
"mcpServers": {
"lingodotdev": {
"command": "npx",
"args": ["-y", "lingo.dev", "mcp", "<api-key>"]
}
}
}
- Save the file and restart Claude
- Look for hammer icon in chat input showing MCP connection
Cline for VS Code Setup
Configure Cline extension for Lingo.dev:
- Open Cline sidebar (
Cmd+Shift+P
, type > cline: focus on view) - Click MCP Servers icon in top right
- Select Configure MCP Servers
- Add this JSON configuration:
{
"mcpServers": {
"lingodotdev": {
"command": "npx",
"args": ["-y", "lingo.dev", "mcp", "<api-key>"]
}
}
}
- Save the file
- Verify "lingodotdev" server appears with "translate" tool available
Using MCP Translation
Request translations through AI tool interface:
Translate this paragraph to Spanish using Lingo.dev
Use Lingo.dev to translate this JSON file to German
Translate these chat messages to French with Lingo.dev
The AI tool handles the translation request through the MCP connection, using Lingo.dev's translation engine automatically.
Translation Capabilities
MCP integration provides access to:
- Text translation — Single strings and paragraphs
- Object translation — JSON and structured data
- Chat translation — Conversation arrays
- Language detection — Automatic source language identification
- Multiple target languages — Batch translation support
The exact capabilities depend on how the AI tool implements the MCP integration.
Troubleshooting
Verify MCP connection:
- Check that the API key is correct
- Ensure the AI tool shows active MCP server status
- Restart the AI tool after configuration changes
- Look for "translate" tool in available MCP tools list
Connection issues usually indicate incorrect API key or configuration syntax errors.