Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-discord

MCP.Pizza Chef: hanweg

The mcp-discord server is a Model Context Protocol (MCP) server designed to integrate Discord bot functionalities into MCP clients such as Claude Desktop. It provides comprehensive Discord server management capabilities including retrieving server info, managing members, sending and reading messages, reacting to messages, and moderating content. Additionally, it supports channel management features like creating and deleting text channels. This server enables real-time, structured interaction with Discord environments, empowering developers to build advanced AI-driven workflows and bots that operate within Discord communities efficiently and securely.

Use This MCP server To

Send and read messages in Discord channels Manage Discord server members and roles Add or remove reactions on messages Moderate messages and timeout users Create and delete Discord text channels Retrieve detailed Discord server information

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

  • get_server_info: Get detailed server information
  • list_members: List server members and their roles

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

Webhook Management

  • create_webhook: Create a new webhook
  • list_webhooks: List webhooks in a channel
  • send_webhook_message: Send messages via webhook
  • modify_webhook: Update webhook settings
  • delete_webhook: Delete a webhook

Installation

Installing via Smithery

To install Discord Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude
  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

### 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"
      }
    }

License

MIT License - see LICENSE file for details.

mcp-discord FAQ

How do I authenticate the mcp-discord server with my Discord bot?
You authenticate by providing your Discord bot token during the server setup, enabling secure API access to your Discord server.
Can mcp-discord handle message moderation automatically?
Yes, it supports deleting messages and timing out users to help automate moderation tasks within your Discord server.
Does mcp-discord support managing multiple Discord servers simultaneously?
The server can be configured to connect to multiple Discord servers, but each connection requires separate authentication and setup.
How does mcp-discord integrate with MCP clients like Claude Desktop?
It exposes Discord data and actions as structured tools that MCP clients can call, enabling seamless AI-driven interactions within Discord.
Is it possible to customize the reactions added to messages using mcp-discord?
Yes, you can add single or multiple reactions to messages, allowing flexible interaction and feedback mechanisms.
What permissions does the Discord bot need for full functionality?
The bot requires permissions to read and send messages, manage channels, add reactions, and moderate messages to fully utilize mcp-discord features.
Can mcp-discord read message history from channels?
Yes, it can read recent message history to provide context for AI models or for moderation purposes.
How secure is the communication between MCP clients and the mcp-discord server?
Communication follows MCP’s secure, scoped, and observable interaction principles, ensuring safe and controlled access to Discord data.