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_TOKENEnv var· required· secretDiscord bot tokenDISCORD_MCP_HTTP_TOKENEnv var· optional· secretBearer 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_TOOLSETSEnv var· optionalComma-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:allDISCORD_MCP_READ_ONLYEnv var· optionalSet 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:falseDISCORD_ALLOWED_GUILDSEnv var· optionalComma-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_CONTENTEnv var· optionalSet to false to stop requesting the Message Content privileged intent at connect time.Default:true
Show 5 moreShow fewer
DISCORD_GUILD_MEMBERSEnv var· optionalSet to false to stop requesting the Server Members privileged intent at connect time.Default:trueDISCORD_MCP_TRANSPORTEnv var· optionalstdio, 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:stdioDISCORD_MCP_HTTP_HOSTEnv var· optionalAddress 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.1DISCORD_MCP_HTTP_PORTEnv var· optionalPort the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.Default:3000DISCORD_MCP_HTTP_ALLOWED_HOSTSEnv var· optionalComma-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.
Links
Listed in the official MCP Registry since Nov 25, 2026. Mirrored daily; last checked Nov 26, 2026.