这是一个提供 Discord 集成功能的 Model Context Protocol (MCP) 服务器,适用于像 Claude Desktop 这样的 MCP 客户端。
<a href="https://glama.ai/mcp/servers/wvwjgcnppa"><img width="380" height="200" src="https://gips3.baidu.com/it/u=2853256449,15524892&fm=3081&app=3081&f=PNG?w=760&h=400" alt="mcp-discord MCP 服务器" /></a>
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 自动安装 Discord 服务器给 Claude Desktop:
npx -y @smithery/cli install @hanweg/mcp-discord --client claude
MIT 许可证 - 查看 LICENSE 文件获取详情。 </中文翻译>