Skip to main content
Glama
mcp-discord

mcp-discord

by hanweg

Discord MCP サーバー

鍛冶屋のバッジ Claude Desktop などの MCP クライアントに Discord 統合機能を提供する Model Context Protocol (MCP) サーバー。

利用可能なツール

サーバー情報

  • get_server_info : 詳細なサーバー情報を取得する

  • list_members : サーバーのメンバーとその役割を一覧表示する

メッセージ管理

  • send_message : チャネルにメッセージを送信する

  • read_messages : 最近のメッセージ履歴を読む

  • add_reaction : メッセージに反応を追加する

  • add_multiple_reactions : メッセージに複数の反応を追加する

  • remove_reaction : メッセージから反応を削除する

  • moderate_message : メッセージを削除し、ユーザーをタイムアウトさせる

チャンネル管理

  • create_text_channel : 新しいテキストチャンネルを作成する

  • delete_channel : 既存のチャンネルを削除する

役割管理

  • add_role : ユーザーにロールを追加する

  • remove_role : ユーザーからロールを削除する

Webhook管理

  • create_webhook : 新しいWebhookを作成する

  • list_webhooks : チャネル内のウェブフックを一覧表示する

  • send_webhook_message : Webhook経由でメッセージを送信する

  • modify_webhook : Webhook設定を更新する

  • delete_webhook : Webhookを削除する

Related MCP server: Discord MCP Server

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Discord サーバーを自動的にインストールするには:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude
  1. Discord ボットを設定します。

    • Discord開発者ポータルで新しいアプリケーションを作成する

    • ボットを作成し、トークンをコピーする

    • 必要な特権インテントを有効にします。

      • メッセージ内容の意図

      • プレゼンスインテント

      • サーバーメンバーの意図

    • OAuth2 URLジェネレータを使用してボットをサーバーに招待する

  2. パッケージをクローンしてインストールします。

# Clone the repository
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord

# Create and activate virtual environment
uv venv
.venv\Scripts\activate

### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts`

# Install the package
uv pip install -e .
  1. Claude Desktop を構成します (Windows の場合は%APPDATA%\Claude\claude_desktop_config.json 、macOS の場合は~/Library/Application Support/Claude/claude_desktop_config.json ):

    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token"
      }
    }

ライセンス

MIT ライセンス - 詳細については LICENSE ファイルを参照してください。

Available Tools

15 tools
add_multiple_reactionsC

Add multiple reactions to a message

Inputs: channel_id (required), emojis (required), message_id (required).

add_reactionC

Add a reaction to a message

Inputs: channel_id (required), emoji (required), message_id (required).

add_roleC

Add a role to a user

Inputs: role_id (required), server_id (required), user_id (required).

create_text_channelC

Create a new text channel

Inputs: name (required), server_id (required), category_id, topic.

delete_channelC

Delete a channel

Inputs: channel_id (required), reason.

get_channelsC

Get a list of all channels in a Discord server

Inputs: server_id (required).

get_server_infoC

Get information about a Discord server

Inputs: server_id (required).

get_user_infoC

Get information about a Discord user

Inputs: user_id (required).

list_membersC

Get a list of members in a server

Inputs: server_id (required), limit.

list_serversA

Get a list of all Discord servers the bot has access to with their details such as name, id, member count, and creation date.

Inputs: no named parameters.

moderate_messageB

Delete a message and optionally timeout the user

Inputs: channel_id (required), message_id (required), reason (required), timeout_minutes.

read_messagesC

Read recent messages from a channel

Inputs: channel_id (required), limit.

remove_reactionC

Remove a reaction from a message

Inputs: channel_id (required), emoji (required), message_id (required).

remove_roleC

Remove a role from a user

Inputs: role_id (required), server_id (required), user_id (required).

send_messageC

Send a message to a specific channel

Inputs: channel_id (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 15 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity. For example, add_reaction and remove_reaction are complementary opposites, while moderate_message handles message deletion and user timeouts separately from delete_channel. The tools cover different Discord resources (channels, messages, reactions, roles, servers, users) with specific actions.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern throughout. Examples include get_channels, send_message, create_text_channel, and remove_role. There are no deviations in style or convention, making the tool set predictable and easy to understand.

    Tool Count5/5

    With 15 tools, this server is well-scoped for Discord management. Each tool earns its place by covering essential operations like channel management, message handling, role assignment, and server/user information retrieval. The count is appropriate for the domain without being overwhelming.

    Completeness4/5

    The tool set provides comprehensive coverage for core Discord bot operations, including CRUD for channels, messages, reactions, and roles, along with read operations for servers and users. Minor gaps exist, such as no tool for editing messages or updating channel details, but agents can work around these with the available tools.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
      19
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.
      6
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables Claude Desktop to interact with Discord through a dedicated bot. It allows users to list channels, read message history, and send messages directly from the AI interface.
      2
      -