{
  "$schema": "https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",
  "name": "com.translated/lara-mcp",
  "title": "Lara Translate",
  "description": "MCP server for Lara Translate. Exposes context-aware machine translation across 200+ languages, plus management of translation memories and glossaries. Backed by Translation Language Models trained on billions of professionally translated segments.",
  "version": "1.0.6",
  "websiteUrl": "https://laratranslate.com/mcp-server-translation",
  "repository": {
    "url": "https://github.com/translated/lara-mcp",
    "source": "github"
  },
  "icons": [
    {
      "src": "https://laratranslate.com/logo-192x192.png",
      "mimeType": "image/png",
      "sizes": [
        "192x192"
      ]
    },
    {
      "src": "https://laratranslate.com/logo-512x512.png",
      "mimeType": "image/png",
      "sizes": [
        "512x512"
      ]
    }
  ],
  "serverUrl": "https://mcp-v2.laratranslate.com/v1",
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://mcp-v2.laratranslate.com/v1"
    }
  ],
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@translated/lara-mcp",
      "version": "1.0.6",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "name": "LARA_ACCESS_KEY_ID",
          "description": "Lara API access key ID. Obtain at https://laratranslate.com (see https://support.laratranslate.com/en/api-key-for-laras-api).",
          "isRequired": true,
          "isSecret": true
        },
        {
          "name": "LARA_ACCESS_KEY_SECRET",
          "description": "Lara API access key secret. Pair with LARA_ACCESS_KEY_ID.",
          "isRequired": true,
          "isSecret": true
        }
      ]
    }
  ],
  "tools": [
    {
      "name": "detect_language",
      "title": "Detect language",
      "description": "Detects the language of the provided text. Returns the detected language, content type, and a list of predictions with confidence scores. Accepts a single string or an array of strings (up to 128 elements).",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ],
            "description": "The text to detect the language of. Can be a single string or an array of strings (up to 128 elements)."
          },
          "hint": {
            "description": "Optional language code hint to guide detection (e.g., 'en-US').",
            "type": "string"
          },
          "passlist": {
            "description": "Optional list of language codes to restrict detection results to.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "translate",
      "title": "Translate text",
      "description": "Translate text between languages using Lara Translate. Supports language detection, context-aware translations, translation memories, and glossaries. The optional 'instructions' parameter accepts short localization directives (e.g., 'Translate formally') — only provide them when the content specifically requires tone, formality, or terminology adjustments.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "Text content of the block"
                },
                "translatable": {
                  "description": "Whether the block should be translated. Omitted on response blocks the engine treats as wholly translatable.",
                  "type": "boolean"
                }
              },
              "required": [
                "text"
              ],
              "additionalProperties": {}
            },
            "description": "An array of text blocks to translate. Each block contains a text string and a boolean indicating whether it should be translated. This allows for selective translation where some text blocks can be preserved in their original form while others are translated."
          },
          "source": {
            "description": "The source language code (e.g., 'en-US' for English). If not specified, the system will attempt to detect it automatically. If you have a hint about the source language, you should specify it in the source_hint field.",
            "type": "string"
          },
          "target": {
            "type": "string",
            "description": "The target language code (e.g., 'it-IT' for Italian). This specifies the language you want the text translated into."
          },
          "context": {
            "description": "Additional context string to improve translation quality (e.g., 'This is a legal document' or 'I'm talking with a doctor'). This helps the translation system better understand the domain.",
            "type": "string"
          },
          "instructions": {
            "description": "Optional list of short localization directives to adjust translation output. Each instruction MUST be no more than 20 words. These are NOT free-form LLM prompts — they are expert localization directives about formality, tone, or domain-specific terminology. Only provide instructions when the content specifically requires them; omitting instructions for general content preserves higher translation quality. Do NOT combine contradictory instructions (e.g., formal and informal tone together). Examples: 'Translate formally', 'Use a creative and concise tone', 'Make translation gender-neutral', 'Mask any price with the [price] placeholder', 'Use quotation marks (« ») for quotations'.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_hint": {
            "description": "Used to guide language detection. Specify this when the source language is uncertain to improve detection accuracy.",
            "type": "string"
          },
          "adapt_to": {
            "description": "A list of translation memory IDs for adapting the translation.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "glossaries": {
            "description": "Array of glossary IDs to apply during translation (max 10). IDs must match format: gls_* (e.g., ['gls_xyz123', 'gls_abc456']). Glossaries enforce specific terminology and terms.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^gls_[a-zA-Z0-9_-]+$"
            }
          },
          "no_trace": {
            "description": "Privacy flag. If set to true, the request content will not be stored or traced by Lara. Use for sensitive content.",
            "type": "boolean"
          },
          "priority": {
            "description": "Translation priority. 'normal' for real-time translations, 'background' for batch processing with lower priority.",
            "type": "string",
            "enum": [
              "normal",
              "background"
            ]
          },
          "timeout_in_millis": {
            "description": "Custom timeout for the translation request in milliseconds. Max: 300000ms (5 minutes). Useful for very long texts.",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 300000
          },
          "style": {
            "description": "Controls how the translation balances accuracy against natural readability. 'faithful' stays close to the source, 'fluid' prioritizes natural readability, 'creative' allows more freedom in the translation.",
            "type": "string",
            "enum": [
              "faithful",
              "fluid",
              "creative"
            ]
          },
          "reasoning": {
            "description": "Enables Lara Think multi-step linguistic analysis. Can increase processing time up to 10x but may improve translation quality for complex texts.",
            "type": "boolean"
          },
          "content_type": {
            "description": "Specifies the content type of the text. Autodetected if omitted.",
            "type": "string",
            "enum": [
              "text/plain",
              "text/html",
              "application/xliff+xml"
            ]
          }
        },
        "required": [
          "text",
          "target"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "create_memory",
      "title": "Create translation memory",
      "description": "Create a translation memory with a custom name in your Lara Translate account. Translation memories store pairs of source and target text segments (translation units) for reuse in future translations.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the new memory, it should be short and generic, like 'catch_phrases' or 'brand_names'"
          },
          "external_id": {
            "type": "string",
            "description": "The ID of the memory to be imported from MyMemory. Use this to initialize the memory with external content. Format: ext_my_[MyMemory ID]"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_memory",
      "title": "Delete translation memory",
      "description": "Deletes a translation memory from your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the memory to update. Format: mem_xyz123"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "update_memory",
      "title": "Rename translation memory",
      "description": "Updates a translation memory in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the memory to update. Format: mem_xyz123"
          },
          "name": {
            "type": "string",
            "description": "The new name for the memory"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "add_translation",
      "title": "Add translation unit to memory",
      "description": "Adds a translation to a translation memory in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ID or list of IDs where to save the translation unit. Format: mem_xyz123"
          },
          "source": {
            "type": "string",
            "description": "The source language code of the sentence, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages"
          },
          "target": {
            "type": "string",
            "description": "The target language code of the translation, it MUST be a language supported by the system, use the list_languages tool to get a list of all the supported languages"
          },
          "sentence": {
            "type": "string",
            "description": "The source sentence"
          },
          "translation": {
            "type": "string",
            "description": "The translated sentence"
          },
          "tuid": {
            "type": "string",
            "description": "Translation Unit unique identifier"
          },
          "sentence_before": {
            "type": "string",
            "description": "The sentence before the source sentence to specify the context of the translation unit"
          },
          "sentence_after": {
            "type": "string",
            "description": "The sentence after the source sentence to specify the context of the translation unit"
          }
        },
        "required": [
          "id",
          "source",
          "target",
          "sentence",
          "translation"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_translation",
      "title": "Delete translation unit from memory",
      "description": "Deletes a translation from a translation memory in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ID or list of IDs where to delete the translation unit from. Format: mem_xyz123"
          },
          "source": {
            "type": "string",
            "description": "The source language code of the sentence"
          },
          "target": {
            "type": "string",
            "description": "The target language code of the translation"
          },
          "sentence": {
            "type": "string",
            "description": "The source sentence"
          },
          "translation": {
            "type": "string",
            "description": "The translated sentence"
          },
          "tuid": {
            "type": "string",
            "description": "Translation Unit unique identifier"
          },
          "sentence_before": {
            "type": "string",
            "description": "The sentence before the source sentence to specify the context of the translation unit"
          },
          "sentence_after": {
            "type": "string",
            "description": "The sentence after the source sentence to specify the context of the translation unit"
          }
        },
        "required": [
          "id",
          "source",
          "target",
          "sentence",
          "translation"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "import_tmx",
      "title": "Import TMX file",
      "description": "Imports a TMX file into a translation memory. This is an async operation that returns an import job object containing an import_id. Poll with check_import_status using the returned import_id until the import is complete.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the memory to update. Format: mem_xyz123."
          },
          "tmx_content": {
            "type": "string",
            "description": "The content of the tmx file to upload."
          }
        },
        "required": [
          "id",
          "tmx_content"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "check_import_status",
      "title": "Check TMX import status",
      "description": "Checks the status of a TMX import job started by import_tmx. Poll this tool with the import_id returned from import_tmx until the import is complete. The response includes a progress field to track completion.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the import job"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "list_memories",
      "title": "List translation memories",
      "description": "Lists all translation memories in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "list_languages",
      "title": "List supported languages",
      "description": "Lists all supported languages in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "list_glossaries",
      "title": "List glossaries",
      "description": "Lists all glossaries in your Lara Translate account. Glossaries are collections of terms with their translations that enforce specific terminology during translation.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "get_glossary",
      "title": "Get glossary",
      "description": "Retrieves a specific glossary by ID from your Lara Translate account. Returns null if the glossary is not found.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "create_glossary",
      "title": "Create glossary",
      "description": "Create a glossary with a custom name in your Lara Translate account. Glossaries enforce specific terminology during translation.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the new glossary, it should be short and descriptive, like 'brand_terms' or 'legal_terminology'"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "update_glossary",
      "title": "Rename glossary",
      "description": "Updates the name of a glossary in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          },
          "name": {
            "type": "string",
            "description": "The new name for the glossary"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_glossary",
      "title": "Delete glossary",
      "description": "Deletes a glossary from your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID to delete (format: gls_*, e.g., 'gls_xyz123')"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "import_glossary_csv",
      "title": "Import glossary CSV",
      "description": "Imports a CSV file into a glossary. Supports unidirectional and multidirectional formats. This is an async operation that returns an import job object containing an import_id. Poll with check_glossary_import_status using the returned import_id until the import is complete.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          },
          "csv_content": {
            "type": "string",
            "description": "The content of the CSV file to upload"
          },
          "content_type": {
            "default": "csv/table-uni",
            "description": "The format of the CSV file. 'csv/table-uni' for unidirectional, 'csv/table-multi' for multidirectional",
            "type": "string",
            "enum": [
              "csv/table-uni",
              "csv/table-multi"
            ]
          },
          "gzip": {
            "description": "Whether the CSV content is gzip compressed",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "csv_content",
          "content_type"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "check_glossary_import_status",
      "title": "Check glossary import status",
      "description": "Checks the status of a glossary CSV import job started by import_glossary_csv. Poll this tool with the import_id returned from import_glossary_csv until the import is complete.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the glossary import job"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "export_glossary",
      "title": "Export glossary as CSV",
      "description": "Exports a glossary as CSV from your Lara Translate account. Supports unidirectional and multidirectional formats.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          },
          "content_type": {
            "type": "string",
            "enum": [
              "csv/table-uni",
              "csv/table-multi"
            ],
            "description": "The export format. 'csv/table-uni' for unidirectional (requires source parameter), 'csv/table-multi' for multidirectional"
          },
          "source": {
            "description": "The source language code. Required when content_type is 'csv/table-uni'",
            "type": "string"
          }
        },
        "required": [
          "id",
          "content_type"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "get_glossary_counts",
      "title": "Get glossary entry count",
      "description": "Retrieves the term and language counts for a glossary in your Lara Translate account.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "add_glossary_entry",
      "title": "Add or replace glossary entry",
      "description": "Adds or replaces an entry in a glossary in your Lara Translate account. Supports both monodirectional and multidirectional glossaries.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          },
          "terms": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "description": "The language code of the term. Use the list_languages tool to get supported languages."
                },
                "value": {
                  "type": "string",
                  "description": "The term value in the specified language"
                }
              },
              "required": [
                "language",
                "value"
              ],
              "additionalProperties": false
            },
            "description": "Array of terms with language and value. For monodirectional glossaries, the first term is the source and the rest are targets. For multidirectional glossaries, all terms are treated equally. Use the list_languages tool to get supported language codes."
          },
          "guid": {
            "description": "Optional entry identifier. Use this for multidirectional glossaries or to update a specific entry.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "terms"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "delete_glossary_entry",
      "title": "Delete glossary entry",
      "description": "Deletes an entry from a glossary in your Lara Translate account. Use term for monodirectional glossaries or guid for multidirectional glossaries.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^gls_[a-zA-Z0-9_-]+$",
            "description": "The glossary ID (format: gls_*, e.g., 'gls_xyz123')"
          },
          "term": {
            "description": "The term to delete. Use this for monodirectional glossaries.",
            "type": "object",
            "properties": {
              "language": {
                "type": "string",
                "description": "The language code of the term"
              },
              "value": {
                "type": "string",
                "description": "The term value"
              }
            },
            "required": [
              "language",
              "value"
            ],
            "additionalProperties": false
          },
          "guid": {
            "description": "The entry GUID to delete. Use this for multidirectional glossaries.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      }
    }
  ],
  "resources": [
    {
      "name": "Translation Memories",
      "description": "List of translation memories in your Lara Translate account.",
      "uri": "memories://list"
    },
    {
      "name": "Supported Languages",
      "description": "List of Lara Translate supported languages.",
      "uri": "languages://list"
    }
  ],
  "resourceTemplates": [
    {
      "name": "Get Memory by Name",
      "uriTemplate": "memories://list/{name}",
      "description": "Returns a memory by its name"
    }
  ],
  "serverInfo": {
    "name": "Lara Translate",
    "version": "1.0.6"
  },
  "endpoint": "https://mcp-v2.laratranslate.com/v1",
  "capabilities": {
    "tools": {},
    "resources": {}
  }
}