Discord MCP logo

Discord MCP

by @el4cteo

Control a Discord bot through MCP tools for messaging, community management, moderation, bulk actions, and live events.

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

Automated check passed— started and listed 35 tools correctly ().

Overview

@el4cteo/discord-mcp exposes a Discord bot through MCP, covering messages, DMs, channels, threads, members, roles, moderation, events, and more. It uses Discord REST APIs for actions and opens a WebSocket gateway only when live-event tools need it. Names such as channel and role names can be used instead of Discord IDs, while bulk inputs and discord_batch support multi-step operations. Reach for it when an AI client needs to inspect or manage a Discord server under configurable safety controls.

Use cases

  • Send announcements across multiple Discord channels
  • Manage members, roles, permissions, and moderation actions
  • Search, edit, react to, and organize Discord messages
  • Run mixed Discord workflows with batched tool calls
  • Monitor recent or incoming Discord events

Key features

  • 38 tools for Discord server and community operations
  • Human-readable names resolved instead of requiring snowflake IDs
  • Array-based bulk operations and cross-tool batching
  • Lazy WebSocket access for live events
  • Configurable safeguards for destructive actions and uploads
  • Automatic long-message splitting and bounded responses

Tools35

What Discord MCP lets your agent do. Expand a tool for its parameters.

Verified live~15.9k tokens of context

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.

9/9 checks healthy over the last 32d

What it can do

From the 35 tools this server returned when we ran it; 35 declare their own safety hints.

Can delete or modify data · 8Handles credentials · 1Makes network requests · 35Read-only tools · 27
Network at startup5 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age32 days
Maintainers1

Observed 2026-10-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

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

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
npm downloads435Package downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed35Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Discord MCP works

What @el4cteo/discord-mcp does

@el4cteo/discord-mcp lets an MCP-compatible AI client operate a Discord bot. Its 38 tools cover server information, channels, threads, forums, messages, direct messages, uploads, forwards, polls, members, roles, moderation, AutoMod, scheduled events, emojis, invites, and live events.

The server accepts human-readable names such as general or @everyone and resolves them to Discord identifiers. It also supports arrays in places where a tool accepts one value, allowing the same operation to target multiple channels, members, or other resources. Use discord_batch when a workflow combines different tools. Each operation reports its own result, so one failure does not stop the remaining work.

How it works

Actions use Discord’s REST API. The live gateway connection is opened lazily for event-related operations and closes after an idle period, rather than remaining connected throughout the server’s lifetime. Name lookups use a TTL cache that is updated by the server’s own changes and incoming gateway events.

The stdio entry point can be launched with npx or from a local build. Discord requests use rate-limit buckets, and batched work can run in parallel according to the configured concurrency. Long messages are split at Discord’s message limit while preserving code blocks. Large responses are trimmed to the configured output limit.

Setup and configuration

Create a Discord application and bot, reset its token, enable Message Content Intent and Server Members Intent, then invite the bot with the bot and applications.commands scopes. The token is passed through DISCORD_TOKEN without a Bot prefix.

Claude Code can register the package directly:

Terminal
claude mcp add discord --env DISCORD_TOKEN=your_token_here -- npx -y @el4cteo/discord-mcp

A local checkout can be installed and built with npm install, then started from dist/index.js. Run discord_whoami after connecting to verify the bot identity.

DISCORD_DEFAULT_GUILD supplies a default server for tools that otherwise require a guild. Safety and runtime behavior can be adjusted with DISCORD_ALLOW_DESTRUCTIVE, DISCORD_ALLOW_MASS_MENTIONS, DISCORD_UPLOAD_DIRS, DISCORD_PRIVILEGED_INTENTS, DISCORD_BATCH_CONCURRENCY, DISCORD_REQUEST_TIMEOUT_MS, DISCORD_MAX_RESPONSE_CHARS, DISCORD_GATEWAY_IDLE_MS, and DISCORD_EVENT_BUFFER.

Tools and capabilities

  • Inspect the bot identity, available guilds, guild details, invites, members, roles, channels, and audit logs.
  • Send, read, search, edit, delete, pin, and react to messages; send direct messages and manage polls.
  • Create and modify channels, threads, forums, permissions, and ordering.
  • Edit members, manage roles, moderate members, review bans, configure AutoMod, and bulk-delete messages.
  • Manage scheduled events, emojis, and invites.
  • Wait for live events or retrieve recent events.
  • Run repeated operations through array arguments or combine different calls with discord_batch.

Limitations and notes

Destructive tools remain hidden unless DISCORD_ALLOW_DESTRUCTIVE=true; mixed operations reject only their destructive portions. Mass mentions require DISCORD_ALLOW_MASS_MENTIONS=true. File uploads are restricted to configured directories, and sensitive files are refused. URL uploads accept public HTTP(S) hosts while blocking private, loopback, and cloud-metadata addresses.

Exact names or IDs are required for bans, kicks, timeouts, purges, and deletes. The bot’s role must be higher than a target role to assign or moderate it. Bulk deletion works only for messages newer than 14 days. Reading message content and listing all members depend on the corresponding Discord privileged intents. The default configuration keeps destructive actions disabled and allows four parallel operations per batch.

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

@el4cteo/discord-mcp is an MCP server that connects an AI client to a Discord bot. Its main tools handle messages, direct messages, channels, threads, members, roles, moderation, events, invites, emojis, and bulk operations, with live-event access through Discord’s gateway.

Install it through an MCP client with `npx -y @el4cteo/discord-mcp`, passing `DISCORD_TOKEN` as an environment variable. For Claude Code, use `claude mcp add discord --env DISCORD_TOKEN=your_token_here -- npx -y @el4cteo/discord-mcp`, then restart or reconnect the client.

Enable Message Content Intent and Server Members Intent in the Discord developer portal, then invite the bot with the `bot` and `applications.commands` scopes. Reading message content and listing all members depend on those privileged intents, and role management also requires the bot’s role to be above the target role.

Set `DISCORD_ALLOW_DESTRUCTIVE=true` before starting the server. This exposes actions such as bans, kicks, timeouts, deletions, and certain administrative permission changes; the default is disabled. Mass `@everyone` and `@here` mentions require the separate `DISCORD_ALLOW_MASS_MENTIONS=true` setting.

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