MCP-Discord
AI アシスタントが Discord プラットフォームと対話できるようにする Discord MCP (Model Context Protocol) サーバー。
概要
MCP-Discord は、次の Discord 関連機能を提供します。
- Discordボットにログイン
- サーバー情報を取得する
- チャンネルメッセージの読み取り/削除
- 指定されたチャネルにメッセージを送信する
- フォーラムのチャンネルリストを取得する
- フォーラム投稿の作成/削除/返信
- テキストチャンネルの作成/削除
- メッセージ反応の追加/削除
- Webhookの作成/編集/削除/使用
目次
前提条件
- Node.js (v16.0.0 以上)
- npm (v7.0.0 以上)
- 適切な権限を持つDiscordボット
- ボットトークン( Discord開発者ポータルから入手可能)
- メッセージコンテンツインテントが有効
- サーバーメンバーの意図が有効
- プレゼンスインテントが有効
- Discord サーバーでの権限:
- メッセージを送信
- 公開スレッドを作成する
- スレッドでメッセージを送信する
- スレッドを管理する
- チャンネルを管理する
- 反応を追加する
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の mcp-discord を自動的にインストールするには:
手動インストール
構成
Discordボットトークンは正常に動作するために必要です。トークンは以下の2つの方法で提供できます。
- 環境変数:
- 起動時に
--config
パラメータを使用する:
強化された起動スクリプト
このプロジェクトには、より優れたデバッグとエラー処理を提供する強化された起動スクリプト ( start-discord.js
) が含まれています。
- .env ファイルから環境変数を読み込みます
- 指定されていない場合はデフォルトのサーバーとチャンネルIDを設定します
- Claude Desktop での JSON 解析の問題を回避するために、console.log を stderr にリダイレクトします。
- MCP サーバーを起動する前に Discord 接続を直接テストします
- 何か問題が発生した場合に詳細なエラー情報を提供します
このスクリプトを使用するには:
Claude/Cursor との使用
- クロード
- カーソル
ツールドキュメント
基本機能
discord_login
: Discordにログインdiscord_list_guilds
: 利用可能なすべての Discord サーバー (ギルド) とそのチャンネルを一覧表示しますdiscord_send
: 指定されたチャンネルにメッセージを送信するdiscord_get_server_info
: Discord サーバーの情報を取得する
チャンネル管理
discord_create_text_channel
: テキストチャンネルを作成するdiscord_delete_channel
: チャンネルを削除する
フォーラム機能
discord_get_forum_channels
: フォーラムチャンネルのリストを取得するdiscord_create_forum_post
: フォーラム投稿を作成するdiscord_get_forum_post
: フォーラム投稿を取得するdiscord_reply_to_forum
: フォーラム投稿に返信するdiscord_delete_forum_post
: フォーラム投稿を削除する
メッセージと反応
discord_read_messages
: チャンネルメッセージを読むdiscord_add_reaction
: メッセージに反応を追加するdiscord_add_multiple_reactions
: メッセージに複数の反応を追加するdiscord_remove_reaction
: メッセージから反応を削除するdiscord_delete_message
: チャンネルから特定のメッセージを削除する
Webhook管理
discord_create_webhook
: Discordチャンネル用の新しいWebhookを作成しますdiscord_send_webhook_message
: Webhookを使用してDiscordチャンネルにメッセージを送信しますdiscord_edit_webhook
: Discordチャンネルの既存のWebhookを編集しますdiscord_delete_webhook
: Discordチャンネルの既存のWebhookを削除します
発達
ライセンス
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
AI アシスタントが Discord プラットフォームと対話できるようにし、メッセージの送信、チャンネルの管理、フォーラム投稿の作成、Webhook の処理などの機能を提供する Discord MCP サーバー。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that enables posting messages to Discord webhooks, allowing customization of content, username, and avatar URL.Last updated -10JavaScriptMIT License
- AsecurityAlicenseAqualityA Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.Last updated -152435TypeScriptMIT License
- AsecurityFlicenseAqualityAn 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 -1920JavaScript
- -securityFlicense-qualityA Discord bot server that integrates with Mastra's MCP Bot component to provide intelligent assistance and answer questions about Mastra.ai through direct messages and slash commands.Last updated -1691TypeScript