Skip to main content
Glama
DeepL
by DeepL

deepl-mcp-服务器

版本 许可证:MIT 铁匠徽章

使用 DeepL API 提供翻译功能的模型上下文协议 (MCP) 服务器。

特征

  • 在多种语言之间翻译文本

  • 使用 DeepL 的功能重新表述文本

  • 访问所有 DeepL API 语言和功能

  • 自动语言检测

  • 支持语言的形式控制

Related MCP server: AiryLark MCP Translation Server

安装

您可以使用 npm 安装它:

npm install deepl-mcp-server

或者您可以克隆此存储库并安装依赖项:

git clone https://github.com/DeepLcom/deepl-mcp-server.git
cd deepl-mcp-server
npm install

配置

DeepL API密钥

您需要一个 DeepL API 密钥才能使用此服务器。您可以通过在DeepL API上注册来获取密钥。使用 DeepL API 免费帐户,您每月最多可以免费翻译 50 万个字符。

与 Claude Desktop 一起使用

该 MCP 服务器与 Claude Desktop 集成,可在您与 Claude 的对话中直接提供翻译功能。

配置步骤

  1. 如果你还没有安装 Claude Desktop

  2. 创建或编辑 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

  3. 添加 DeepL MCP 服务器配置:

{
  "mcpServers": {
    "deepl": {
      "command": "npx",
      "args": ["-y", "/path/to/deepl-mcp-server"],
      "env": {
        "DEEPL_API_KEY": "your-api-key-here"
      }
    }
  }
}
  1. /path/to/deepl-mcp-server替换为此存储库本地副本的绝对路径- 例如, /Users/robotwoman/Code/deepl-mcp-server

  2. your-api-key-here替换为你的实际 DeepL API 密钥

  3. 重启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-languagesget-target-languages工具查看当前支持的所有语言。

受支持的语言的一些示例包括:

  • 英语(en、en-US、en-GB)

  • 德语(de)

  • 西班牙语(es)

  • 法语(fr)

  • 意大利语(它)

  • 日语(ja)

  • 中文(zh)

  • 葡萄牙语(pt-BR,pt-PT)

  • 俄语(ru)

  • 以及更多

调试

有关调试信息,请访问MCP 调试文档

错误处理

如果您遇到 DeepL API 错误,请检查以下内容:

  • 验证您的 API 密钥是否正确

  • 确保你没有超出 API 使用限制

  • 确认您使用的语言代码受支持

执照

麻省理工学院

链接

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
4hResponse time
0dRelease cycle
2Releases (12mo)
Commit activity
Issues opened vs closed

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

  • F
    license
    Not graded
    quality
    D
    maintenance
    A server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
  • F
    license
    Not graded
    quality
    D
    maintenance
    A ModelContextProtocol server providing high-quality translation services with a three-stage translation workflow (analysis, segmented translation, full-text review) that supports multiple languages and integrates with Claude and OpenAI-compatible models.
    26
  • A
    license
    Not graded
    quality
    D
    maintenance
    An AI-driven text translation service supporting 20+ languages, based on the Model Context Protocol (MCP) for integration with Claude Desktop and other MCP-compatible applications.
    MIT

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…

View all MCP Connectors

Latest Blog Posts

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/DeepL/deepl-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server