mc-translator-mcp
mc-translator-mcp
Minecraft mod 中国語翻訳 MCP ツール
mod の jar ファイルから言語ファイルを自動的に抽出し、通义千问を呼び出してバッチ翻訳し、中国語リソースパックを生成します。
インストール
cd mc-translator-mcp
pip install -e .Related MCP server: NetEase ModSDK MCP Server
設定
.env.example を .env にコピーし、あなたの通义千问 API Key を入力してください:
cp .env.example .env
# 编辑 .env,填入 DASHSCOPE_API_KEYAPI Key の申請:阿里云百炼コンソール
起動方法
MCP サーバーとして使用(推奨)
python -m mc_translator_mcpTrae/Claude Desktop で MCP server を設定します:
{
"mcpServers": {
"mc-translator-mcp": {
"command": "python",
"args": ["-m", "mc_translator_mcp"]
}
}
}CLI モード
# 检查 jar 语言文件
python -m mc_translator_mcp check <jar_path>
# 翻译单个 jar
python -m mc_translator_mcp mod <jar_path> [--batch-size 15] [--force-retranslate]
# 批量翻译目录下所有 jar
python -m mc_translator_mcp dir <directory> [--glob "*.jar"] [--batch-size 15]使用例
Trae の会話で MCP ツールを使用
Trae に直接こう伝えます:
"この mod を翻訳してください:/path/to/mymod.jar"
Trae は自動的に MCP ツールの translate_mod または translate_all_mods_in_directory を呼び出します。
ローカル実行
# 翻译单个模组
python -m mc_translator_mcp mod "C:/Users/kjds/Desktop/mods/myzombie.jar" --batch-size 20
# 批量翻译整个 mods 目录
python -m mc_translator_mcp dir "C:/Users/kjds/Desktop/.minecraft/mods" --glob "*.jar"出力
デフォルトでは output/ ディレクトリに出力され、各 mod ごとに独立したリソースパックが生成されます:
output/
├── mymod-zh-cn/
│ ├── pack.mcmeta
│ └── assets/mymod/lang/zh_cn.json
├── zombie_mod-zh-cn/
│ ├── pack.mcmeta
│ └── assets/zombie_mod/lang/zh_cn.json
└── ...読み込み方法:output/<modid>-zh-cn/ フォルダを Minecraft の resourcepacks/ ディレクトリにコピーします。
コアモジュール
モジュール | 機能 |
| jar ファイルの構造を解析し、言語ファイルを検出します |
| .json / .lang 形式の言語ファイルを解析します |
| 通义千问によるバッチ翻訳 + ローカルキャッシュ |
| リソースパックの生成、または jar の書き換え |
| MCP サーバーのエントリポイント、2 つのツールを公開 |
テスト
python -m pytest tests/ -v設計ポイント
リソースパック優先:デフォルトで独立したリソースパックを生成し、元の jar ファイルを壊しません
スマートキャッシュ:同じ原文 + modid のエントリは一度だけ翻訳し、トークンの重複消費を防ぎます
既存の中国語化をスキップ:既存の zh_cn.json を検出した場合は自動的にスキップし、コミュニティ翻訳の上書きを防ぎます
バッチ翻訳:1 バッチあたり最大 BATCH_SIZE 件を処理し、1 回の API 呼び出しで全結果を返します
フォーマット互換:.json(現代)と .lang(従来)の 2 つの言語ファイル形式をサポートします
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 gradedqualityDmaintenanceIntegrates local language models (like Qwen3-8B) with MCP clients, providing tools for chat, code analysis, text generation, translation, and content summarization using your own hardware.
- AlicenseNot gradedqualityDmaintenanceEnables document retrieval, code generation, and code review for Minecraft China (NetEase) ModSDK development. It automates the creation of Mod projects, JSON configurations, and Python scripts while ensuring compliance with official development standards.79GPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server for page-level i18n translation using Alibaba Cloud Qwen models, supporting incremental translation, glossary, and multiple target languages.283MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for translating JSON localization files via DeepL API or local LLMs, enabling agents to estimate, check, and run translations.MIT
Related MCP Connectors
Translate MCP — wraps LibreTranslate API (https://libretranslate.com/)
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
LibreTranslate MCP — open-source machine translation (BYO endpoint)
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/mc-translator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server