discord-mcp
by github.com/PaSympa · v2.4.0 · updated Nov 15, 2026
Run your Discord from Claude, Codex, Cursor or VS Code: messages, moderation, roles, forums, events
Run it locally
Install the package and point your AI client at it.
npm
npx -y @pasympa/[email protected]Environment variables
DISCORD_TOKENrequiredsecretDiscord bot token
DISCORD_MCP_TOOLSETSComma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, or all. An unknown name stops the server at startup.
DISCORD_MCP_READ_ONLYSet 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.
DISCORD_ALLOWED_GUILDSComma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.
DISCORD_MESSAGE_CONTENTSet to false to stop requesting the Message Content privileged intent at connect time.
DISCORD_GUILD_MEMBERSSet to false to stop requesting the Server Members privileged intent at connect time.
DISCORD_MCP_TRANSPORTstdio, 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.
DISCORD_MCP_HTTP_TOKENsecretBearer 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_HTTP_HOSTAddress the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 unless the server runs in a container.
DISCORD_MCP_HTTP_PORTPort the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.
DISCORD_MCP_HTTP_ALLOWED_HOSTSComma-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.
Docker
docker run -i --rm docker.io/pasympa/discord-mcp:2.4.0Environment variables
DISCORD_TOKENrequiredsecretDiscord bot token
DISCORD_MCP_TOOLSETSComma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, or all. An unknown name stops the server at startup.
DISCORD_MCP_READ_ONLYSet 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.
DISCORD_ALLOWED_GUILDSComma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.
DISCORD_MESSAGE_CONTENTSet to false to stop requesting the Message Content privileged intent at connect time.
DISCORD_GUILD_MEMBERSSet to false to stop requesting the Server Members privileged intent at connect time.
DISCORD_MCP_TRANSPORTstdio, 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.
DISCORD_MCP_HTTP_TOKENsecretBearer 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_HTTP_HOSTAddress the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 unless the server runs in a container.
DISCORD_MCP_HTTP_PORTPort the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.
DISCORD_MCP_HTTP_ALLOWED_HOSTSComma-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.
MCP Bundle
https://github.com/PaSympa/discord-mcp/releases/download/v2.4.0/discord-mcp.mcpbMore MCP servers
Astral Code
github.com/Pablitodelg
Calculate birth charts, relationship aspects, and Moon phases in English or Spanish.
Google Workspace (gsuite-sdk)
github.com/PabloAlaniz
Gmail, Calendar, Drive, Sheets, Tasks and Contacts for agents, with your own Google login
PdfParse
github.com/PabloG6
Extract PDFs into structured tables, query records, and configure document inbox workflows.
PacketFabric
github.com/PacketFabric
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
Packkit
github.com/PackkitJS
Scaffold and upgrade modern projects (JS/TS, Python) as a native tool for AI agents.
Packkit
github.com/PackkitLabs
Scaffold, compose, and upgrade modern multi-language projects as a native tool for AI agents.