Discord MCP Server

Communicationstdio
代码仓库

A Model Context Protocol server that enables AI agents to interact with Discord through a bot. Agents can send and read messages in channels, list servers and channels, and manage basic server interactions while keeping the user in control. Useful for community automation, notifications, and conversational workflows on Discord.

连接

将此配置添加到 .claude/mcp.json

{
  "mcpServers": {
    "discord": {
      "command": "npx",
      "args": [
        "-y",
        "discordmcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>"
      }
    }
  }
}

工具 (2)

send_message

Send a message to a specified Discord channel.

{
  "type": "object",
  "required": [
    "channel_id",
    "content"
  ],
  "properties": {
    "content": {
      "type": "string",
      "description": "The message content to send"
    },
    "channel_id": {
      "type": "string",
      "description": "The Discord channel ID to send the message to"
    }
  }
}

read_messages

Read recent messages from a Discord channel.

{
  "type": "object",
  "required": [
    "channel_id"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "description": "Maximum number of messages to retrieve"
    },
    "channel_id": {
      "type": "string",
      "description": "The Discord channel ID to read from"
    }
  }
}

资源

此服务器未提供任何资源。

提示词

此服务器未提供任何提示词。

服务器信息

作者
v-3 (@v-3)
代码仓库
https://github.com/v-3/discordmcp
许可证
MIT
星标
0
最后更新
2026年6月12日