A MCP server to connect AI agents with LibreTranslate to give them machine translation capabilities.
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"
}
}
}
}
Set the following environment variables:
| Variable | Description |
|---|---|
LIBRETRANSLATE_API_URL | URL of the LibreTranslate API (default: https://libretranslate.com) |
LIBRETRANSLATE_API_KEY | API key for the LibreTranslate service (required for libretranslate.com) |
detectDetect the language of a given text.
translateTranslate text from one language to another.
languagesList all supported languages for translation.
AGPLv3
11 commits
TypeScript
98.5%
JavaScript
1.5%
A MCP server to connect AI agents with LibreTranslate to give them machine translation capabilities.
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"
}
}
}
}
Set the following environment variables:
| Variable | Description |
|---|---|
LIBRETRANSLATE_API_URL | URL of the LibreTranslate API (default: https://libretranslate.com) |
LIBRETRANSLATE_API_KEY | API key for the LibreTranslate service (required for libretranslate.com) |
detectDetect the language of a given text.
translateTranslate text from one language to another.
languagesList all supported languages for translation.
AGPLv3
11 commits
TypeScript
98.5%
JavaScript
1.5%