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_TOKENEnv var· required· secretDiscord Bot TokenDISCORD_MCP_ALLOWED_GUILDSEnv var· optionalComma-separated list of allowed guild IDs. When set, operations outside these guilds are refused.DISCORD_MCP_TOOLSETSEnv var· optionalComma-separated list of enabled toolsets. Available: core, messages, reactions, threads, channels, webhooks, guild, members, roles, moderation, events, invites.Default:core,messages,reactions,threadsDISCORD_MCP_READ_ONLYEnv var· optionalBlocks all mutating actions and allows read-only tools only (true or false). Any other value stops startup.Default:falseDISCORD_MCP_APPROVALEnv var· optionalConfirmation mode for destructive operations (elicitation or none). Any other value stops startup.Default:elicitationDISCORD_MCP_ALLOW_DMSEnv var· optionalPermits direct messages and user-scoped operations alongside an active guild allowlist (true or false). Any other value stops startup.Default:false
Show 6 moreShow fewer
DISCORD_MCP_FILE_ROOTSEnv var· optionalOptional 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_DIREnv var· optionalAbsolute directory path where attachment downloads are stored. Defaults to ~/Downloads/discord-mcp and is created recursively on first download.DISCORD_MCP_MAX_DOWNLOAD_BYTESEnv var· optionalMaximum download size in bytes for discord_download_attachment (defaults to 100 MiB).Default:104857600DISCORD_MCP_MAX_UPLOAD_BYTESEnv var· optionalMaximum upload size in bytes (defaults to 20 MiB).Default:20971520DISCORD_MCP_REQUEST_TIMEOUT_MSEnv var· optionalHTTP request timeout in milliseconds for Discord REST API requests.Default:15000DISCORD_MCP_RATE_LIMIT_WAIT_MSEnv var· optionalMaximum wait duration in milliseconds when encountering a Discord rate limit before aborting.Default:5000
Links
Listed in the official MCP Registry since Nov 5, 2026. Mirrored daily; last checked Nov 26, 2026.