Discord MCP Server
Provides tools for server management, role and member management, channel and permission inspection, audit log retrieval, messaging, moderation, and reading messages with reactions, embeds, threads, and image attachments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Discord MCP Serverlist all roles in the server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Discord MCP Server
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.jsonPath for Antigravity:
~/.gemini/antigravity/mcp_config.jsonPath 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shawtymarco/MCP-Discord'
If you have feedback or need assistance with the MCP directory API, please join our Discord server