Local NLLB translation for 200+ languages. Zero cloud, zero cost, runs entirely on your machine.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-damoqiongqiu-mcp-local-translate": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Local NLLB translation for 200+ languages. Zero cloud, zero cost, runs entirely on your machine.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in writing
【Star-crossed coders unite!⭐️】Model Context Protocol (MCP) server implementation providing Google News search capabilities via SerpAPI, with automatic news categorization and multi-language support.
URL to LLM-ready markdown — plus per-page category, page_structure, and query-driven highlights.
AI prompt optimization for 58+ platforms across 7 categories with custom platforms
Model Context Protocol (MCP) Server to connect your AI with any MediaWiki
MCP Security Weekly
Get CVE alerts and security updates for io.github.damoqiongqiu/mcp-local-translate and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
🍴 Inspired by shinpr/mcp-local-rag — original architecture patterns by Shinsuke Kagawa
AI 编程助手的本地翻译引擎。基于 NLLB-200 模型,支持 200+ 语言互译——完全离线,数据不离开你的机器。为多语言开发、文档阅读、代码注释翻译而生。
📖 English
200+ 语言互译 基于 Meta NLLB-200 蒸馏模型(600M 参数),覆盖全球绝大多数语言——从主流语言到低资源语言。
完全本地运行 无需 API Key,无需云服务。NLLB-200 模型在本地 CPU 上通过 Transformers.js 推理。数据从不离开你的机器。
智能语言解析
支持 FLORES-200 精确码(zho_Hans)、ISO 639-1 简码(zh)、语言名称(Chinese)、中文别名(中文)——自动映射到正确的模型输入。
长文本分块翻译 长文本在句子边界处自动分块(450 字符/块),每块独立翻译后拼接——突破 NLLB 的 512 token 限制。
零摩擦上手
一条 npx 命令搞定。无需 Docker、Python、GPU。可通过 MCP 或 CLI 使用。
三级镜像回退 自动探测 HF → hf-mirror.com → ModelScope 三级镜像链,国内网络环境下自动找到可用的模型下载源。
Cursor — 添加到 ~/.cursor/mcp.json:
{
"mcpServers": {
"local-translate": {
"command": "npx",
"args": ["-y", "@damoqiongqiu/mcp-local-translate"],
"env": {
"CACHE_DIR": "/path/to/models"
}
}
}
}
Codex — 添加到 ~/.codex/config.toml:
[mcp_servers.local-translate]
command = "npx"
args = ["-y", "@damoqiongqiu/mcp-local-translate"]
[mcp_servers.local-translate.env]
CACHE_DIR = "/path/to/models"
Claude Code — 运行以下命令:
claude mcp add local-translate --scope user --env CACHE_DIR=/path/to/models -- npx -y @damoqiongqiu/mcp-local-translate
WorkBuddy — 打开「设置 → 自定义连接器 → 添加自定义连接器」:
{
"mcpServers": {
"local-translate": {
"command": "npx",
"args": ["-y", "@damoqiongqiu/mcp-local-translate"],
"env": {
"CACHE_DIR": "/path/to/models"
}
}
}
}
⚠️ 首次添加后,必须在「自定义连接器」列表中点击「信任」按钮,否则 MCP 服务器不会启动。这是 WorkBuddy 的安全机制——未经信任的自定义连接器会被静默阻止。
重启工具后即可使用:
你: "把这段文档翻译成中文"
助手: [返回翻译结果]
你: "This error message is in Japanese — what does it say?"
助手: 那是「データベース接続に失敗しました」——
数据库连接失败。
你: "列出所有支持的翻译语言"
助手: 共 204 种语言,包括 中文、英语、日语、法语...
也可直接作为 CLI 使用——无需启动 MCP 服务器:
npx @damoqiongqiu/mcp-local-translate translate "Hello, world!" --source en --target zh
npx @damoqiongqiu/mcp-local-translate list-languages --query "chinese"
就这些。无需 Docker,无需 Python,无需配置服务器。
你的 AI 编程助手可以帮你写代码,但当你面对非母语的文档、注释、错误日志时,仍然需要跳出编程环境去复制粘贴到在线翻译工具。
隐私。 把代码片段或内部文档粘贴到 Google Translate 本质上是数据泄露。这个工具完全在本地运行——没有人能看到你的文本。
离线可用。 配置完成后无需联网即可使用——飞机上、咖啡店无 WiFi、空气间隙环境。
低资源语言。 NLLB-200 覆盖了 Google Translate 和 DeepL 不支持的小语言(如藏语、维吾尔语、高棉语等)。
成本。 无需为翻译 API 付费。只需一次模型下载(~600MB),然后无限使用。
mcp-local-translate 提供两种接口:MCP 服务器(供 AI 编程工具使用)和 CLI(供终端直接使用)。
MCP 服务器提供 2 个工具:translate 和 list_languages。
"把这段 React hooks 文档翻译成中文"
"Translate the error message to English"
"这段日语注释是什么意思?"
translate 工具接受:
| 参数 | 类型 | 说明 |
|---|---|---|
text | string | 待翻译文本 |
source_lang | string | 源语言代码(auto 自动检测) |
target_lang | string | 目标语言代码 |
语言代码支持三种格式:
zho_Hans(简体中文)、eng_Latn(英语)、jpn_Jpan(日语)zh、en、ja、fr、de中文、英语、日语、韩语"这个翻译引擎支持多少种语言?"
"看看有没有藏语"
使用 `list_la