Discord MCP Server

Integrations

  • Allows Claude to interact with Discord servers through various tools for sending messages, reading message history, listing channels and servers, and retrieving user information.

Discord MCP 服务器

一个用于 Discord API 与 Claude 集成的 MCP(模型上下文协议)服务器。该服务器允许 Claude 通过执行发送消息、阅读消息和管理服务器资源等操作的工具与 Discord 服务器进行交互。

先决条件

  • Node.js 16 或更高版本
  • Discord 机器人令牌(在Discord 开发者门户上创建一个)
  • 适当的机器人权限:
    • 阅读消息/查看频道
    • 发送消息
    • 阅读消息历史记录
    • (可选)根据需要的功能管理角色、管理频道等

安装

  1. 克隆此存储库
  2. 安装依赖项:
    npm install
  3. 构建项目:
    npm run build

配置

使用以下命令在根目录中创建.env文件:

DISCORD_TOKEN=your_discord_bot_token_here

用法

  1. 启动服务器:
    npm start
  2. 配置Claude桌面:
    • 在Claude Desktop的配置文件中添加:GXP5

可用工具

  • send-message :向 Discord 频道发送消息
  • read-messages :阅读 Discord 频道的最新消息
  • list-channels :列出服务器中可用的频道
  • list-servers :列出机器人可以访问的服务器
  • get-user-info :获取特定用户的信息

安全注意事项

  • Discord 机器人令牌可授予您访问 Discord 机器人的权限。请务必确保其安全。
  • 该机器人只能访问被邀请的服务器。
  • 每个服务器中的机器人的操作受到权限的限制。

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

MCP 服务器允许 Claude 通过提供发送/读取消息的工具以及通过 Discord 的 API 管理服务器资源来与 Discord 进行交互。

  1. Prerequisites
    1. Installation
      1. Configuration
        1. Usage
          1. Available Tools
            1. Security Considerations
              1. License
                ID: id57ccv57l