Skip to main content

discord-mcp

io.github.PaSympa/discord-mcp

v2.5.0Updated Nov 25, 2026stdio · MCPBstdio · npmstdio · Docker

Run your Discord from Claude, Codex, Cursor or VS Code: messages, moderation, roles, forums, events

Install

Needs 1 secret. Replace 1 placeholder with your own values.

Run in your terminal. Replace 1 placeholder.

claude mcp add discord-mcp -e 'DISCORD_TOKEN=<your-discord-token>' -e DISCORD_MCP_TOOLSETS=all -e DISCORD_MCP_READ_ONLY=false -e DISCORD_MESSAGE_CONTENT=true -e DISCORD_GUILD_MEMBERS=true -e DISCORD_MCP_TRANSPORT=stdio -e DISCORD_MCP_HTTP_HOST=127.0.0.1 -e DISCORD_MCP_HTTP_PORT=3000 -- npx -y @pasympa/[email protected]

Configuration

11 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

  • DISCORD_TOKEN
    Env var· required· secret
    Discord bot token
  • DISCORD_MCP_HTTP_TOKEN
    Env var· optional· secret
    Bearer token every HTTP request must carry. Required when DISCORD_MCP_TRANSPORT is http: at least 32 characters from the RFC 6750 b64token alphabet, different from DISCORD_TOKEN. Generate one with openssl rand -hex 32.
  • DISCORD_MCP_TOOLSETS
    Env var· optional
    Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, polls, or all. An unknown name stops the server at startup.Default: all
  • DISCORD_MCP_READ_ONLY
    Env var· optional
    Set to true to expose only the read-only tools of the selected toolsets: write tools are neither listed nor callable. Any value other than true/false, 1/0, yes/no or on/off stops the server at startup.Default: false
  • DISCORD_ALLOWED_GUILDS
    Env var· optional
    Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected, and the DM tools refuse a user who is not a member of any listed guild. Unset allows every guild.
  • DISCORD_MESSAGE_CONTENT
    Env var· optional
    Set to false to stop requesting the Message Content privileged intent at connect time.Default: true
Show 5 more
  • DISCORD_GUILD_MEMBERS
    Env var· optional
    Set to false to stop requesting the Server Members privileged intent at connect time.Default: true
  • DISCORD_MCP_TRANSPORT
    Env var· optional
    stdio, or http to serve Streamable HTTP on /mcp for remote clients such as the OpenAI Responses API, Codex or n8n. Any other value stops the server at startup.Default: stdio
  • DISCORD_MCP_HTTP_HOST
    Env var· optional
    Address the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 outside a container. In the Docker image, set 0.0.0.0, since 127.0.0.1 is unreachable from outside the container, and publish the port on the host loopback only: -p 127.0.0.1:3000:3000.Default: 127.0.0.1
  • DISCORD_MCP_HTTP_PORT
    Env var· optional
    Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.Default: 3000
  • DISCORD_MCP_HTTP_ALLOWED_HOSTS
    Env var· optional
    Comma-separated hostnames, without port, accepted in the Host header of HTTP requests besides localhost, 127.0.0.1 and [::1], such as the public name a reverse proxy forwards.

Listed in the official MCP Registry since Nov 25, 2026. Mirrored daily; last checked Nov 26, 2026.