Integrations
Provides translation capabilities using the DeepL API, including text translation between numerous languages, rephrasing, automatic language detection, and formality control for supported languages.
deepl-mcp-服务器
使用 DeepL API 提供翻译功能的模型上下文协议 (MCP) 服务器。
特征
- 在多种语言之间翻译文本
- 使用 DeepL 的功能重新表述文本
- 访问所有 DeepL API 语言和功能
- 自动语言检测
- 支持语言的形式控制
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 deepl-mcp-server:
Copy
克隆此存储库并安装依赖项:
Copy
配置
DeepL API密钥
您需要一个 DeepL API 密钥才能使用此服务器。您可以通过在DeepL API上注册来获取密钥。使用 DeepL API 免费帐户,您每月最多可以免费翻译 50 万个字符。
与 Claude Desktop 一起使用
该 MCP 服务器与 Claude Desktop 集成,可在您与 Claude 的对话中直接提供翻译功能。
配置步骤
- 如果你还没有安装 Claude Desktop
- 创建或编辑 Claude Desktop 配置文件:
- 在 macOS 上:
~/Library/Application Support/Claude/claude_desktop_config.json
- 在 Windows 上:
%AppData%\Claude\claude_desktop_config.json
- 在 Linux 上:
~/.config/Claude/claude_desktop_config.json
- 在 macOS 上:
- 添加 DeepL MCP 服务器配置:
Copy
- 将
/path/to/deepl-mcp-server
替换为此存储库本地副本的绝对路径- 例如,/Users/robotwoman/Code/deepl-mcp-server
- 将
your-api-key-here
替换为你的实际 DeepL API 密钥 - 重启Claude桌面
配置完成后,Claude 将能够在需要时使用 DeepL 翻译工具。您可以让 Claude 在不同语言之间翻译文本,它会在后台使用 DeepL API。
可用工具
该服务器提供以下工具:
get-source-languages
:获取可供翻译的源语言列表get-target-languages
:获取可供翻译的目标语言列表translate-text
:将文本翻译成目标语言rephrase-text
:用相同或不同的语言改写文本
工具详细信息
翻译文本
该工具使用 DeepL API 在语言之间翻译文本。
参数:
text
:要翻译的文本targetLang
:目标语言代码(例如,'en-US','de','fr')formality
(可选):控制翻译的正式程度:'less'
:使用非正式语言'more'
:使用正式、更礼貌的语言'default'
:使用默认形式'prefer_less'
:如果可用,则使用非正式语言,否则使用默认语言'prefer_more'
:如果可用,则使用正式语言,否则使用默认语言
改述文本
该工具使用 DeepL API 以相同或不同的语言重新表述文本。
参数:
text
:需要重新表述的文本
支持的语言
DeepL API 支持多种语言的翻译。您可以使用get-source-languages
和get-target-languages
工具查看当前支持的所有语言。
受支持的语言的一些示例包括:
- 英语(en、en-US、en-GB)
- 德语(de)
- 西班牙语(es)
- 法语(fr)
- 意大利语(它)
- 日语(ja)
- 中文(zh)
- 葡萄牙语(pt-BR,pt-PT)
- 俄语(ru)
- 以及更多
调试
有关调试信息,请访问MCP 调试文档。
错误处理
如果您遇到 DeepL API 错误,请检查以下内容:
- 验证您的 API 密钥是否正确
- 确保你没有超出 API 使用限制
- 确认您使用的语言代码受支持
执照
麻省理工学院
链接
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.Last updated -9PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to create, update, and delete Dub.co short links through the Dub.co API.Last updated -3115JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to interact with n8n workflows through natural language, supporting actions like listing, creating, updating, executing and monitoring workflows.Last updated -135225TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Confluence content, supporting operations like retrieving, searching, creating, and updating pages and spaces.Last updated -93TypeScriptMIT License