DocTranslator 本地MCP 服务器,支持通过MCP客户端(如 Claude Desktop) 翻译本地文档文件
Project description
doctranslator-local-mcp
DocTranslator 本地MCP服务器,支持通过MCP客户端(如 Claude Desktop)翻译本地文档文件。
功能
- 📄 翻译本地文件(提供文件路径即可)
- 🔗 通过 URL 翻译在线文档
- 📊 查询翻译进度和状态
- 📥 下载翻译结果
- 📚 管理术语库和提示词模板
快速开始
uvx(推荐)
{
"mcpServers": {
"doctranslator": {
"command": "uvx",
"args": ["doctranslator-local-mcp"],
"env": {
"DOCTRANSLATOR_URL": "https://your-domain.com",
"DOCTRANSLATOR_API_KEY": "dtk_xxxxx"
}
}
}
}
pip
pip install doctranslator-local-mcp
doctranslator-local-mcp
环境变量
| 变量 | 必填 | 说明 |
|---|---|---|
DOCTRANSLATOR_URL |
✅ | 平台地址,如 https://your-domain.com |
DOCTRANSLATOR_API_KEY |
✅ | 在平台生成的MCP Key,如 dtk_xxxxx |
API_URL |
❌ | 翻译 API 地址,如 https://api.ezworkapi.top |
API_KEY |
❌ | 翻译 API Key |
MODEL |
❌ | 翻译模型,如 gpt-4o |
LANG |
❌ | 默认目标语言,如 中文(默认) |
TYPE |
❌ | 默认翻译类型(默认 trans_all_only_inherit) |
THREADS |
❌ | 翻译线程数(默认 5) |
COMPARISON_ID |
❌ | 默认术语库 ID |
PROMPT_ID |
❌ | 默认提示词模板 ID |
DOC2X_FLAG |
❌ | 启用 Doc2X(默认 N) |
DOC2X_SECRET_KEY |
❌ | Doc2X 密钥 |
如果 MCP Key 已在平台上配置了翻译参数,则
API_URL/API_KEY/MODEL等可以不填,会自动使用 Key 中的配置。
支持的文件格式
docx、xlsx、pptx、pdf、txt、md、csv、xls、doc、html、htm等
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doctranslator_local_mcp-0.1.0.tar.gz.
File metadata
- Download URL: doctranslator_local_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee396a4097af52c81a70f629af6c31f03871cb1914ba799b8efde3261ea2bf60
|
|
| MD5 |
0bb772ec0f00640fc2e9277b53e89e88
|
|
| BLAKE2b-256 |
7b3c54109d9027a6a1aee308c3915a5be9eb44a5b5ee0bd62a9c7e51f2ab621e
|
File details
Details for the file doctranslator_local_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: doctranslator_local_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a16672e024f09d138ada31f237160762c4ff4bcf95a96d15c711e16f10eb24a1
|
|
| MD5 |
9fd805bf272e5dce99996dbd669f32e2
|
|
| BLAKE2b-256 |
4b5f2e73e438cbda9e5bef41f40077328a0e9dfb070d0aba08e1aeeb8ac0b505
|