game-translator-mcp
Click on "Install 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., "@game-translator-mcpTranslate my RimWorld mod's English text to Chinese"
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.
game-translator-mcp
A general-purpose game localization MCP tool — scans game directories, calls AI for translation, and writes Chinese text back.
Purpose: a "translation capability" that can be invoked by an AI Agent, not a standalone localization tool. It can work alongside tools such as mc-translator-mcp and mc-pack-builder-mcp.
Scope
This tool is designed for translating games/mods whose text is stored in plain-text files; it performs "text translation" rather than "resource pack injection."
Scope | Description |
Supported formats |
|
Typical use cases | Minecraft mods, Euro Truck Simulator 2, Source-engine games (Portal 2 / HL2 / L4D VDF), Unity plain-text localization tables, Steam plain-text config files |
Input | Game root directory or any directory containing text files |
Output | A standalone localization directory (copy mode) that does not modify original game files |
Out of scope / known limitations:
Unity packaged binary resources such as
.pak/.vpk/catalog.jsonmust be unpacked before they can be processed.Unreal games like Palworld that use
.locresneed to be unpacked with UnrealPak.War Thunder / PUBG and other server-delivered or encrypted text are not supported (no cracking/decryption support).
Text files over 10MB are skipped automatically during scanning to avoid accidentally scanning binaries.
Tip: Unity games contain many
.json/.xmlfiles, but most are engine configuration rather than in-game copy; the scanner reports them as-is, and you decide whether they are worth translating.
Related MCP server: translator-ai
Requirements
Requirement | Description |
Python | ≥ 3.10 |
Dependencies | See |
Internet | An internet connection is required to call the AI translation API |
API Key | Not tied to any specific provider. You choose any OpenAI-compatible provider and provide the key / base_url / model name (see "Configuration" below); this is the prerequisite for translation capability |
Portability | Pure Python + standard dependencies; runs locally on Windows / macOS / Linux with no platform coupling |
Licensing | Translated text is for personal study / non-commercial use only; for commercial use, confirm the game and mod redistribution terms first |
The AI provider is entirely configured by you (the configured key is detected and used; priority custom > agnes > dashscope > deepseek):
Custom OpenAI-compatible provider (recommended, most general):
TRANSLATOR_API_KEY+TRANSLATOR_BASE_URL+TRANSLATOR_MODEL, works with any compatible API platform.agnes ai:
AGNES_API_KEY+AGNES_BASE_URL+AGNES_MODELQwen (Tongyi Qianwen):
DASHSCOPE_API_KEYDeepSeek (optional fallback):
DEEPSEEK_API_KEY
Installation
cd game-translator-mcp
pip install -e ".[dev]"Configuration
Copy .env.example to .env and fill in the provider you want to use:
cp .env.example .envChoose any one method (the configured key is detected and used; the priority is custom > agnes > dashscope > deepseek):
# 方式 A(推荐,最通用):自定义 OpenAI 兼容供应商 —— 填你自己的 key / 网关地址 / 模型名
TRANSLATOR_API_KEY=sk-xxx
TRANSLATOR_BASE_URL=https://your-gateway.example.com/v1
TRANSLATOR_MODEL=your-model
# 方式 B:agnes ai(也可展开为 OpenAi 兼容平台)
# AGNES_API_KEY=sk-xxx
# AGNES_BASE_URL=https://apihub.agnes-ai.com/v1
# AGNES_MODEL=agnes-2.5-flash
# 方式 C:通义千问
# DASHSCOPE_API_KEY=sk-your-qwen-key-here
# 方式 D:DeepSeek(可选,主供应商失败时 fallback)
# DEEPSEEK_API_KEY=
BATCH_SIZE=15 # 每批翻译条数,越高越省 token
OUTPUT_DIR=translated_output # 汉化输出目录Configuration precedence: environment variables are read first, then the
.envfile in the project root, and finally built-in defaults. You provide the API Key yourself and request it from the corresponding platform (e.g. agnes / Qwen / DeepSeek / other OpenAI-compatible gateway).
Portability: This tool is not bound to any cloud service provider. As long as any one of the above API parameter sets is configured on the target machine, it will run locally, and it is suitable for CI, Docker, or any platform.
Startup
As an MCP server (for AI Agents)
python -m game_translator_mcpTrae / Claude Desktop configuration example:
{
"mcpServers": {
"game-translator-mcp": {
"command": "python",
"args": ["-m", "game_translator_mcp"]
}
}
}LangChain Agent integration (with PYTHONPATH pointing to src/):
{
"mcpServers": {
"game-translator-mcp": {
"command": "python",
"args": ["-m", "game_translator_mcp"],
"env": {
"PYTHONPATH": "/path/to/game-translator-mcp/src"
}
}
}
}CLI mode
# 扫描游戏目录,列出可翻译文件
python -m game_translator_mcp check <游戏目录路径>
# 执行完整汉化
python -m game_translator_mcp translate <游戏目录路径> --modid mygame
# 预览翻译效果(不写入文件)
python -m game_translator_mcp translate <游戏目录路径> --modid mygame --dry-run
# 列出 Steam 库中的可翻译游戏
python -m game_translator_mcp steamMCP tools
Tool name | Function |
| Scans a directory and returns a list of translatable files plus a text volume estimate |
| Scan → AI translation → write-back → generate report. |
| Preview translation results without actually modifying files |
| Discovers installed translatable games in the local Steam library |
Usage examples
Natural language invocation (through Trae)
"Help me scan which of my Steam games have translatable text."
"Help me translate the English text of the game 'RimWorld'."
"Preview the localization of 'Factorio' without actually writing files."
Direct command-line invocation
# 汉化一个模组目录
python -m game_translator_mcp translate "path/to/my-mod" --modid mymod
# 输出目录默认为 translated_output/
# 汉化报告自动生成到 translated_output/report.txtOutput structure
translated_output/
├── my-mod/
│ ├── assets/my-mod/lang/zh_cn.json
│ └── ...(保持原目录结构)
├── rimworld/
│ ├── Assets/StreamingAssets/Localization/zh-cn.json
│ └── ...
└── report.txt # 汉化报告Core modules
Module | Function |
| Scans game directories, identifies translatable files, and filters out binaries / large files. |
| Multi-format text parser (JSON / LANG / TXT / INI / XML / YAML / SII / TSV / VDF) |
| Batched translation for any OpenAI-compatible provider (custom / agnes / Qwen / DeepSeek) + SHA-256 cache |
| Writes translation results back, preserving the original format, supporting two modes: copy / inplace |
| Generates clear translation reports (success / skipped / failure stats) |
| Steam game discovery, parsing VDF index files |
| MCP server entry point, exposing 4 tools for AI Agents |
| Command-line interface with subcommands |
Design highlights
Intelligent caching: A SHA-256 hash is computed for
Translation Resolved High Keyin braces (for readability) and the same text is translated exactly once; results are persisted intranslator_cache.json.Skip existing translations: If a file with the same format already exists in the output directory, it is skipped automatically so community translations are not overwritten.
Batch translation: Each response carries up to
BATCH_SIZEentries, and a single API call returns all results. This greatly reduces token usage and latency.Provider adaptive: Detects which key you have configured and uses it (custom > agnes > dashscope), with optional DeepSeek as a fallback; the tool is not tied to any one provider.
Zero-invasive output: The default copy mode writes an independent output directory and never changes the original game files.
Testing
python -m pytest tests/ -v
# 或
pytest tests/ -vAll tests pass on Windows with Python 3.14 (77 tests passed, including the new VDF UTF-16 case).
Real translation testing
End-to-end translation verification was also performed against real game files (using agnes ai). The results are archived in tests/reports/:
✅ REPO:
Menu/HUD/Game.tsvwith 603 entries was fully translated and written back to TSV, with 602 successful entries.✅ Portal 2: source-engine VDF (UTF-16) end-to-end localization; 2231 plaintext entries in
basemodui_english.txtare translatable, and UTF-16 BOM was preserved on write-back.✅ Biped 2:
localization_en.txtwith 928 entries inkey=valueform, can be localized directly.Others (Isaac / Palworld / CSGO, etc.): the text is wrapped in private resource packs or configuration only; see the test report.
Welcome contributions to the game library
This tool supports any game that stores text in a plain-text format. If your game or mod uses plain-text files (.json / .tsv / .lang / .sii / .vdf etc.), please contribute to the game library through an Issue or PR extension, and help extend the existing parsers. Full guidelines are in tests/reports/.
Relationship to the existing toolchain
Tool | How they work together |
| Minecraft-specific enhanced version; this tool is the curated subset for jav.mc. |
| Automatically detects whether a mod needs localization when building a modpack and calls this tool to translate it |
| After translation, checks if the config files are still well-formed |
LangChain Agent | When integrated through the MCP stdio protocol, supports natural-language-driven localization |
Contribution guide
To add support for a new game text format:
Add a new parser function (such as
_parse_locres) inparser.pyRegister it in the
_PARSERSdictionaryAdd the extension to
SUPPORTED_EXTENSIONSinscanner.pyAdd a corresponding test in
tests/test_parser.py
License
MIT License — free to use, modify, and distribute.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA ModelContextProtocol server providing high-quality translation services with a three-stage translation workflow (analysis, segmented translation, full-text review) that supports multiple languages and integrates with Claude and OpenAI-compatible models.26
- FlicenseNot gradedqualityCmaintenanceEnables translation of JSON i18n files to multiple languages using various AI providers (Google Gemini, OpenAI, Ollama/DeepSeek) with intelligent caching and deduplication.166
- FlicenseAqualityDmaintenanceEnables automatic discovery and fast searching of translation files in projects, supporting partial/exact key-value matching with file watching and multiple translation file formats.2
- AlicenseNot gradedqualityCmaintenanceEnables speech-to-text and text-to-speech conversion using OpenAI-compatible APIs. Supports customizable models, voices, and output directories.GPL 3.0
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcd887/game-translator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server