DeepL MCP Server

by DeepLcom
MIT License
44
6
  • Apple
  • Linux

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:

npx --yes @smithery/cli install @DeepLcom/deepl-mcp-server --client claude

克隆此存储库并安装依赖项:

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 使用限制
  • 确认您使用的语言代码受支持

执照

麻省理工学院

链接

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

模型上下文协议服务器使 AI 助手能够使用 DeepL API 在多种语言之间翻译和重新表述文本。

  1. 特征
    1. 安装
      1. 通过 Smithery 安装
    2. 配置
      1. DeepL API密钥
    3. 与 Claude Desktop 一起使用
      1. 配置步骤
    4. 可用工具
      1. 工具详细信息
        1. 翻译文本
        2. 改述文本
      2. 支持的语言
        1. 调试
          1. 错误处理
            1. 执照
              1. 链接

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A 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 -
                  9
                  Python
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that enables AI assistants to create, update, and delete Dub.co short links through the Dub.co API.
                  Last updated -
                  3
                  11
                  5
                  JavaScript
                  MIT License
                  • Linux
                  • Apple
                • -
                  security
                  A
                  license
                  -
                  quality
                  A 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 -
                  135
                  225
                  TypeScript
                  MIT License
                  • Apple
                  • Linux
                • A
                  security
                  A
                  license
                  A
                  quality
                  A 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 -
                  9
                  3
                  TypeScript
                  MIT License

                View all related MCP servers

                ID: hs222qbsnt