MCP-Discord 集成工具添加福利群:解决AI开发者的「MCP实战痛点」
一个模型上下文协议(MCP)服务器,为 MCP 客户端(如 Claude Desktop)提供 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 机器人:
克隆并安装包:
# 克隆仓库
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord
# 创建并激活虚拟环境
uv venv
.venv\Scripts\activate # 在 macOS/Linux 上,使用:source .venv/bin/activate
### 如果使用 Python 3.13+ - 安装 audioop 库:`uv pip install audioop-lts`
# 安装包
uv pip install -e .

%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"
}
}

通过 Smithery 自动为 Claude Desktop 安装 Discord 服务器:
npx -y @smithery/cli install @hanweg/mcp-discord --client claude
MIT 许可证 - 详见 LICENSE 文件。