mcp-discord

MCP.Pizza Chef: hanweg

Fifteen tools cover a Discord server you administer: send and read messages, add or remove reactions, look up members and roles, create a text channel and delete one. The destructive ones carry no guard rail — deleting a channel wipes it and its whole history instantly, and the moderation tool deletes a message and can mute its author, neither asking first. Setting it up means creating your own bot in Discord's developer portal, switching on three privileged permissions and inviting it in.

Unmaintained · no code changes since July 2025
Communication

Use This MCP server To

Post an announcement to a channel from my chat Catch up on the last hundred messages in a channel See who is in my server and what roles they hold React to a message with several emoji at once Give a member a role without opening Discord Create a new text channel under a category

README

Discord MCP Server

smithery badge A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.

mcp-discord MCP server

Available Tools

Server Information

  • list_servers: List available servers
  • get_server_info: Get detailed server information
  • get_channels: List channels in a server
  • list_members: List server members and their roles
  • get_user_info: Get detailed information about a user

Message Management

  • send_message: Send a message to a channel
  • read_messages: Read recent message history
  • add_reaction: Add a reaction to a message
  • add_multiple_reactions: Add multiple reactions to a message
  • remove_reaction: Remove a reaction from a message
  • moderate_message: Delete messages and timeout users

Channel Management

  • create_text_channel: Create a new text channel
  • delete_channel: Delete an existing channel

Role Management

  • add_role: Add a role to a user
  • remove_role: Remove a role from a user

Installation

  1. Set up your Discord bot:

    • Create a new application at Discord Developer Portal
    • Create a bot and copy the token
    • Enable required privileged intents:
      • MESSAGE CONTENT INTENT
      • PRESENCE INTENT
      • SERVER MEMBERS INTENT
    • Invite the bot to your server using OAuth2 URL Generator
  2. Clone and install the package:

# 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 # On macOS/Linux, use: source .venv/bin/activate

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

# Install the package
uv pip install -e .
  1. Configure Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token"
      }
    }

Installing via Smithery

To install Discord Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude

License

MIT License - see LICENSE file for details.

mcp-discord FAQ

Can I use this to post messages in Discord?
Yes. Give it a channel and some text and it posts as the bot you created, under the bot's name rather than yours.
Can it delete things?
Yes, and immediately. One tool deletes an entire channel along with its history, and another deletes a message and can mute its author. There is no confirmation step and no read-only mode.
What credential does it need?
A Discord bot token, which you generate free in Discord's developer portal. Nothing is paid, but you must have permission to add a bot to the server.
How hard is setup?
Hard. You create a bot application, switch on three privileged permissions, invite it to your server, then clone and install the code. Smithery can automate the install part for Claude Desktop.
Will it read every channel?
Only the ones your bot can see. You control its reach through the bot's permissions in Discord itself.
Can it read private messages between other people?
No. It acts as a bot account, which only sees servers it has joined and the channels it has been allowed into.
Is it still maintained?
It is not archived, but the code has not changed since July 2025.