discord-mcp
Provides tools for interacting with the Discord API, enabling management of Discord servers, channels, and messages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@discord-mcpsend a message to #general saying 'Hello from MCP!'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Discord MCP Server
Discord API MCP (Model Context Protocol) Server - Discord機能をMCP対応クライアントと統合するためのTypeScript実装です。
機能
Zodバリデーションを使用したTypeScript実装
簡単なデプロイのためのDockerサポート
MCPプロトコル準拠
Discord API統合
Related MCP server: discord-user-mcp
利用可能なツール
利用可能なツールの詳細については、ツール一覧を参照してください。
要件
Docker
Docker Compose(オプション)
インストール
# リポジトリをクローン
git clone https://github.com/yourusername/discord-mcp.git
cd discord-mcp
# Dockerイメージをビルド
docker build -t discord-mcp .MCP設定
Claude Desktop
Claude Desktopの設定ファイルを編集します:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
以下の設定を追加します:
Dockerを使用する場合(推奨)
{
"mcpServers": {
"discord-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-e", "DISCORD_TOKEN=your_discord_bot_token",
"discord-mcp"
]
}
}
}ローカルビルドを使用する場合
{
"mcpServers": {
"discord-mcp": {
"command": "node",
"args": ["/path/to/discord-mcp/dist/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token"
}
}
}
}開発環境での設定
{
"mcpServers": {
"discord-mcp-dev": {
"command": "npx",
"args": ["ts-node", "/path/to/discord-mcp/src/index.ts"],
"cwd": "/path/to/discord-mcp",
"env": {
"DISCORD_TOKEN": "your_discord_bot_token",
"LOG_LEVEL": "debug"
}
}
}
}その他のMCPクライアント
stdio方式で接続できる任意のMCPクライアントから利用できます:
# Dockerで直接実行
docker run --rm -e DISCORD_TOKEN=your_discord_bot_token discord-mcp使用方法
Docker(推奨)
# 基本実行
docker run --rm -e DISCORD_TOKEN=your_discord_bot_token discord-mcp
# Docker Composeを使用
docker-compose up --build開発環境(ローカル開発用)
# 依存関係をインストール
npm install
# 開発モードで開始
npm run devスクリプト
npm run build- TypeScriptをJavaScriptにコンパイルnpm run start- 本番サーバーを開始npm run dev- ts-nodeを使用して開発モードで開始npm run lint- ESLintを実行npm run typecheck- TypeScriptの型チェックを実行npm run docker:build- Dockerイメージをビルド
プロジェクト構造
discord-mcp/
├── src/
│ └── index.ts # メインサーバー実装
├── dist/ # コンパイル済みJavaScript出力
├── Dockerfile # Docker設定
├── docker-compose.yml # Docker Compose設定
├── package.json # プロジェクト依存関係とスクリプト
├── tsconfig.json # TypeScript設定
└── README.md # このファイル設定ガイド
Discord Bot の設定
新しいApplicationを作成
Bot タブでBot トークンを取得
OAuth2 → URL Generatorで以下の権限を設定:
botスコープSend Messages権限Read Message History権限
生成されたURLでDiscordサーバーに招待
環境変数の設定
# Discord Bot トークンを設定
export DISCORD_TOKEN="your_discord_bot_token_here"
# ログレベルの設定(オプション)
export LOG_LEVEL="info" # debug, info, warn, error設定確認のコマンド
# Claude Desktop設定ファイルの確認 (macOS)
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
# JSON形式の検証
python -m json.tool ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Dockerイメージの確認
docker images | grep discord-mcpライセンス
MIT License - 詳細はLICENSEファイルを参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables comprehensive Discord bot management and server operations through MCP, including channel management, message handling, member moderation, role management, and voice operations. Provides secure Discord API integration with built-in permission controls and audit logging capabilities.Last updated1920618MIT
- Alicense-qualityDmaintenanceEnables interaction with Discord using personal user tokens instead of bot applications, allowing for seamless message management and server exploration. It provides tools for reading history, sending messages, and searching across channels and DMs directly through MCP-compatible clients.Last updated6MIT
- AlicenseAqualityDmaintenanceMCP server for interacting with Discord via REST API, enabling guild, channel, and message operations using a bot token.Last updated7MIT
- Alicense-qualityDmaintenanceLets any MCP-compatible AI client interact with Discord — send messages, manage channels, create webhooks, assign roles, and more.Last updated45MIT
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for AI dialogue using various LLM models via AceDataCloud
Official MCP server for OmniDimension. Drive voice agents, dispatch calls, and run bulk campaigns.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/yone-k/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server