mcp-discord
Discord MCP 服务器
模型上下文协议 (MCP) 服务器为 Claude Desktop 等 MCP 客户端提供 Discord 集成功能。
可用工具
服务器信息
get_server_info:获取详细的服务器信息list_members:列出服务器成员及其角色
消息管理
send_message:向频道发送消息read_messages:阅读最近的消息历史记录add_reaction:对消息添加反应add_multiple_reactions:向消息添加多个反应remove_reaction:从消息中删除反应moderate_message:删除消息和超时用户
渠道管理
create_text_channel:创建一个新的文本通道delete_channel:删除现有频道
角色管理
add_role:为用户添加角色remove_role:从用户中删除角色
Webhook 管理
create_webhook:创建一个新的 webhooklist_webhooks:列出频道中的 webhooksend_webhook_message:通过 webhook 发送消息modify_webhook:更新 webhook 设置delete_webhook:删除 webhook
Related MCP server: Discord MCP Server
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Discord 服务器:
npx -y @smithery/cli install @hanweg/mcp-discord --client claude设置你的 Discord 机器人:
在Discord 开发者门户创建新应用程序
创建机器人并复制令牌
启用所需的特权意图:
消息内容意图
存在意图
服务器成员意图
使用 OAuth2 URL 生成器邀请机器人加入你的服务器
克隆并安装包:
# 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 .配置 Claude 桌面(Windows 上为
%APPDATA%\Claude\claude_desktop_config.json,macOS 上为~/Library/Application Support/Claude/claude_desktop_config.json):
"discord": {
"command": "uv",
"args": [
"--directory",
"C:\\PATH\\TO\\mcp-discord",
"run",
"mcp-discord"
],
"env": {
"DISCORD_TOKEN": "your_bot_token"
}
}执照
MIT 许可证 - 详情请参阅 LICENSE 文件。
Available Tools
15 toolsadd_multiple_reactionsC
Add multiple reactions to a message
Inputs: channel_id (required), emojis (required), message_id (required).
add_reactionC
Add a reaction to a message
Inputs: channel_id (required), emoji (required), message_id (required).
add_roleC
Add a role to a user
Inputs: role_id (required), server_id (required), user_id (required).
create_text_channelC
Create a new text channel
Inputs: name (required), server_id (required), category_id, topic.
delete_channelC
Delete a channel
Inputs: channel_id (required), reason.
get_channelsC
Get a list of all channels in a Discord server
Inputs: server_id (required).
get_server_infoC
Get information about a Discord server
Inputs: server_id (required).
get_user_infoC
Get information about a Discord user
Inputs: user_id (required).
list_membersC
Get a list of members in a server
Inputs: server_id (required), limit.
list_serversA
Get a list of all Discord servers the bot has access to with their details such as name, id, member count, and creation date.
Inputs: no named parameters.
moderate_messageB
Delete a message and optionally timeout the user
Inputs: channel_id (required), message_id (required), reason (required), timeout_minutes.
read_messagesC
Read recent messages from a channel
Inputs: channel_id (required), limit.
remove_reactionC
Remove a reaction from a message
Inputs: channel_id (required), emoji (required), message_id (required).
remove_roleC
Remove a role from a user
Inputs: role_id (required), server_id (required), user_id (required).
send_messageC
Send a message to a specific channel
Inputs: channel_id (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool has a clearly distinct purpose with no ambiguity. For example, add_reaction and remove_reaction are complementary opposites, while moderate_message handles message deletion and user timeouts separately from delete_channel. The tools cover different Discord resources (channels, messages, reactions, roles, servers, users) with specific actions.
All tools follow a consistent verb_noun naming pattern throughout. Examples include get_channels, send_message, create_text_channel, and remove_role. There are no deviations in style or convention, making the tool set predictable and easy to understand.
With 15 tools, this server is well-scoped for Discord management. Each tool earns its place by covering essential operations like channel management, message handling, role assignment, and server/user information retrieval. The count is appropriate for the domain without being overwhelming.
The tool set provides comprehensive coverage for core Discord bot operations, including CRUD for channels, messages, reactions, and roles, along with read operations for servers and users. Minor gaps exist, such as no tool for editing messages or updating channel details, but agents can work around these with the available tools.
Maintenance
Related MCP Connectors
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
Manage a Discord server from Claude, ChatGPT or any MCP client. Sign in with Discord, no bot token.
- Discortics - Discord BotDeprecatedcom.discortics
Set up and manage your Discord server from MCP: channels, roles, verification, tickets and security.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.622MIT
- AlicenseAqualityDmaintenanceAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.19MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.63MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables Claude Desktop to interact with Discord through a dedicated bot. It allows users to list channels, read message history, and send messages directly from the AI interface.2-