Skip to content
PGPolyglot MCP
57 languages · local GPU · zero cloud

Polyglot MCP translate everything, locally.

An MCP server that translates text between 57 languages using TranslateGemma on your GPU via Ollama. No API keys, no cloud, no rate limits — by default everything runs on your machine.

Translate

translate("Hello world", "en", "ja")

Result

"こんにちは世界" // ~1s on GPU

Setup

ollama pull translategemma:27b

Why Local Translation

By default, your data never leaves your machine.

Private

Translations run on your GPU. No text leaves your machine unless you point Polyglot at a remote Ollama yourself.

Fast

About a second per translation once the default 27B model is loaded, and ~600ms with 12B on a 16 GB GPU.

Free

No API keys, no subscriptions, no rate limits. Ollama + TranslateGemma are fully open source (Apache 2.0).

Capabilities

57 Languages

From Afrikaans to Vietnamese — including CJK, Arabic, Hindi, and all major European languages.

Smart Chunking

Long text is split at paragraph and sentence boundaries, preserving context across chunks.

Model Choice

Defaults to 27B for maximum accuracy; switch to 12B or 4B for smaller GPUs or more speed.

Setup

Claude Code / Claude Desktop

// Add to your MCP config (.mcp.json)
{
  "mcpServers": {
    "polyglot": {
      "command": "npx",
      "args": ["-y", "@mcptoolshop/polyglot-mcp"]
    }
  }
}

Prerequisites

# 1. Install Ollama (ollama.com)
# 2. Pull the translation model:
ollama pull translategemma:27b  # 17 GB (or :12b, 8.1 GB, on smaller GPUs)

# 3. Start Ollama:
ollama serve

MCP Tools

Six tools exposed to your LLM agent.

ToolDescription
translateTranslate text between any two of 57 supported languages
translate_markdownTranslate a full markdown document while preserving structure
translate_allTranslate markdown into multiple languages concurrently
translate_readmeTranslate a README file into 7 languages and write README.<lang>.md next to it
list_languagesList all supported language codes and names
check_statusVerify Ollama is running and TranslateGemma is installed

Model Options

Choose the right balance of quality and speed.

ModelSizeSpeedQuality
translategemma:4b3.3 GB~300msGood
translategemma:12b8.1 GB~600msGreat
translategemma:27b17 GB~1.5sBest (default)

Supported Languages

57 languages powered by Google TranslateGemma.

RegionLanguages
EuropeEnglish, French, German, Spanish, Portuguese, Italian, Dutch, Danish, Swedish, Norwegian, Finnish, Polish, Czech, Slovak, Slovenian, Croatian, Serbian, Albanian, Bulgarian, Romanian, Hungarian, Estonian, Latvian, Lithuanian, Macedonian, Maltese, Greek, Irish, Scottish Gaelic, Galician, Catalan, Welsh
AsiaJapanese, Chinese (Simplified), Chinese (Traditional), Korean, Hindi, Bengali, Gujarati, Kannada, Malayalam, Marathi, Tamil, Telugu, Urdu, Thai, Vietnamese, Indonesian, Malay, Persian
OtherArabic, Hebrew, Turkish, Ukrainian, Russian, Swahili, Afrikaans