MCPリレー
この MCP サーバーにより、Claude は Discord チャネルにメッセージやプロンプトを送信し、応答を受け取ることができます。
セットアップ手順
1. Discordアプリケーションとボットを作成する
Discord開発者ポータルへアクセス
「新しいアプリケーション」をクリックして名前を付けます
左サイドバーの「ボット」セクションに移動します
ボットのトークンセクションで、「トークンをリセット」をクリックし、新しいトークンをコピーします。
このトークンは安全に保管してください。公開しないでください。
「特権ゲートウェイ インテント」で、以下を有効にします。
メッセージコンテンツの意図
サーバーメンバーの意図
プレゼンスインテント
2. ボットをサーバーに招待する
左側のサイドバーの「OAuth2」セクションに移動します
「URLジェネレータ」を選択
「スコープ」で以下を選択します。
ボット
アプリケーションコマンド
「ボット権限」で以下を選択します。
メッセージを送信
リンクを埋め込む
メッセージ履歴を読む
生成されたURLをコピーしてブラウザで開きます
サーバーを選択し、ボットを承認します
3. チャンネルIDを取得する
Discord で開発者モードを有効にします。
ユーザー設定 > アプリ設定 > 詳細設定に移動します
「開発者モード」をオンにする
使用したいチャンネルを右クリックします
「チャンネルIDをコピー」をクリック
4. MCP設定を構成する
サーバーはMCP設定ファイルで設定する必要があります。設定ファイルに以下の行を追加してください。
交換する:
/ABSOLUTE/PATH/TO/MCP RelayMCP Relay プロジェクトへの実際のパスに置き換えます。your_bot_token_hereに Discord ボットトークンを入力しますyour_channel_id_hereに Discord チャンネル ID を入力します
注意: 構成では必ず絶対パスを使用してください。
使用法
サーバーは、次のパラメータを受け入れるsend-messageと呼ばれるツールを提供します。
メッセージの種類
通知: 応答を期待しないシンプルなメッセージ
{ "type": "notification", "title": "Hello", "content": "This is a notification" }プロンプト: 応答を待つメッセージ
{ "type": "prompt", "title": "Question", "content": "Do you want to proceed?", "actions": [ { "label": "Yes", "value": "yes" }, { "label": "No", "value": "no" } ], "timeout": 60000 // Optional: 1 minute timeout }
注記:
プロンプトには、アクションボタンをクリックするか、テキストメッセージを送信することで回答できます。
プロンプトごとに 1 つの応答のみが受け入れられます
タイムアウトが指定されている場合、タイムアウト期間後にプロンプトは失敗します。
通知は応答を待たずにすぐに戻ります
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
このサーバーは Discord との統合を可能にし、プロンプトと通知を使用して Claude と Discord チャネル間のメッセージ交換を可能にします。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityProvides Discord integration capabilities to MCP clients like Claude Desktop.Last updated -15126MIT License
- -security-license-qualityA Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.Last updated -83MIT License
- -security-license-qualityA server that enables interaction with Telegram chats directly through MCP-compatible hosts like Claude for Desktop, providing tools to retrieve chats, get messages, and send messages.Last updated -399Apache 2.0
- Asecurity-licenseAqualityAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.Last updated -19103