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等
Metadata
Release files for doctranslator-local-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doctranslator_local_mcp-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for doctranslator_local_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doctranslator_local_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for doctranslator_local_mcp-0.1.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / doctranslator_local_mcp-0.1.0.tar.gz
| Download URL | doctranslator_local_mcp-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee396a4097af52c81a70f629af6c31f03871cb1914ba799b8efde3261ea2bf60
|
|
BLAKE2b-256 checksum How to use checksums |
7b3c54109d9027a6a1aee308c3915a5be9eb44a5b5ee0bd62a9c7e51f2ab621e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / doctranslator_local_mcp-0.1.0-py3-none-any.whl
| Download URL | doctranslator_local_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a16672e024f09d138ada31f237160762c4ff4bcf95a96d15c711e16f10eb24a1
|
|
BLAKE2b-256 checksum How to use checksums |
4b5f2e73e438cbda9e5bef41f40077328a0e9dfb070d0aba08e1aeeb8ac0b505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for doctranslator-local-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.