Discord MCP logo

Discord MCP

Reads Discord guilds, channels, and messages over stdio, with opt-in controls for sending, editing, and deleting bot messages.

Install Discord MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "discord-mcp-2": {
      "command": "bunx",
      "args": [
        "--package",
        "@hypark5540/discord-mcp@0.1.1",
        "discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "YOUR_VALUE_HERE",
        "DISCORD_BOT_TOKEN": "YOUR_VALUE_HERE",
        "DISCORD_ENABLE_WRITES": "YOUR_VALUE_HERE",
        "DISCORD_ENABLE_DELETES": "YOUR_VALUE_HERE",
        "DISCORD_ALLOW_UNRESTRICTED_WRITES": "YOUR_VALUE_HERE",
        "DISCORD_ALLOWED_GUILD_IDS": "YOUR_VALUE_HERE",
        "DISCORD_ALLOWED_CHANNEL_IDS": "YOUR_VALUE_HERE",
        "DISCORD_MCP_NODE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

bunx --package @hypark5540/discord-mcp@0.1.1 discord-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Discord MCP MCP server connects AI clients to Discord through the REST API using a local stdio process. It exposes read-only tools for bot, guild, channel, and message data by default, with server and channel allowlists. Optional write settings add message sending and editing, while deletion requires a separate flag and confirmation. Use it when an agent needs controlled access to Discord without a Gateway connection.

Use cases

  • Inspect Discord servers and channels
  • Read recent channel messages
  • Send approved bot messages
  • Edit messages created by the bot
  • Delete bot messages with confirmation

Key features

  • Discord REST API v10 access
  • Local stdio MCP transport
  • Guild and channel allowlists
  • Read-only defaults
  • Opt-in message writes and deletes
  • MCP resources for Discord data

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · @hypark5540/discord-mcp@0.1.1 (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads217Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Discord MCP works

What Discord MCP does

The Discord MCP MCP server gives an MCP-compatible client access to Discord bot data through Discord REST API v10. It can inspect the bot account, list the guilds where the bot is present, retrieve guild and channel metadata, and read up to 100 messages from a channel or retrieve one message by ID.

Read operations are enabled by default. Sending and editing messages are separate opt-in capabilities, and deletion is gated independently. The server is designed to limit unintended changes: it blocks mention notifications, allows editing only for messages created by the configured bot, and requires an explicit confirmation value when deleting.

The server also publishes MCP resources for the bot, guilds, guild channels, channel metadata, and individual messages. These resources provide fixed URI paths for clients that use MCP resource reads in addition to tool calls.

How the Discord MCP MCP server works

The process uses local stdio transport and communicates with Discord through REST API v10; it does not establish a Discord Gateway connection. An MCP client starts the process and passes configuration through its environment. Server output uses the MCP framing channel, while status logging goes to stderr.

Access can be narrowed with guild and channel allowlists. Discord’s own bot permissions still apply, including channel-level permission overwrites. Reading normal channel message content requires the Message Content Intent in the Discord Developer Portal.

The available read tools include discord_get_bot, discord_list_guilds, discord_get_guild, discord_list_channels, discord_get_channel, discord_get_messages, and discord_get_message. With writes enabled, discord_send_message and discord_edit_own_message become available. Enabling deletes adds discord_delete_own_message.

Setup and configuration

Create a Discord application, create its bot, and store the bot token as a secret rather than putting it in source code or a repository. Invite the bot with the bot scope and grant only the permissions needed for the intended operations. Reading generally needs View Channels and Read Message History; sending needs Send Messages, and thread replies may need Send Messages in Threads.

The documented runtime options include npm, pnpm, Yarn, Bun’s package runner, PyPI launchers, Docker, a Claude Desktop MCPB bundle, and the MCP Registry. The recommended Node.js version is 22 or newer. The Python launchers require Python 3.9 or newer as well as Node.js 22 or newer. Pin a release version instead of using an unversioned latest package for reproducible client configuration.

At minimum, set DISCORD_TOKEN. DISCORD_ENABLE_WRITES defaults to disabled, as does DISCORD_ENABLE_DELETES; unrestricted writes are separately controlled by DISCORD_ALLOW_UNRESTRICTED_WRITES. Guild and channel allowlists can be supplied through their corresponding environment variables. MCP client environment settings take precedence over .env values.

Limitations and notes

The Discord MCP MCP server is local and stdio-based, so it is not a hosted remote MCP endpoint. ChatGPT web cannot use local stdio MCP directly and requires a separate hosted remote server. Docker deployments should preserve stdio with -i and should not use -t.

The Python package does not include Node.js. If its normal Node executable cannot be found, configure DISCORD_MCP_NODE with the executable path. Global installation can conflict with unrelated packages that also provide a discord-mcp command; isolated runners or the package’s unique launcher are safer choices.

The server does not require Administrator, Manage Messages, or Mention Everyone permissions. Discord channel-specific overwrites can still prevent a channel from appearing or being accessed, even when the bot has broader server permissions. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Discord MCP

Discord MCP is an MCP server that connects AI clients to Discord through the REST API. Its main tools read bot, guild, channel, and message data; optional tools send or edit bot messages, and a separately enabled tool deletes them with confirmation. It runs locally over stdio without a Gateway connection.

Install it with a pinned npm, PyPI, Docker, MCPB, or registry release. For npm, run `npx -y @hypark5540/discord-mcp@0.1.1` with Node.js 22 or newer; `uvx` and `pipx` are also documented, while Docker requires an interactive stdio process.

Set `DISCORD_TOKEN` in the MCP client environment or another supported secret store. Keep `DISCORD_ENABLE_WRITES` and `DISCORD_ENABLE_DELETES` disabled unless needed, and optionally set guild and channel allowlists. MCP client environment values override `.env` settings.

Yes, Discord MCP works with Cursor through a stdio configuration. The documented Cursor setup uses a pinned npm package and references `${env:DISCORD_TOKEN}` rather than embedding the token in the installation link. Configure the token in the environment available when Cursor starts.

No, deletion is limited to messages written by the configured bot. You must also enable `DISCORD_ENABLE_DELETES=true` and pass `confirm: true` to the delete call. Message deletion is not available under the default read-only configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDiscord MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/discord-mcp-2?style=directory)](https://allmcps.com/mcp/discord-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/discord-mcp-2"><img src="https://allmcps.com/api/badge/discord-mcp-2?style=directory" alt="Discord MCP on AllMCPs" /></a>