Discord MCP Server
A Dockerized MCP server that enables Discord integration, offering tools for role management, messaging, moderation, and server administration via natural language.
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_messagestool to read messages inside threads.read_messagesnow 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_messagesandread_thread_messagesviainclude_image_data. - v1.3.0 (2026-03-05): Enhanced
read_messageswith 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
Resourceimport 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_messagescan include image attachments as MCP image content withinclude_image_data: trueand optionalimage_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.
- Create a
config.yamlfile in your project directory (or use the provided default). - Add your settings:
# Example: Set timezone to South Korea timezone: "Asia/Seoul" - 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
- Go to the Discord Developer Portal.
- Create an Application and a Bot.
- Enable the following Privileged Gateway Intents:
PRESENCE INTENTSERVER MEMBERS INTENTMESSAGE CONTENT INTENT
- Copy your Bot Token and paste it into the
envsection above. - Invite the bot to your server using the OAuth2 URL Generator (permissions:
Administratorrecommended 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.