Run the Lara MCP server and tools in a Meshagent Room in the cloud with just a few steps:

Environment Variables

Set the following environment variables:

  • LARA_ACCESS_KEY_ID – Your Lara Translate API key ID
  • LARA_ACCESS_KEY_SECRET – Your Lara Translate API key secret

1. Install Meshagent

pip install "meshagent[all]"

2. Sign Up and Authenticate with Meshagent

Follow the Meshagent CLI authentication instructions:
https://docs.meshagent.com/cli/getting_started

3. Start the MCP Agent Service in a Room

meshagent service test \
  --room=test \
  --role=agent \
  --image=meshagent/mcp-lara:latest \
  --env LARA_ACCESS_KEY_ID=<your_lara_key_id> \
  --env LARA_ACCESS_KEY_SECRET=<your_lara_key_secret> \
  --env MESHAGENT_PORT=8001 \
  --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" \
  --name=mcp-lara-service
  • This starts a Meshagent Room (test) running the Lara MCP server.
  • The room shuts down if left inactive.

4. Join the Room with a Meshagent Chatbot

meshagent chatbot join \
  --room=test \
  --agent-name=sample \
  --name=sample \
  --toolkit=mcp-lara
  • This launches a chatbot in the same room, equipped with the Lara translation toolkit.
  • Meshagent supports using multiple toolkits per agent/room.
  • The output provides a link you can use to access and interact with your agent and tools.

Tools Available

Lara Translate MCP integrates these tools, making them available via Meshagent-powered Rooms:

ToolShort Description
add_translationAdds a translation to a translation memory in your Lara Translate account.
check_import_statusChecks the status of a TMX file import job in your Lara Translate account.
create_memoryCreate a translation memory with a custom name in your Lara Translate account.
delete_memoryDeletes a translation memory from your Lara Translate account.
delete_translationDeletes a translation from a translation memory from your Lara Translate account.
import_tmxImports a TMX file into a translation memory in your Lara Translate account.
list_languagesLists all supported languages in your Lara Translate account.
list_memoriesLists all translation memories in your Lara Translate account.
translateTranslate text between languages with support for language detection, context-aware translations, and translation memories using Lara Translate.
update_memoryUpdates a translation memory in your Lara Translate account.

Tools Details

add_translation

Adds a translation to a translation memory.

  • id (array): The ID(s) where to save the translation unit (mem_xyz123)
  • sentence (string): The source sentence
  • source (string): Source language code
  • target (string): Target language code
  • translation (string): Translated sentence
  • sentence_after (string, optional): Next sentence, for context
  • sentence_before (string, optional): Previous sentence, for context
  • tuid (string, optional): Unique identifier

check_import_status

Checks status of a TMX file import.

  • id (string): Import job ID

create_memory

Create a translation memory (TM).

  • name (string): Name for the TM
  • external_id (string, optional): Initialize with MyMemory TM

delete_memory

Deletes a translation memory.

  • id (string): Memory ID

delete_translation

Deletes a translation from a TM.

  • id (array): TM IDs
  • sentence (string): Source sentence
  • source (string): Source language code
  • target (string): Target language code
  • translation (string): Translated sentence
  • sentence_after/before/tuid: (optional as above)

import_tmx

Import a TMX file into a TM.

  • id (string): Memory ID
  • gzip (boolean, optional): Is .gz compressed
  • tmx_content (string, optional): File content
  • tmx_url (string, optional): File URL

list_languages

Lists all supported languages.

list_memories

Lists all translation memories.

translate

Text translation.

  • target (string): Target language code
  • text (array): Array of text blocks to translate
  • adapt_to (array, optional): TM IDs for adaptation
  • context (string, optional): Translation context
  • instructions (array, optional): Output instructions
  • source (string, optional): Source language code
  • source_hint (string, optional): Language detection hint

update_memory

Update a translation memory.

  • id (string): Memory ID
  • name (string): New name

Further Reading and Resources