Discord MCP 服务器
一个用于 Discord API 与 Claude 集成的 MCP(模型上下文协议)服务器。该服务器允许 Claude 通过执行发送消息、阅读消息和管理服务器资源等操作的工具与 Discord 服务器进行交互。
先决条件
Node.js 16 或更高版本
Discord 机器人令牌(在Discord 开发者门户上创建一个)
适当的机器人权限:
阅读消息/查看频道
发送消息
阅读消息历史记录
(可选)根据需要的功能管理角色、管理频道等
安装
克隆此存储库
安装依赖项:
npm install构建项目:
npm run build
配置
使用以下命令在根目录中创建.env
文件:
用法
启动服务器:
npm start配置Claude桌面:
在Claude Desktop的配置文件中添加:GXP5
可用工具
send-message
:向 Discord 频道发送消息read-messages
:阅读 Discord 频道的最新消息list-channels
:列出服务器中可用的频道list-servers
:列出机器人可以访问的服务器get-user-info
:获取特定用户的信息
安全注意事项
Discord 机器人令牌可授予您访问 Discord 机器人的权限。请务必确保其安全。
该机器人只能访问被邀请的服务器。
每个服务器中的机器人的操作受到权限的限制。
执照
麻省理工学院
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
MCP 服务器允许 Claude 通过提供发送/读取消息的工具以及通过 Discord 的 API 管理服务器资源来与 Discord 进行交互。
Related MCP Servers
- AsecurityAlicenseAqualityProvides Discord integration capabilities to MCP clients like Claude Desktop.Last updated -15123MIT License
- AsecurityAlicenseAqualityAn MCP server that enables saving and sharing Claude Desktop conversations, allowing users to store chats privately or make them public through a web interface.Last updated -11MIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.Last updated -68MIT License
- -securityFlicense-qualityAn MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.Last updated -15