Discord MCP Server

Discord MCP Server

A Dockerized MCP server that enables Discord integration, offering tools for role management, messaging, moderation, and server administration via natural language.

Category
Visit Server

README

Discord MCP Server (Dockerized)

A Model Context Protocol (MCP) server that provides Discord integration capabilities, now enhanced with Role management tools and optimized for Docker.

This project is a fork of hanweg/mcp-discord with added features and simplified containerization.

✨ Recent Updates

  • v1.4.0 (2026-03-25): Added read_thread_messages tool to read messages inside threads. read_messages now includes message ID (for link generation) and thread metadata when a thread is attached to a message.
  • v1.4.1 (2026-05-20): Added optional image attachment content for read_messages and read_thread_messages via include_image_data.
  • v1.3.0 (2026-03-05): Enhanced read_messages with reaction information including custom emoji details (ID, name, animated status).
  • v1.2.0 (2026-02-05): Added support for reading forwarded messages (Message Snapshots) and detailed embed information (titles, fields, descriptions) in read_messages.
  • v1.1.0 (2026-02-04): Updated MCP SDK to v1.0.0+ to resolve Resource import errors and improve compatibility with latest MCP clients

Available Tools

🛡️ Role & Member Management

  • list_roles: List all roles in a server with their IDs and positions.
  • inspect_role: Get detailed metadata for a specific role (permissions, color, etc.).
  • list_members: List server members and their assigned roles.

📺 Channel & Permission Management (New)

  • inspect_channel: View channel details and permission overwrites.
  • get_audit_log: JSON viewing of recent server audit logs (actions like bans, role changes).

📊 Server Information

  • list_servers: List all servers the bot has access to.
  • get_server_info: Get detailed server metrics.
  • get_channels: List channels in a server.
  • get_user_info: Get detailed information about a Discord user.

💬 Messaging & Moderation

  • send_message: Send a message to a channel.
  • read_messages: Read recent history, reactions (including custom emoji details), embeds, message ID, and thread metadata.
  • read_thread_messages: Read messages inside a thread by thread ID.
  • read_messages / read_thread_messages can include image attachments as MCP image content with include_image_data: true and optional image_limit.
  • add_reaction / remove_reaction: Manage message reactions.
  • moderate_message: Delete messages and timeout users.

🚀 Getting Started (Docker)

This version is designed to run entirely within Docker, eliminating the need for local Python installations.

1. Build the Image

Clone this repository and run:

docker build -t discord-mcp .

2. Configure MCP Client

Add the following configuration to your MCP client (e.g., Claude Desktop or Antigravity).

  • Path for Windows (Claude): %APPDATA%\Claude\claude_desktop_config.json
  • Path for Antigravity: ~/.gemini/antigravity/mcp_config.json
  • Path for Kiro: - c:\Users\Admin\.kiro\settings\mcp.json (Kiro)

Configuration (config.yaml)

This server uses a config.yaml file for custom settings like Timezone.

  1. Create a config.yaml file in your project directory (or use the provided default).
  2. Add your settings:
    # Example: Set timezone to South Korea
    timezone: "Asia/Seoul"
    
  3. Mount this file when running via Docker (already configured in mcp_config.json):
    docker run -v /path/to/config.yaml:/app/config.yaml ...
    

Docker Setup

{
  "mcpServers": {
    "discord": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DISCORD_TOKEN",
        "discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token_here"
      }
    }
  }
}

3. Setting Up Your Discord Bot

  1. Go to the Discord Developer Portal.
  2. Create an Application and a Bot.
  3. Enable the following Privileged Gateway Intents:
    • PRESENCE INTENT
    • SERVER MEMBERS INTENT
    • MESSAGE CONTENT INTENT
  4. Copy your Bot Token and paste it into the env section above.
  5. Invite the bot to your server using the OAuth2 URL Generator (permissions: Administrator recommended for full tool access).

🔮 Future Plans

We plan to add even more Discord functionality to this MCP server, expanding its capabilities for better server management and interaction. Stay tuned for updates!

License

This project is licensed under the MIT License - see the LICENSE file for details. Based on the original work by Hanweg Altimer.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured