MCP directory

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

npmDockerMCP Bundle

Run it locally

Install the package and point your AI client at it.

npm

npx -y @pasympa/[email protected]

Environment variables

  • DISCORD_TOKENrequiredsecret

    Discord bot token

  • DISCORD_MCP_TOOLSETS

    Comma-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_ONLY

    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.

  • DISCORD_ALLOWED_GUILDS

    Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.

  • DISCORD_MESSAGE_CONTENT

    Set to false to stop requesting the Message Content privileged intent at connect time.

  • DISCORD_GUILD_MEMBERS

    Set to false to stop requesting the Server Members privileged intent at connect time.

  • DISCORD_MCP_TRANSPORT

    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.

  • DISCORD_MCP_HTTP_TOKENsecret

    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_HTTP_HOST

    Address 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_PORT

    Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.

  • DISCORD_MCP_HTTP_ALLOWED_HOSTS

    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.

Docker

docker run -i --rm docker.io/pasympa/discord-mcp:2.4.0

Environment variables

  • DISCORD_TOKENrequiredsecret

    Discord bot token

  • DISCORD_MCP_TOOLSETS

    Comma-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_ONLY

    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.

  • DISCORD_ALLOWED_GUILDS

    Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.

  • DISCORD_MESSAGE_CONTENT

    Set to false to stop requesting the Message Content privileged intent at connect time.

  • DISCORD_GUILD_MEMBERS

    Set to false to stop requesting the Server Members privileged intent at connect time.

  • DISCORD_MCP_TRANSPORT

    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.

  • DISCORD_MCP_HTTP_TOKENsecret

    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_HTTP_HOST

    Address 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_PORT

    Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http.

  • DISCORD_MCP_HTTP_ALLOWED_HOSTS

    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.

MCP Bundle

https://github.com/PaSympa/discord-mcp/releases/download/v2.4.0/discord-mcp.mcpb

More MCP servers