A Model Context Protocol (MCP) Server for Lara Translate API, enabling powerful translation capabilities with support for language detection, context-aware translations and translation memories.
Model Context Protocol (MCP) is an open standardized communication protocol that enables AI applications to connect with external tools, data sources, and services. Think of MCP like a USB-C port for AI applications - just as USB-C provides a standardized way to connect devices to various peripherals, MCP provides a standardized way to connect AI models to different data sources and tools.
Lara Translate MCP Server enables AI applications to access Lara Translate's powerful translation capabilities through this standardized protocol.
How Lara Translate MCP WorksMore info about Model Context Protocol on: https://modelcontextprotocol.io/
Lara Translate MCP Server implements the Model Context Protocol to provide seamless translation capabilities to AI applications. The integration follows this flow:
This integration architecture allows AI applications to access professional-grade translations without implementing the API directly, while maintaining the security of your API credentials and offering flexibility to adjust translation parameters through natural language instructions.
Why to use Lara inside an LLMIntegrating Lara with LLMs creates a powerful synergy that significantly enhances translation quality for non-English languages.
Why General LLMs Fall Short in TranslationWhile large language models possess broad linguistic capabilities, they often lack the specialized expertise and up-to-date terminology required for accurate translations in specific domains and languages.
Laraâs Domain-Specific AdvantageLara overcomes this limitation by leveraging Translation Language Models (T-LMs) trained on billions of professionally translated segments. These models provide domain-specific machine translation that captures cultural nuances and industry terminology that generic LLMs may miss. The result: translations that are contextually accurate and sound natural to native speakers.
Designed for Non-English StrengthLara has a strong focus on non-English languages, addressing the performance gap found in models such as GPT-4. The dominance of English in datasets such as Common Crawl and Wikipedia results in lower quality output in other languages. Lara helps close this gap by providing higher quality understanding, generation, and restructuring in a multilingual context.
Faster, Smarter Multilingual PerformanceBy offloading complex translation tasks to specialized T-LMs, Lara reduces computational overhead and minimizes latencyâa common issue for LLMs handling non-English input. Its architecture processes translations in parallel with the LLM, enabling for real-time, high-quality output without compromising speed or efficiency.
Cost-Efficient Translation at ScaleLara also lowers the cost of using models like GPT-4 in non-English workflows. Since tokenization (and pricing) is optimized for English, using Lara allows translation to take place before hitting the LLM, meaning that only the translated English content is processed. This improves cost efficiency and supports competitive scalability for global enterprises.
translate - Translate text between languagesInputs:
text
(array): An array of text blocks to translate, each with:
text
(string): The text contenttranslatable
(boolean): Whether this block should be translatedsource
(optional string): Source language code (e.g., 'en-EN')target
(string): Target language code (e.g., 'it-IT')context
(optional string): Additional context to improve translation qualityinstructions
(optional string[]): Instructions to adjust translation behaviorsource_hint
(optional string): Guidance for language detectionReturns: Translated text blocks maintaining the original structure
Translation Memories Tools list_memories - List saved translation memoriesReturns: Array of memories and their details
create_memory - Create a new translation memoryInputs:
name
(string): Name of the new memoryexternal_id
(optional string): ID of the memory to import from MyMemory (e.g., 'ext_my_[MyMemory ID]')Returns: Created memory data
update_memory - Update translation memory nameInputs:
id
(string): ID of the memory to updatename
(string): The new name for the memoryReturns: Updated memory data
delete_memory - Delete a translation memoryInputs:
id
(string): ID of the memory to deleteReturns: Deleted memory data
add_translation - Add a translation unit to memoryInputs:
id
(string | string[]): ID or IDs of memories where to add the translation unitsource
(string): Source language codetarget
(string): Target language codesentence
(string): The source sentencetranslation
(string): The translated sentencetuid
(optional string): Translation Unit unique identifiersentence_before
(optional string): Context sentence beforesentence_after
(optional string): Context sentence afterReturns: Added translation details
delete_translation - Delete a translation unit from memoryInputs:
id
(string): ID of the memorysource
(string): Source language codetarget
(string): Target language codesentence
(string): The source sentencetranslation
(string): The translated sentencetuid
(optional string): Translation Unit unique identifiersentence_before
(optional string): Context sentence beforesentence_after
(optional string): Context sentence afterReturns: Removed translation details
import_tmx - Import a TMX file into a memoryInputs:
id
(string): ID of the memory to updatetmx_content
(string): The content of the tmx file to uploadgzip
(boolean): Indicates if the file is compressed (.gz)Returns: Import details
check_import_status - Checks the status of a TMX file importInputs:
id
(string): The ID of the import jobReturns: Import details
Lara supports both the STDIO and streamable HTTP protocols. For a hassle-free setup, we recommend using the HTTP protocol. If you prefer to use STDIO, it must be installed locally on your machine.
You'll find setup instructions for both protocols in the sections below.
â Clients NOT supportingurl
configuration (e.g., Claude, OpenAI)
This installation guide is intended for clients that do NOT support the url-based configuration. This option requires Node.js to be installed on your system.
If you're unsure how to configure an MCP with your client, please refer to your MCP client's official documentation.
{ "mcpServers": { "lara": { "command": "npx", "args": [ "mcp-remote", "https://mcp.laratranslate.com/v1", "--header", "x-lara-access-key-id: ${X_LARA_ACCESS_KEY_ID}", "--header", "x-lara-access-key-secret: ${X_LARA_ACCESS_KEY_SECRET}" ], "env": { "X_LARA_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "X_LARA_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" } } } }
Replace <YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your Lara Translate API credentials. Refer to the Official Documentation for details.
Restart your MCP client.
url
configuration (e.g., Cursor, Continue)
This installation guide is intended for clients that support the url-based configuration. These clients can connect to Lara through a remote HTTP endpoint by specifying a simple configuration object.
Some examples of supported clients include Cursor, Continue, OpenDevin, and Aider.
If you're unsure how to configure an MCP with your client, please refer to your MCP client's official documentation.
{ "mcpServers": { "lara": { "url": "https://mcp.laratranslate.com/v1", "headers": { "x-lara-access-key-id": "<YOUR_ACCESS_KEY_ID>", "x-lara-access-key-secret": "<YOUR_ACCESS_KEY_SECRET>" } } } }
Replace <YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your Lara Translate API credentials. Refer to the Official Documentation for details.
Restart your MCP client.
This option requires Node.js to be installed on your system.
{ "mcpServers": { "lara-translate": { "command": "npx", "args": ["-y", "@translated/lara-mcp@latest"], "env": { "LARA_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "LARA_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" } } } }
<YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your actual Lara API credentials.This option requires Docker to be installed on your system.
{ "mcpServers": { "lara-translate": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "LARA_ACCESS_KEY_ID", "-e", "LARA_ACCESS_KEY_SECRET", "translatednet/lara-mcp:latest" ], "env": { "LARA_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "LARA_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" } } } }
<YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your actual Lara API credentials.git clone https://github.com/translated/lara-mcp.git cd lara-mcp
# Install dependencies pnpm install # Build pnpm run build
{ "mcpServers": { "lara-translate": { "command": "node", "args": ["<FULL_PATH_TO_PROJECT_FOLDER>/dist/index.js"], "env": { "LARA_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "LARA_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" } } } }
<FULL_PATH_TO_PROJECT_FOLDER>
with the absolute path to your project folder<YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your actual Lara API credentials.git clone https://github.com/translated/lara-mcp.git cd lara-mcp
docker build -t lara-mcp .
{ "mcpServers": { "lara-translate": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "LARA_ACCESS_KEY_ID", "-e", "LARA_ACCESS_KEY_SECRET", "lara-mcp" ], "env": { "LARA_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY_ID>", "LARA_ACCESS_KEY_SECRET": "<YOUR_ACCESS_KEY_SECRET>" } } } }
<YOUR_ACCESS_KEY_ID>
and <YOUR_ACCESS_KEY_SECRET>
with your actual credentials.After restarting your MCP client, you should see Lara Translate MCP in the list of available MCPs.
The method for viewing installed MCPs varies by client. Please consult your MCP client's documentation.
To verify that Lara Translate MCP is working correctly, try translating with a simple prompt:
Translate with Lara "Hello world" to Spanish
Your MCP client will begin generating a response. If Lara Translate MCP is properly installed and configured, your client will either request approval for the action or display a notification that Lara Translate is being used.
ð» Popular Clients that supports MCPsFor a complete list of MCP clients and their feature support, visit the official MCP clients page.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4