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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。