Discord消息管理服务

mcp-discord 是一个用于 Discord 的通讯协作 MCP 服务,通过机器人令牌向频道发送消息、读取历史消息、列出频道、获取服务器与用户信息并添加表情回应,可集成到 Claude Desktop 等 MCP 客户端中使用。

  • by PetrefiedThunder
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 PetrefiedThunder/mcp-discord

使用说明

mcp-discord

Send messages, list channels, read history, and add reactions in Discord.

Tools

Tool Description
send_message Send a message to a Discord channel.
get_messages Get recent messages from a channel.
list_channels List channels in a guild.
get_guild Get guild (server) info.
get_user Get a user's info.
add_reaction Add an emoji reaction to a message.

Configuration

Variable Required Description
DISCORD_BOT_TOKEN Yes Discord bot token

Installation

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

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["/path/to/mcp-discord/dist/index.js"],
      "env": {
        "DISCORD_BOT_TOKEN": "your-discord-bot-token"
      }
    }
  }
}

Usage with npx

npx mcp-discord

License

Apache-2.0