claude-discord-mcp
Enables Claude Code to interact with Discord servers, including sending messages, reading channels, managing threads, and adding reactions via natural language commands.
README
claude-discord-mcp
Claude CodeからDiscordを直接操作できるMCPサーバーです。
セットアップ
1. Discord Botの作成
- Discord Developer Portal にアクセス
- New Application をクリック → 名前を入力して作成
- 左メニュー Bot をクリック
2. Privileged Gateway Intentsの有効化
Botページの Privileged Gateway Intents セクションで、以下の3つをONにしてください:
- SERVER MEMBERS INTENT — メンバー一覧の取得に必要
- MESSAGE CONTENT INTENT — メッセージ内容の読み取りに必要
※ PRESENCE INTENTは任意です
3. Botトークンの取得
Botページの Token セクションで:
- Reset Token をクリック
- 表示されたトークンをコピー(一度しか表示されません)
4. Botをサーバーに招待
- 左メニュー OAuth2 をクリック
- OAuth2 URL Generator セクションの SCOPES で
botにチェック - BOT PERMISSIONS で以下にチェック:
- チャンネルを表示
- メッセージを送る
- 公開スレッドを作成
- プライベートスレッドを作成
- Threadsでメッセージを送る
- メッセージを管理
- メッセージ履歴を読む
- リアクションを付ける
- ページ下部の 生成されたURL をブラウザで開く
- 招待先のサーバーを選んで認証
5. Claude Codeに登録
ターミナルで以下を実行(あなたのBotトークン を手順3で取得したトークンに置き換え):
claude mcp add-json discord-mcp "{\"type\":\"stdio\",\"command\":\"npx\",\"args\":[\"claude-discord-mcp\"],\"env\":{\"DISCORD_BOT_TOKEN\":\"あなたのBotトークン\"}}"
または ~/.claude.json に直接追記:
{
"mcpServers": {
"discord-mcp": {
"type": "stdio",
"command": "npx",
"args": ["claude-discord-mcp"],
"env": {
"DISCORD_BOT_TOKEN": "あなたのBotトークン"
}
}
}
}
6. 動作確認
Claude Codeを再起動して、/mcp で discord-mcp が connected になっていればOKです。
使えるツール(16種類)
| カテゴリ | ツール | 説明 |
|---|---|---|
| サーバー | discord_list_guilds |
Bot参加中のサーバー一覧 |
discord_get_guild_info |
サーバー詳細情報 | |
| チャンネル | discord_list_channels |
チャンネル一覧 |
discord_get_channel_info |
チャンネル詳細情報 | |
| メッセージ | discord_send_message |
メッセージ送信 |
discord_read_messages |
メッセージ取得 | |
discord_reply_message |
メッセージに返信 | |
discord_delete_message |
メッセージ削除 | |
| リアクション | discord_add_reaction |
リアクション追加 |
discord_get_reactions |
リアクション取得 | |
| スレッド | discord_create_thread |
スレッド作成 |
discord_list_threads |
スレッド一覧 | |
discord_send_thread_message |
スレッドにメッセージ送信 | |
| ユーザー | discord_list_members |
メンバー一覧 |
| ロール | discord_list_roles |
ロール一覧 |
discord_get_role_members |
ロールのメンバー一覧 |
使い方の例
Claude Codeで自然言語で頼むだけです:
- 「Discordのサーバー一覧を見せて」
- 「#generalの最新メッセージ20件読んで」
- 「#generalに『お疲れ様です』と送って」
- 「そのメッセージに👍つけて」
- 「サーバーのメンバー一覧教えて」
ライセンス
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.