一个提供AI代理安全访问Discord REST API和网关事件的模型上下文协议服务器。
<a href="https://glama.ai/mcp/servers/@GustyCube/discord-mcp"> <img width="380" height="200" src="https://gips0.baidu.com/it/u=2101286297,174854499&fm=3081&app=3_081&f=PNG?w=760&h=400" alt="Discord Server MCP 服务器" /> </a>🔧 120+ Discord API 工具 - 完全覆盖Discord的REST API
🔒 安全第一 - 服务器/频道白名单,安全默认设置,无意外提及
⚡ 实时事件 - 集成网关以实现实时Discord活动
🎯 智能路由 - 根据声明式API目录自动生成工具
📦 模块化包 - 启用您需要的功能
# 克隆并安装
git clone https://github.com/GustyCube/discord-mcp
cd discord-mcp
npm install
# 配置您的机器人
cp .env.example .env
# 添加您的DISCORD_BOT_TOKEN和其他设置
# 构建并运行
npm run build
npm start
📖 完整的文档可在discord-mcp.gustycube.com获取
添加到您的mcp.json:
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/path/to/discord-mcp/dist/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token_here",
"ALLOW_GUILD_IDS": "123456789,987654321",
"ALLOW_CHANNEL_IDS": "111111111,222222222"
}
}
}
}
参见完整文档了解开发设置、API参考和贡献指南。
MIT 许可证 - 详情见LICENSE文件。