# Discord MCP [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/hypark5540/discord-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 217  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/discord-mcp-2

## Description
Safe Discord access for reading guild data and optionally managing bot messages

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `bunx` (confidence: high):

```json
"mcpServers": {
  "discord-mcp": {
    "command": "bunx",
    "args": ["--package","@hypark5540/discord-mcp@0.1.1","discord-mcp"],
    "env": {
      "DISCORD_TOKEN": "",
      "DISCORD_BOT_TOKEN": "",
      "DISCORD_ENABLE_WRITES": "",
      "DISCORD_ENABLE_DELETES": "",
      "DISCORD_ALLOW_UNRESTRICTED_WRITES": "",
      "DISCORD_ALLOWED_GUILD_IDS": "",
      "DISCORD_ALLOWED_CHANNEL_IDS": "",
      "DISCORD_MCP_NODE": ""
    }
  }
}
```

**Requires environment variables:** `DISCORD_TOKEN`, `DISCORD_BOT_TOKEN`, `DISCORD_ENABLE_WRITES`, `DISCORD_ENABLE_DELETES`, `DISCORD_ALLOW_UNRESTRICTED_WRITES`, `DISCORD_ALLOWED_GUILD_IDS`, `DISCORD_ALLOWED_CHANNEL_IDS`, `DISCORD_MCP_NODE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/discord-mcp-2/readme_

