Discord MCP logo

Discord MCP

by spranab

Manage Discord servers through one hierarchical MCP tool covering messages, moderation, channels, members, and more.

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": {
    "spranab-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@spranab/discord-mcp"
      ],
      "env": {
        "BOT_TOKEN": "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 @spranab/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

spranab/discord-mcp connects an AI assistant to Discord through a bot and exposes more than 30 server-management actions through one `discord` tool. Its three-stage interface lets a client discover categories, inspect available actions and parameters, then execute a request without loading every action schema at once. Operations cover messages, channels, roles, members, moderation, threads, webhooks, invites, emojis, servers, and audit logs. Reach for it when an agent needs to inspect or administer a Discord server using the Discord API.

Use cases

  • Moderate spam by deleting messages and timing out members
  • Manage Discord channels, roles, threads, and webhooks
  • Search, send, edit, pin, and react to messages
  • Review members, bans, invites, and audit events

Key features

  • Single hierarchical `discord` MCP tool
  • 30+ actions across 11 Discord categories
  • Message search, moderation, and bulk deletion
  • Channel, role, member, thread, and webhook management
  • Invite, emoji, ban, and audit log operations
  • Three-level category and action discovery

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.

7/7 checks healthy over the last 26d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

npm downloads55Package downloads in the last 30 days.
Last commit8d 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 spranab/discord-mcp does

spranab/discord-mcp gives an MCP-compatible AI client access to Discord through a configured bot. Rather than publishing a separate MCP tool for every operation, it groups the API surface behind a single discord tool. The server provides more than 30 actions across 11 categories:

  • Server discovery and details
  • Channel creation, editing, deletion, and listing
  • Message sending, reading, editing, deletion, bulk deletion, pinning, reactions, and search
  • Role creation, editing, deletion, listing, and assignment
  • Member lookup, listing, and nickname changes
  • Kicks, bans, unbans, timeouts, and ban listing
  • Thread creation
  • Webhook listing and creation
  • Invite creation and listing
  • Custom emoji listing
  • Audit log access

This is suited to workflows such as finding a channel or member, cleaning up messages, applying moderation, and recording an action for other members.

How it works

The tool uses hierarchical discovery. Calling discord() returns the available categories. Supplying a category shows its actions and expected parameters. Supplying the category, action, and a params object performs the requested Discord operation.

For example, an agent can first inspect the messages category, then call the bulk_delete action with a channel ID and message count. IDs can be obtained through the server's channel and member listing actions. This layout limits the amount of tool schema an MCP client needs to expose before the agent chooses an operation.

The implementation is written in TypeScript and uses discord.js v14, the MCP TypeScript SDK, and Zod for validation.

Setup and configuration

Create a Discord application in the Developer Portal, create its bot, and copy the bot token. The bot setup requires all three privileged gateway intents: Presence, Server Members, and Message Content. The bot is installed to a guild with the bot scope and Administrator permissions.

For an MCP client using an npx launch, configure the server with the package @spranab/discord-mcp and provide the token as bot_token:

config.json
{
  "mcpServers": {
    "discord": {
      "command": "npx",
      "args": ["-y", "@spranab/discord-mcp"],
      "env": { "bot_token": "YOUR_BOT_TOKEN" }
    }
  }
}

Alternatively, install the package globally with npm and run discord-mcp with bot_token set in the environment.

Tools and capabilities

All operations are dispatched through the discord tool. Its categories support:

  • Finding servers, channels, and members needed for later actions
  • Reading, searching, sending, editing, deleting, pinning, and reacting to messages
  • Removing multiple messages in one request
  • Managing channels and roles, including assigning roles
  • Applying or reversing moderation actions
  • Creating threads, webhooks, and invites
  • Reviewing bans and the audit log
  • Listing custom emojis

The same JSON MCP configuration shape is documented for Claude Code, Cursor, Windsurf, Claude Desktop, and Cline.

Limitations and notes

The bot must be installed in the target Discord server and have permissions sufficient for the requested operation. Privileged gateway intents must be enabled during bot setup. Administrative actions such as bans, timeouts, role changes, and message removal depend on Discord's permission rules and the bot's position in the server hierarchy.

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

spranab/discord-mcp is an MCP server that connects AI assistants to Discord through a bot and exposes one hierarchical `discord` tool. It supports server, channel, message, role, member, moderation, thread, webhook, invite, emoji, and audit operations, with more than 30 actions discovered by category and action.

Install it through an MCP client with `npx -y @spranab/discord-mcp`, or install `@spranab/discord-mcp` globally with npm. Configure the server command and provide the Discord bot token through the `bot_token` environment variable.

Yes, spranab/discord-mcp works with Cursor using the documented JSON MCP configuration. Set the command to `npx`, pass `-y` and `@spranab/discord-mcp` as arguments, and add the Discord bot token under `env`.

The documented bot installation uses the `bot` scope with Administrator permissions and requires the Presence, Server Members, and Message Content privileged intents. Discord permissions and server hierarchy still govern individual actions such as moderation and role changes.

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/spranab-discord-mcp?style=directory)](https://allmcps.com/mcp/spranab-discord-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/spranab-discord-mcp"><img src="https://allmcps.com/api/badge/spranab-discord-mcp?style=directory" alt="Discord MCP on AllMCPs" /></a>