HM 

hanweg/mcp-discord 是一个从 https://github.com/hanweg/mcp-discord. 导入的 MCP 服务器候选服务器。
概览
hanweg/mcp-discord 是一个从 https://github.com/hanweg/mcp-discord. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,为 Claude Desktop 等 MCP 客户端提供 Discord 集成功能。
可用工具
服务器信息
list_servers:列出可用服务器get_server_info:获取详细服务器信息get_channels:在服务器中列出通道list_members:列出服务器成员及其角色get_user_info:获取用户的详细信息
消息管理
send_message:向信道发送消息read_messages:阅读近期消息历史add_reaction:对消息添加反应add_multiple_reactions:向消息添加多个反应remove_reaction:删除消息中的反应moderate_message:删除消息并超时用户
频道管理
create_text_channel:创建新的文本通道delete_channel:删除现有通道
角色管理
add_role:为用户添加角色remove_role:移除用户的角色
安装
- 设置你的Discord机器人:
- 在Discord开发者门户创建新应用
- 创建一个机器人并复制令牌
- 启用所需的特权意图:
- 消息内容意图
- 在场意图
本页由 AI 翻译,技术细节请以原文为准。
README
Discord MCP Server
A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.
Available Tools
Server Information
list_servers: List available serversget_server_info: Get detailed server informationget_channels: List channels in a serverlist_members: List server members and their rolesget_user_info: Get detailed information about a user
Message Management
send_message: Send a message to a channelread_messages: Read recent message historyadd_reaction: Add a reaction to a messageadd_multiple_reactions: Add multiple reactions to a messageremove_reaction: Remove a reaction from a messagemoderate_message: Delete messages and timeout users
Channel Management
create_text_channel: Create a new text channeldelete_channel: Delete an existing channel
Role Management
add_role: Add a role to a userremove_role: Remove a role from a user
Installation
-
Set up your Discord bot:
- Create a new application at Discord Developer Portal
- Create a bot and copy the token
- Enable required privileged intents:
- MESSAGE CONTENT INTENT
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- Invite the bot to your server using OAuth2 URL Generator
-
Clone and install the package:
# 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 # On macOS/Linux, use: source .venv/bin/activate
### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts`
# Install the package
uv pip install -e .
- Configure Claude Desktop (
%APPDATA%\Claude\claude_desktop_config.jsonon Windows,~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS):
"discord": {
"command": "uv",
"args": [
"--directory",
"C:\\PATH\\TO\\mcp-discord",
"run",
"mcp-discord"
],
"env": {
"DISCORD_TOKEN": "your_bot_token"
}
}
Installing via Smithery
To install Discord Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hanweg/mcp-discord --client claude
License
MIT License - see LICENSE file for details.
安装
npx -y @smithery/cli install @hanweg/mcp-discord --client claude