Skip to content

Discord MCPModel Context Protocol for Discord

Safe, declarative Discord API access through MCP tools

Quick Start ​

bash
# Install dependencies
npm install

# Configure environment
cp .env.example .env

# Enable desired packs
echo "PACK_ADMIN=1" >> .env
echo "PACK_MEDIA=1" >> .env
echo "PACK_COMMUNITY=1" >> .env
echo "PACK_DEVTOOLS=1" >> .env

# Run in development mode
npm run dev

Claude Desktop Configuration ​

Add to your mcp.json:

json
{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["dist/index.js"],
      "env": {
        "DISCORD_BOT_TOKEN": "****",
        "ALLOW_GUILD_IDS": "123,456",
        "ALLOW_CHANNEL_IDS": "789,012",
        "ALLOWED_MENTIONS": "none",
        "GATEWAY_INTENTS": "1<<0|1<<9",
        "PACK_ADMIN": "1",
        "PACK_MEDIA": "1",
        "PACK_COMMUNITY": "1",
        "PACK_DEVTOOLS": "1"
      }
    }
  }
}

Released under the MIT License.