
deepl/deepl-mcp-server 是从 https://github.com/deepl/deepl-mcp-server. 导入的 MCP 服务器候选
概览
deepl/deepl-mcp-server 是从 https://github.com/deepl/deepl-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
[!注] 为了获得最佳体验和最新功能,可以试试 DeepL 远程 MCP 服务器,在你的 AI 代理中使用 DeepL。无需安装,只需将其添加到 Claude、ChatGPT、Microsoft Copilot 或任何 MCP 客户端,并用你的 DeepL 账户登录即可。
在终端里工作还是用编码代理?试试 DeepL 的 CLI。它涵盖翻译、文档、词汇表以及与你的 API 密钥同步 i18n 文件。
一个模型上下文协议(MCP)服务器,作为MCP工具,展示了DeepL文本翻译、文档翻译、重述以及术语表和样式规则查询。
用途
你需要Node.js 18或更新版本,并且需要一个DeepL API密钥。选择一个API套餐,并在你的DeepL账户里创建一个密钥。
服务器通过stdio通信,因此通常由MCP客户端启动,而不是手动启动。直接尝试:
如果 DEEPL_API_KEY 未被设置,则会立即退出。
要操作服务器本身:
配置
在服务器环境中注册为 DEEPL_API_KEY 的 stdio 服务器。用 Claude 代码:
对于通过JSON文件配置的客户端:
文件存放在哪里,以及每个客户端期望本地 stdio 服务器如何声明:
- 克劳德密码
- Claude桌面
- 光标
- VS 代码
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
deepl-mcp-server
[!NOTE] For the best experience and the latest features check out the DeepL remote MCP server to use DeepL in your AI agent. No installation required, just add it to Claude, ChatGPT, Microsoft Copilot or any MCP client and sign in with your DeepL account.
Working in a terminal or with a coding agent? Try the DeepL CLI. It covers translation, documents, glossaries and i18n file sync with your API key.
A Model Context Protocol (MCP) server that exposes DeepL text translation, document translation, rephrasing, and glossary and style rule lookups as MCP tools.
Usage
You need Node.js 18 or newer and a DeepL API key. Pick an API plan and create a key in your DeepL account.
The server communicates over stdio, so it is normally started by an MCP client rather than by hand. To try it directly:
DEEPL_API_KEY=your-api-key npx -y deepl-mcp-server
It exits immediately if DEEPL_API_KEY is not set.
To work on the server itself:
git clone https://github.com/DeepL/deepl-mcp-server.git
cd deepl-mcp-server
npm install
Configuration
Register it as a stdio server with DEEPL_API_KEY in the server’s environment. In Claude Code:
claude mcp add deepl --env DEEPL_API_KEY=your-api-key -- npx -y deepl-mcp-server
For clients configured through a JSON file:
{
"mcpServers": {
"deepl": {
"command": "npx",
"args": ["-y", "deepl-mcp-server"],
"env": {
"DEEPL_API_KEY": "your-api-key"
}
}
}
}
Where that file lives and how each client expects local stdio servers to be declared:
To run a local checkout instead of the published package, use node as the command and the absolute path to src/index.mjs as the argument.
Tools
| Tool | Description | Parameters |
安装
npx -y deepl-mcp-server配置
{
"mcpServers": {
"deepl": {
"command": "npx",
"args": ["-y", "deepl-mcp-server"],
"env": {
"DEEPL_API_KEY": "your-api-key"
}
}
}
}