MCP directory
DM

Discord Mcp

by github.com/qungtai · v0.2.0 · updated Nov 5, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

npm

npx -y @qungtai/[email protected]

Environment variables

  • DISCORD_TOKENrequiredsecret

    Discord Bot Token

  • DISCORD_MCP_ALLOWED_GUILDS

    Comma-separated list of allowed guild IDs. When set, operations outside these guilds are refused.

  • DISCORD_MCP_TOOLSETS

    Comma-separated list of enabled toolsets. Available: core, messages, reactions, threads, channels, webhooks, guild, members, roles, moderation, events, invites.

  • DISCORD_MCP_READ_ONLY

    Blocks all mutating actions and allows read-only tools only (true or false). Any other value stops startup.

  • DISCORD_MCP_APPROVAL

    Confirmation mode for destructive operations (elicitation or none). Any other value stops startup.

  • DISCORD_MCP_ALLOW_DMS

    Permits direct messages and user-scoped operations alongside an active guild allowlist (true or false). Any other value stops startup.

  • DISCORD_MCP_FILE_ROOTS

    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

    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

    Maximum download size in bytes for discord_download_attachment (defaults to 100 MiB).

  • DISCORD_MCP_MAX_UPLOAD_BYTES

    Maximum upload size in bytes (defaults to 20 MiB).

  • DISCORD_MCP_REQUEST_TIMEOUT_MS

    HTTP request timeout in milliseconds for Discord REST API requests.

  • DISCORD_MCP_RATE_LIMIT_WAIT_MS

    Maximum wait duration in milliseconds when encountering a Discord rate limit before aborting.

More MCP servers