Skip to main content
Glama

DeepL MCPサーバー

DeepL 翻訳機能を提供する MCP (Model Context Protocol) サーバー。

特徴

このサーバーは、MCP 経由で次のツールを公開します。

  • translate_text : DeepL API を使用して、サポートされている言語間で 1 つ以上のテキスト文字列を翻訳します。

  • list_languages : DeepL API でサポートされている言語 (ソース言語またはターゲット言語) のリストを取得します。

Related MCP server: DeepL MCP Server

前提条件

  • **Node.js および npm/yarn:**依存関係をインストールしてサーバーを実行するために必要です。

  • DeepL APIキー: DeepLのAPIキーが必要です。無料プランとProプランの両方でAPIにアクセスできます。登録または詳細については、 https://www.deepl.com/pro-apiをご覧ください。

インストール

  1. リポジトリをクローンします。

    git clone https://github.com/watchdealer-pavel/deepl-mcp-server.git cd deepl-mcp-server
  2. 依存関係をインストールします:

    npm install # or # yarn install
  3. サーバーを構築します。

    npm run build

    このコマンドは、TypeScript ソース コードを JavaScript にコンパイルし、出力をbuild/ディレクトリ (具体的にはbuild/index.js ) に配置します。

構成

このサーバーは、環境変数DEEPL_API_KEYを介してDeepL APIキーを提供する必要があります。このサーバーを実行するには、MCPクライアント(Cline/Roo CodeやClaudeデスクトップアプリなど)を設定し、環境変数を渡す必要があります。

構成例:

以下は一般的なMCPクライアントの例です。/path/to/your/deepl-mcp-server/build/index.js /path/to/your/deepl-mcp-server/build/index.js

Cline / Roo Code(VS Code拡張機能)

  1. MCPサーバーのVS Code設定を開きます。macOSの場合、通常は次の場所にあります: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json(注: 正確なパスは、オペレーティングシステムとVS Codeのインストールタイプ(例:Insider)によって異なる場合があります)

  2. mcpServersキーの下に次の構成ブロックを追加します。

    "deepl-translator": { "command": "node", "args": ["/path/to/your/deepl-mcp-server/build/index.js"], // <-- IMPORTANT: Replace with the ACTUAL absolute path to build/index.js "env": { "DEEPL_API_KEY": "YOUR_DEEPL_API_KEY" // <-- IMPORTANT: Replace with your DeepL API Key }, "disabled": false, "alwaysAllow": [] }

クロードデスクトップアプリ

  1. Claudeデスクトップアプリの設定ファイルを開きます。macOSの場合、通常は次の場所にあります: ~/Library/Application Support/Claude/claude_desktop_config.json(注: 正確なパスはオペレーティングシステムによって異なる場合があります)

  2. mcpServersキーの下に次の構成ブロックを追加します。

    "deepl-translator": { "command": "node", "args": ["/path/to/your/deepl-mcp-server/build/index.js"], // <-- IMPORTANT: Replace with the ACTUAL absolute path to build/index.js "env": { "DEEPL_API_KEY": "YOUR_DEEPL_API_KEY" // <-- IMPORTANT: Replace with your DeepL API Key }, "disabled": false, "alwaysAllow": [] }

使用法

設定が完了すると、 use_mcp_toolコマンド/ツールを使用して AI アシスタントからサーバーのツールを呼び出すことができます。

list_languages

<use_mcp_tool> <server_name>deepl-translator</server_name> <tool_name>list_languages</tool_name> <arguments> { "type": "target" // Optional: "source" or "target". Defaults to listing all if omitted. } </arguments> </use_mcp_tool>

translate_text

<use_mcp_tool> <server_name>deepl-translator</server_name> <tool_name>translate_text</tool_name> <arguments> { "text": ["Hello world", "How are you?"], // Required: An array of strings to translate "target_lang": "DE", // Required: Target language code (e.g., DE, FR, ES) "source_lang": "EN" // Optional: Source language code. DeepL will auto-detect if omitted. } </arguments> </use_mcp_tool>

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

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

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