Discord logo

Discord

Runs Discord server operations through 168 MCP tools for messages, moderation, channels, roles, threads, events, webhooks, and AutoMod.

Install Discord

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-3": {
      "command": "npx",
      "args": [
        "-y",
        "@willuhmjs/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "YOUR_VALUE_HERE",
        "DISCORD_GUILD_ID": "YOUR_VALUE_HERE",
        "ENABLE_MEMBERS_INTENT": "YOUR_VALUE_HERE",
        "MCP_TRANSPORT": "YOUR_VALUE_HERE",
        "HOST": "YOUR_VALUE_HERE",
        "PORT": "YOUR_VALUE_HERE",
        "MCP_SOCKET": "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.

npx -y @willuhmjs/discord-mcp

No response to 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

The Discord MCP server gives LLM agents 168 tools for managing messages, moderation, channels, roles, threads, events, invites, webhooks, and AutoMod. It connects to Discord through a bot token and supports stdio or an HTTP MCP endpoint, with validation for rich message payloads and guarded URL fetching. Reach for it when an agent needs to inspect or change a Discord server, provided the bot has the required permissions and the HTTP endpoint remains private.

Use cases

  • Manage Discord messages with embeds, polls, files, replies, and components
  • Moderate servers and record audit-log reasons
  • Create and update channels, roles, threads, invites, and webhooks
  • Configure AutoMod and persistent role menus
  • Inspect Discord events and server resources through an MCP client

Key features

  • 168 tools for Discord server operations
  • Message support for embeds, polls, files, replies, and Components V2
  • Moderation, AutoMod, roles, channels, threads, events, invites, and webhooks
  • Stdio and HTTP MCP transports
  • Validated message payloads and guarded URL fetching
  • Persistent role menus with interaction logging

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.

12/12 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · @willuhmjs/discord-mcp (npm)

Adoption & maintenance

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

npm downloads281Package downloads in the last 30 days.
Last commit23d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Discord works

What Discord MCP server does

The Discord MCP server exposes Discord administration and communication operations to MCP-compatible clients. Its 168 tools cover messages, moderation, channels, roles, threads, events, invites, webhooks, and AutoMod. Message operations support embeds, Components V2, polls, files, and replies, with validation performed before requests are sent to Discord.

It also supports interactive role menus that persist across restarts and records which users selected them. Tool permissions and parameter definitions are documented in the project’s tool reference. Calls can use string IDs, JSON-string payloads, and an optional reason for Discord’s audit log, depending on the operation.

How it works

The server authenticates to Discord as a bot using DISCORD_TOKEN. DISCORD_GUILD_ID can provide a default server when a tool call does not include a guild ID. The bot must be created in Discord’s developer portal, invited to the target server, and configured with the Message Content privileged intent. Member-list operations additionally require the Server Members intent when enabled through configuration and the portal.

For local MCP clients, stdio mode communicates over standard input and output. HTTP mode serves MCP at POST /mcp, maintains stateful sessions with Mcp-Session-Id, and exposes /health after the bot connects. The default HTTP bind address is 127.0.0.1 and the default port is 8085.

Setup and configuration

Install through npx with Node.js 22 or newer, then add the server to the client’s MCP configuration. The standard setup passes DISCORD_TOKEN and can also pass DISCORD_GUILD_ID. Use --stdio or set MCP_TRANSPORT=stdio for stdio operation. HTTP deployments can set HOST, PORT, or MCP_SOCKET; a Unix socket is available when the endpoint should not listen on a TCP port.

Docker runs the HTTP variant and maps port 8085. VS Code uses a servers configuration key instead of mcpServers. On Windows, a client that cannot locate npx can invoke it through cmd /c. Claude Code supports adding the server with its claude mcp add command.

Limitations and notes

The Discord MCP server’s HTTP endpoint has no authentication. Anyone who can reach it can call the available tools with the bot’s access, so it should stay on loopback or a private network. The Docker image binds to 0.0.0.0, making network isolation especially important. Stdio mode does not expose a network endpoint.

The server does not read the host filesystem. URLs fetched for assets such as emojis, stickers, files, and avatars are restricted to HTTP or HTTPS, checked against private and metadata addresses before requests and after redirects, and subject to size and time limits. Webhook tokens are treated as credentials: creation returns the URL once, while list and get operations do not expose it.

Discord permissions still determine whether individual tools can act. The bot token and required privileged intents must be configured correctly, and the bot must have the relevant permissions in the target server. The project is released under the MIT license.

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

Discord is an MCP server that connects LLM agents to a Discord bot and exposes 168 tools for messages, moderation, channels, roles, threads, events, invites, webhooks, and AutoMod. It supports rich messages, persistent role menus, stdio transport, and an HTTP MCP endpoint.

Install it with `npx -y @willuhmjs/discord-mcp --stdio` in an MCP client configuration. Set `DISCORD_TOKEN`, optionally set `DISCORD_GUILD_ID`, and use Node.js 22 or newer. You can also run the HTTP version with Docker.

Yes, Discord works with Cursor through its MCP configuration. Add the server under Cursor’s `.cursor/mcp.json`, use the stdio command, and provide the Discord bot token and optional default guild ID.

Keep it on loopback or a private network because the HTTP endpoint has no authentication. For stronger local isolation, configure `MCP_SOCKET` with a Unix socket whose permissions restrict access. Stdio mode avoids network exposure, while the Docker image requires internal network isolation.

The bot needs the Discord permissions required by the tools it uses. The project’s tool documentation lists each tool’s permission requirement. Message Content must be enabled as a privileged intent, and member-list tools also require the Server Members intent.

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 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/discord-3?style=directory)](https://allmcps.com/mcp/discord-3)
HTML Embed
<a href="https://allmcps.com/mcp/discord-3"><img src="https://allmcps.com/api/badge/discord-3?style=directory" alt="Discord on AllMCPs" /></a>