Discord交互服务

一个基于Claude的Discord交互服务,用于监控反馈、错误和对话。

  • by JeffOtano
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 JeffOtano/discord-mcp

使用说明

不和谐mcp

Discord MCP(模型上下文协议)服务器,允许Claude读取Discord频道并与之交互。专为监控反馈、错误和对话而构建。

工具

工具 说明
list-channels 列出服务器中的所有文本频道
read-messages 使用分页(之前/之后)读取最近的邮件
search-messages 按关键字搜索邮件
read-thread 读取来自某个线程的消息
send-message 发送消息(可选回复)

设置

1.创建Discord Bot

  1. 首选 Discord开发者门户
  2. 创建新应用程序
  3. 首选 机器人 选项卡,单击 重置令牌,复制它
  4. 启用 消息内容意图 在特权网关权限下
  5. 首选 OAuth2>URL生成器,选择 bot 范围与 Read Message History 和 Send Messages 权限
  6. 使用生成的URL邀请机器人到您的服务器

2.安装

git clone https://github.com/JeffOtano/discord-mcp.git
cd discord-mcp
npm install
npm run build

3.配置克劳德代码

添加到您的Claude Code MCP设置中(~/.claude/settings.json 或项目 .mcp.json):

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["/path/to/discord-mcp/build/index.js"],
      "env": {
        "DISCORD_TOKEN": "your_bot_token_here"
      }
    }
  }
}

用法示例

"List the channels in my Discord server"
"Read the last 20 messages from #feedback"
"Search for 'error' in #bug-reports"
"Read the thread about authentication issues in #support"

许可证

麻省理工学院