Skip to main content

Discord MCP

io.github.qungtai/discord-mcp

v0.2.0Updated Nov 5, 2026stdio · npm

A community MCP server for the Discord REST API with traceable coverage

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=core,messages,reactions,threads -e DISCORD_MCP_READ_ONLY=false -e DISCORD_MCP_APPROVAL=elicitation -e DISCORD_MCP_ALLOW_DMS=false -e DISCORD_MCP_MAX_DOWNLOAD_BYTES=104857600 -e DISCORD_MCP_MAX_UPLOAD_BYTES=20971520 -e DISCORD_MCP_REQUEST_TIMEOUT_MS=15000 -e DISCORD_MCP_RATE_LIMIT_WAIT_MS=5000 -- npx -y @qungtai/[email protected]

Configuration

12 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_ALLOWED_GUILDS
    Env var· optional
    Comma-separated list of allowed guild IDs. When set, operations outside these guilds are refused.
  • DISCORD_MCP_TOOLSETS
    Env var· optional
    Comma-separated list of enabled toolsets. Available: core, messages, reactions, threads, channels, webhooks, guild, members, roles, moderation, events, invites.Default: core,messages,reactions,threads
  • DISCORD_MCP_READ_ONLY
    Env var· optional
    Blocks all mutating actions and allows read-only tools only (true or false). Any other value stops startup.Default: false
  • DISCORD_MCP_APPROVAL
    Env var· optional
    Confirmation mode for destructive operations (elicitation or none). Any other value stops startup.Default: elicitation
  • DISCORD_MCP_ALLOW_DMS
    Env var· optional
    Permits direct messages and user-scoped operations alongside an active guild allowlist (true or false). Any other value stops startup.Default: false
Show 6 more
  • DISCORD_MCP_FILE_ROOTS
    Env var· optional
    Optional comma-separated list of absolute directory paths accessible for uploads. When unset, empty, or parsing to no entries, file access is open by default for any absolute path, except hidden files and directories.
  • DISCORD_MCP_DOWNLOAD_DIR
    Env var· optional
    Absolute directory path where attachment downloads are stored. Defaults to ~/Downloads/discord-mcp and is created recursively on first download.
  • DISCORD_MCP_MAX_DOWNLOAD_BYTES
    Env var· optional
    Maximum download size in bytes for discord_download_attachment (defaults to 100 MiB).Default: 104857600
  • DISCORD_MCP_MAX_UPLOAD_BYTES
    Env var· optional
    Maximum upload size in bytes (defaults to 20 MiB).Default: 20971520
  • DISCORD_MCP_REQUEST_TIMEOUT_MS
    Env var· optional
    HTTP request timeout in milliseconds for Discord REST API requests.Default: 15000
  • DISCORD_MCP_RATE_LIMIT_WAIT_MS
    Env var· optional
    Maximum wait duration in milliseconds when encountering a Discord rate limit before aborting.Default: 5000

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