Environment Variables Required
LARA_ACCESS_KEY_ID
: Your Lara Translate API Access Key IDLARA_ACCESS_KEY_SECRET
: Your Lara Translate API Access Key Secret
Steps
-
Install Meshagent Python Package:
- Sign Up & Authenticate: Follow the Meshagent CLI getting started guide to sign up and log in.
-
Start the Lara MCP Tool as an Agent in a Room:
This command launches an ephemeral Meshagent Room (
test
) with a callable MCP-Lara server. The Room and its services close automatically if they go inactive. -
Start a Chatbot in the Room to Use Lara Tools:
- Starts a chatbot in the Room with the Lara Translate Toolkit enabled.
- Multiple toolkits/agents can be used together.
- A room link will be printed in the terminal output.
-
Test It Out:
- Open the provided Room link in your browser.
- Send a message to the
mcp-lara
agent to interact with Lara’s translation tools.
Project Level Deployment (Persistent Services)
Deploy persistent services that show up in all Meshagent Rooms for your project. This is ideal for production environments—every newly created Room automatically includes the MCP server tools and chatbots, so there is no need to start or manage local processes.Steps
-
Create a Persistent MCP-Lara Agent Service:
-
Create a Persistent Chatbot Service:
Tools Available
This Meshagent-wrapped MCP Server provides the following translation tools, using your Lara Translate API credentials:Tools Summary
Tool Name | Description |
---|---|
add_translation | Adds a translation to a translation memory in your Lara Translate account. |
check_import_status | Checks the status of a TMX file import job in your Lara Translate account. |
create_memory | Create a translation memory with a custom name in your Lara Translate account. |
delete_memory | Deletes a translation memory from your Lara Translate account. |
delete_translation | Deletes a translation from a translation memory from your Lara Translate account. |
import_tmx | Imports a TMX file into a translation memory in your Lara Translate account. |
list_languages | Lists all supported languages in your Lara Translate account. |
list_memories | Lists all translation memories in your Lara Translate account. |
translate | Translate text between languages with support for detection and context-aware translations and translation memory. |
update_memory | Updates a translation memory in your Lara Translate account. |
Tools Details
add_translation
Adds a translation to a translation memory in your Lara Translate account.Parameters:
id
(array
): The ID(s) where to save the translation unit (e.g.,mem_xyz123
)sentence
(string
): The source sentencesource
(string
): Source language codetarget
(string
): Target language codetranslation
(string
): The translated sentencesentence_after
(string
, optional): Context sentence aftersentence_before
(string
, optional): Context sentence beforetuid
(string
, optional): Translation Unit unique identifier
check_import_status
Checks the status of a TMX file import job.Parameters:
id
(string
): The import job ID
create_memory
Create a translation memory with a custom name.Parameters:
name
(string
): Memory nameexternal_id
(string
, optional): External ID for import (optional)
delete_memory
Delete a translation memory from your account.Parameters:
id
(string
): Unique memory identifier
delete_translation
Deletes a translation from a translation memory.Parameters:
id
(array
): The ID(s) for deletionsentence
(string
): Source sentencesource
(string
): Source language codetarget
(string
): Target language codetranslation
(string
): The translation to removesentence_after
(string
, optional)sentence_before
(string
, optional)tuid
(string
, optional)
import_tmx
Imports a TMX file into a translation memory.Parameters:
id
(string
): Memory IDgzip
(boolean
, optional): If file is gzip compressedtmx_content
(string
, optional): Content of TMX to uploadtmx_url
(string
, optional): URL to the TMX file
list_languages
Lists all supported languages.
list_memories
Lists all translation memories.
translate
Translate text with context-aware support.
Parameters:
target
(string
): Target language codetext
(array
): Array of text blocks to translateadapt_to
(array
, optional): Translation memory IDs to adaptcontext
(string
, optional): Additional context string for translationinstructions
(array
, optional): Instructions for output behaviorsource
(string
, optional): Source language codesource_hint
(string
, optional): Hint for language detection
update_memory
Updates a translation memory.Parameters:
id
(string
): Memory IDname
(string
): New memory name