Skip to content

MCP Server

LibreTranslate can give machine translation capabilities to AI agents that support the MCP protocol.

Add this to your client’s configuration:

{
"mcp": {
"LibreTranslate": {
"type": "local",
"command": ["npx", "-y", "@libretranslate/mcp"],
"environment": {
"LIBRETRANSLATE_API_URL": "https://libretranslate.com",
"LIBRETRANSLATE_API_KEY": "your-api-key"
}
}
}
}
{
"mcpServers": {
"libretranslate": {
"command": "npx",
"args": ["-y", "@libretranslate/mcp"],
"env": {
"LIBRETRANSLATE_API_URL": "https://libretranslate.com",
"LIBRETRANSLATE_API_KEY": "your-api-key"
}
}
}
}
VariableDescription
LIBRETRANSLATE_API_URLURL of the LibreTranslate API (default: https://libretranslate.com)
LIBRETRANSLATE_API_KEYAPI key for the LibreTranslate service (required for libretranslate.com)

Detect the language of a given text.

Translate text from one language to another.

List all supported languages for translation.

See LibreTranslate-MCP for implementation details.