Skip to main content
Glama

Nika — Discord MCPサーバー

AIアシスタントがDiscordコミュニティを運営できるようにする包括的なModel Context Protocolサーバー:メッセージング、モデレーション、ロール、チャンネル、フォーラム、ウェブフック、招待、予定イベント、AutoMod、オンボーディング、絵文字/ステッカー、権限上書き、音声管理 — 111ツール、さらに生のRESTパススルー(discord_api_request)により、Discord APIができることはすべて到達可能です。

Python + discord.py(永続的なゲートウェイ接続)とFastMCPで構築されています。


セットアップ

1. Discordボットを作成する(済み)

  • アプリケーション: Nika(ID 1538805149865091092

  • 有効なインテント: Server MembersMessage Content

  • トークン: .env に保存(絶対にコミットしないでください — .gitignore が保護します)

2. ボットをサーバーに招待する

このURLを開いてサーバーを選択してください(完全な機能を利用するにはAdministratorを付与してください):

https://discord.com/api/oauth2/authorize?client_id=1538805149865091092&permissions=8&scope=bot%20applications.commands

⚠️ ボットがサーバーに参加していないと、ほとんどのツールは何もできません。

3. インストールと設定

python -m venv .venv
.venv\Scripts\pip install -e ".[dev]"

.env(既に作成済み):

DISCORD_TOKEN=...            # bot token
DISCORD_GUILD_ID=            # optional: default server id → makes guildId optional everywhere
MCP_TRANSPORT=stdio          # stdio | http
HTTP_HOST=0.0.0.0            # HTTP mode only
HTTP_PORT=8085
LOG_LEVEL=INFO

Related MCP server: Cloud Discord

使用方法

stdio(デフォルト — Claude Desktop、VS Code、Cursor など)

.venv\Scripts\python -m discord_mcp

Claude Desktop の claude_desktop_config.json:

{
  "mcpServers": {
    "nika": {
      "command": "d:\\Projects\\david\\DiscordMCP\\.venv\\Scripts\\python.exe",
      "args": ["-m", "discord_mcp"],
      "cwd": "d:\\Projects\\david\\DiscordMCP"
    }
  }
}

HTTP(ストリーミング) — リモートアクセス、n8n、マルチクライアント

.venv\Scripts\python -m discord_mcp --transport http --port 8085
# endpoint: http://localhost:8085/mcp

クライアント設定:

{
  "mcpServers": {
    "nika": { "url": "http://localhost:8085/mcp" }
  }
}

Docker

docker compose up -d            # builds + runs HTTP mode on :8085
docker run -i --rm -e DISCORD_TOKEN=$env:DISCORD_TOKEN discord-mcp:latest   # stdio

MCP Inspector でテストする

npx @modelcontextprotocol/inspector .venv\Scripts\python.exe -m discord_mcp

ツールリファレンス(111ツール)

領域

ツール

サーバー

list_servers, get_server_info, get_server_summary, modify_server, leave_server

チャンネル

list_channels, list_categories, find_channel, get_channel_info, create_text_channel, create_voice_channel, create_stage_channel, create_category, create_forum_channel, edit_channel, move_channel, clone_channel, delete_channel, create_thread, list_active_threads, list_channel_threads

メッセージ

send_message(埋め込み + ファイル + 返信), reply_to_message, edit_message, delete_message, bulk_delete_messages, read_messages(前/後/周辺), get_message, pin_message, unpin_message, list_pinned_messages, add_reaction, add_multiple_reactions, remove_reaction, clear_reactions

メンバー

get_member_info, find_user(名前/ニックネームで検索 → メンション), list_members, set_nickname, get_user_by_id

ロール

list_roles, create_role, edit_role, delete_role, assign_role, remove_role, get_user_roles

DM

send_private_message, edit_private_message, delete_private_message, read_private_messages

モデレーション

kick_member, ban_member, unban_member, get_bans, timeout_member, remove_timeout, prune_members(ドライラン安全)

ボイス

move_member, disconnect_member, modify_voice_state(ミュート/スピーカーミュート/抑止), get_voice_channel_members, list_voice_channels

イベント

create_scheduled_event, edit_scheduled_event, delete_scheduled_event, list_scheduled_events, get_scheduled_event, get_scheduled_event_users

権限

list_channel_permission_overwrites, upsert_role_channel_permissions, upsert_member_channel_permissions, delete_channel_permission_overwrite

招待

create_invite, list_invites, delete_invite, get_invite_details

ウェブフック

create_webhook, edit_webhook, delete_webhook, list_webhooks, send_webhook_message

フォーラム

list_forum_channels, get_forum_channel_info, list_forum_tags, add_forum_tag, edit_forum_tag, delete_forum_tag, create_forum_post, reply_to_forum_post, list_forum_posts, modify_forum_post, delete_forum_post

絵文字とステッカー

list_emojis, get_emoji_details, create_emoji, edit_emoji, delete_emoji, list_stickers, create_sticker, edit_sticker, delete_sticker

AutoMod

list_automod_rules, create_automod_rule(キーワード/正規表現/プリセット/メンションスパム), edit_automod_rule, delete_automod_rule

オンボーディングと監査

get_welcome_screen, modify_welcome_screen, get_onboarding, search_audit_log

生API

discord_api_request — 任意のエンドポイント、任意のメソッド(PUT/PATCH/DELETE には confirmDestructive=true が必要)、レート制限に対応


設計メモ

  • ハイブリッドゲートウェイ + REST: 1つの永続的な discord.py ゲートウェイ接続がライブ状態(メンバー/チャンネルの検索、名前→ID)を提供し、変更は同じクライアントを通じて行われます。ツール呼び出しは asyncio.run_coroutine_threadsafe でゲートウェイループにブリッジされます。

  • 安全性: 生ツールは変更メソッドに対して confirmDestructive=true を要求します。prune_members はデフォルトでドライランです。破壊的なツールは reason を受け付け、監査ログに書き込まれます。

  • オプションの guildId: .envDISCORD_GUILD_ID を設定すると、すべての guildId パラメータがオプションになります。

  • エラー: Discord エラーは読みやすいメッセージに変換されます(例: Missing permissions: ...)。

制限事項

  • ボットトークンが必要です(ユーザートークン/セルフボットの自動化はDiscordの利用規約に違反します)。

  • メッセージの読み取りには、ボットがチャンネルを閲覧できることと(内容を取得するには)Message Contentインテントが必要です。

  • 音声のストリーミング/受信はサポートされていません。

開発

.venv\Scripts\python -m pytest        # 22 unit tests

レイアウト: discord_mcp/bot.py(ゲートウェイブリッジ) · discord_mcp/server.py(FastMCP) · discord_mcp/tools/*.py(ドメインごとに1モジュール) · discord_mcp/utils/(シリアライザー、埋め込み)。

ライセンス

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    B
    quality
    D
    maintenance
    A Discord MCP server that enables AI assistants to interact with Discord platforms, providing functionalities like sending messages, managing channels, creating forum posts, and handling webhooks.
    21
    465
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that gives AI agents full admin control over Discord servers with 59 tools for messaging, moderation, roles, channels, forums, reactions, files, and more, deployed on Cloudflare Workers.
    4
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Comprehensive Discord MCP server with 66 tools that provides rich message context including emoji reactions, thread indicators, and attachment metadata inline. Enables AI assistants to interact with Discord servers for messaging, moderation, roles, channels, and more.
    159
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Discord MCP server that enables AI assistants to interact with the Discord platform, providing features like message sending, channel management, forum operations, reactions, and webhook management.
    22
    465
    MIT

View all related MCP servers

Related MCP Connectors

  • An MCP server that integrates with Discord to provide AI-powered features.

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

  • Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.

View all MCP Connectors

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/alive2/discord-mcp'

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