Lara Translate MCP server

Bridges to the Lara Translation API for accurate, context-aware text translations between languages with automatic language detection capabilities.
Back to servers
Setup instructions
Provider
Translated
Release date
Apr 01, 2025
Language
TypeScript
Package
Stats
3.1K downloads
60 stars

Lara Translate MCP Server provides a standardized way to integrate Lara's professional translation capabilities into AI applications using the Model Context Protocol (MCP). It enables AI models to access context-aware translations, language detection, and translation memories through a simple interface.

Getting Started

Requirements

  • Lara Translate API Credentials (obtain from the Official Documentation)
  • An LLM client that supports Model Context Protocol (MCP)
  • NPX or Docker for installation

Installation

The installation process involves adding a configuration object to your client's MCP configuration JSON file.

Step 1: Open your client's MCP configuration JSON file and add the following:

{
  "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>"
      }
    }
  }
}

Step 2: Replace <YOUR_ACCESS_KEY_ID> and <YOUR_ACCESS_KEY_SECRET> with your Lara Translate API credentials.

Step 3: Restart your MCP client.

Verify Installation

After restarting, check if Lara Translate MCP appears in your client's list of available MCPs. Test it with a simple prompt:

Translate with Lara "Hello world" to Spanish

If properly configured, your client will either request approval or display a notification that Lara Translate is being used.

Alternative Installation Methods

Using Docker

If you prefer Docker, add this to your MCP configuration file:

{
  "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>"
      }
    }
  }
}

Available Tools

Translation

Use the translate tool to translate text between languages:

  • Inputs include text blocks, source/target languages, context, and special instructions
  • Returns translated text blocks maintaining the original structure

Translation Memories

Manage translation memories with these tools:

  • list_memories: List saved translation memories
  • create_memory: Create a new translation memory
  • update_memory: Update translation memory name
  • delete_memory: Delete a translation memory
  • add_translation: Add a translation unit to memory
  • delete_translation: Delete a translation unit from memory
  • import_tmx: Import a TMX file into a memory
  • check_import_status: Check the status of a TMX file import

Compatible MCP Clients

Several popular applications support the Model Context Protocol:

For a complete list, visit the official MCP clients page.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "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>"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "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>"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "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>"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later