dualtran-mcp
The server lets MCP clients translate text using Google or a configured AI provider.
translate_text: translate a single text string, with optionalsource_lang,target_lang, andengine(googleorai).translate_batch: translate 1–50 texts in one call; Google uses one batched request, AI uses one call per text.list_engines: report available translation engines and AI configuration state without exposing the API key.
The default target language, source language auto-detection, and default engine are controlled by server configuration.
Translates text with Google's translation service, which works out of the box with no key or account. Supports single translations and batched requests (up to 50 texts in one call), with optional source and target language selection.
Uses your own OpenAI model as the translation engine (BYOK). Configure via environment variables or config file with provider, API key, model, and optional base URL override.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dualtran-mcp translate 'Where is the nearest train station?' to French"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Tool | What it does |
| Translate one piece of text. Optional |
| Translate up to 50 texts in one call (one batched Google request). |
| Report available engines and the AI configuration state (never the key). |
Related MCP server: MCP Translation Text
Install
npx -y dualtran-mcp
# or straight from this repository (works today, no registry needed):
npx -y github:seigwen/dualtran-mcpConfigure
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-mini
DUALTRAN_BASE_URL= # optional endpoint override
DUALTRAN_TARGET_LANG=en # default target language
DUALTRAN_ENGINE=google # default engine: google | aior with ~/.dualtran/config.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):
{
"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
node scripts/sync-core.mjs # vendors @dualtran/core into vendor/ (committed)
npm install
npm 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).
Available Tools
3 toolslist_enginesList EnginesA
Report which translation engines are available and how the AI engine is configured (never the key itself).
Inputs: no named parameters.
translate_batchTranslate BatchA
Translate up to 50 texts in one call (one batched Google request, or one AI call per text).
Inputs: texts (required), engine, source_lang, target_lang.
translate_textTranslate TextB
Translate one piece of text with Google or the configured AI provider (BYOK).
Inputs: text (required), engine, source_lang, target_lang.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: single-text translation, batched translation, and engine introspection. An agent can easily select the right one with no overlap.
All names follow a consistent snake_case verb_noun pattern (translate_text, translate_batch, list_engines). The convention is predictable and readable.
Three tools is at the low end but reasonable for a narrow translation-focused server. Each tool earns its place, though the surface is slightly thin.
Core translation workflows (single, batch) plus engine introspection are covered. Minor gaps like explicit per-call engine selection or language detection could be worked around.
Maintenance
Related MCP Connectors
Translate MCP — LibreTranslate-compatible machine translation.
LibreTranslate MCP — open-source machine translation (BYO endpoint)
MCP server for Translation Services
AI-native translation management: push translation files, translate, review and audit strings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables translation and text rephrasing using DeepL's API through a cloud-deployed MCP server. Provides translation between multiple languages, text rephrasing, and language detection capabilities with professional deployment features.MIT
- AlicenseAqualityDmaintenanceProvides text translation capabilities powered by NiuTrans API with support for 455+ languages. Includes translation tools and language catalog resources for seamless integration with MCP clients.18MIT
- AlicenseBqualityDmaintenanceEnables AI applications to perform multi-language translations with automatic language detection, contextual hints, and custom instructions through an MCP-compatible interface.1MIT
- AlicenseAqualityDmaintenanceEnables MCP-compatible AI applications to translate text through the Lara Translate API, with automatic language detection, context-aware translations, and custom instructions.1MIT