Dualtran Mcp

io.github.seigwen由 GitHub 帳號 seigwen 發布v0.1.0更新於 Oct 24, 2026

Translate text with Google or your own AI model (BYOK, 20+ providers) from any MCP client.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助手在任意 MCP 用戶端中以 Google 或自備的 AI 模型金鑰翻譯文字。

可以做什麼
  • 翻譯單段文字,可指定目標語言、來源語言與引擎(Google 或 AI)
  • 一次呼叫批次翻譯最多 50 段文字
  • 列出可用的翻譯引擎與 AI 設定狀態,且不會揭露金鑰
適用情境
適合在編輯器或聊天用戶端中讓助手翻譯單段文字或整批字串,可使用免費的 Google 翻譯,也可使用自己的模型供應商帳號。
執行需求
透過 npx 在本機執行(需要 Node.js)。Google 翻譯不需金鑰或帳號。選用的 AI 引擎需要供應商識別碼、模型與 API 金鑰,可透過 DUALTRAN_PROVIDER、DUALTRAN_MODEL、DUALTRAN_API_KEY 等環境變數或家目錄下的設定檔設定,環境變數優先。需要能連線到所選翻譯服務的網路。
安裝前請注意
AI 引擎需要你自己的供應商 API 金鑰,金鑰存放於環境變數或家目錄設定檔中,使用可能由該供應商計費。翻譯時文字會傳送給所選的翻譯服務。伺服器聲稱不含分析追蹤,也沒有開發者伺服器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Dualtran Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

dualtran-mcp

An MCP (Model Context Protocol) server that translates text with Google or your own AI model (BYOK, 20+ providers) — usable from Claude Code, Claude Desktop, Cursor, Cline, VS Code and any other MCP client. Powered by @dualtran/core, the engine extracted from the DualTran browser extension.

Tools

ToolWhat it does
translate_textTranslate one piece of text. Optional target_lang, source_lang, engine (google | ai).
translate_batchTranslate up to 50 texts in one call (one batched Google request).
list_enginesReport available engines and the AI configuration state (never the key).

Install

bash
npx -y dualtran-mcp# or straight from this repository (works today, no registry needed):npx -y github:seigwen/dualtran-mcp

Configure

Google works out of the box — no key, no account.

For the AI engine (optional), configure a provider once — either with environment variables:

DUALTRAN_PROVIDER=openai        # openai | anthropic | google | deepseek | mistral | groq | xai | …DUALTRAN_API_KEY=sk-…DUALTRAN_MODEL=gpt-4o-miniDUALTRAN_BASE_URL=              # optional endpoint overrideDUALTRAN_TARGET_LANG=en         # default target languageDUALTRAN_ENGINE=google          # default engine: google | ai

or with ~/.dualtran/config.json:

json
{ "provider": "openai", "apiKey": "sk-…", "model": "gpt-4o-mini", "targetLang": "en", "engine": "ai" }

Environment variables win over the file.

Client configuration

Claude Code (.mcp.json in the project, or claude mcp add):

json
{  "mcpServers": {    "dualtran": {      "command": "npx",      "args": ["-y", "github:seigwen/dualtran-mcp"],      "env": { "DUALTRAN_TARGET_LANG": "en" }    }  }}

Cursor (~/.cursor/mcp.json) and Cline / other clients: same shape — command: npx, args: ["-y", "github:seigwen/dualtran-mcp"], optional env.

Privacy

No analytics, no accounts, no developer server. Text goes only to the translation service you chose, at the moment you translate. See PRIVACY.md.

Development

bash
node scripts/sync-core.mjs   # vendors @dualtran/core into vendor/ (committed)npm installnpm test                     # tsc build + vitest (in-memory server, real stdio e2e, stdout purity scan)

License

MIT — the bundled @dualtran/core portion is MPL-2.0.

Languages

The engine itself has no interface: strings this package exposes are MCP tool names/descriptions and parameter docs, which LLM clients and protocol tooling consume in English. Localising them would hurt discoverability, so they stay English by policy. Any future user-facing surface must follow the DualTran i18n standard (38 catalogues, locales/<code>/messages.json).

來源:README.md,提交 31bab75

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Oct 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。