DiscordMCP logo

DiscordMCP

Manage authorized Discord servers through MCP tools, with guarded writes, audit logging, and an optional mention-driven agent.

Install DiscordMCP

Run the project’s own setup commands, in order.

Setup steps from the project

DiscordMCP installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Configure
    cp .env.example .env
    
  2. 2. Start the server
    docker compose up --build
    
  3. 3. Start the server
    make up         # docker compose up --build (dev: source mounted, auto-reload)
    
  4. 4. Start the server
    docker compose up
    
  5. 5. Start the server
    docker compose -f docker-compose.yml up --build
    

Overview

DiscordMCP exposes authorized Discord bot operations to MCP clients through tools, resources, and prompts. It covers server, channel, message, role, member, moderation, webhook, invite, event, automod, permission, reaction, pin, and audit workflows. A separate Discord Gateway agent can respond to permitted @mentions using conversation history and tool calls. Reach for it when an AI client needs controlled Discord administration rather than access to a personal Discord account.

Use cases

  • List servers and channels available to an authorized bot
  • Summarize recent messages from a Discord channel
  • Create support channels and configure permissions
  • Manage roles, members, invites, and moderation actions
  • Answer permitted channel mentions with a conversational agent

Key features

  • 70 MCP tools across Discord administration domains
  • Dry-run defaults and confirmation for risky writes
  • OAuth2, guild, channel, role, and bot permission checks
  • Audited writes with PII redaction
  • Discord Gateway agent for controlled @mention conversations
  • HTTP or stdio MCP transport

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.

11/11 checks healthy over the last 39d

Adoption & maintenance

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

GitHub stars11Stargazers on the source repository.
Last commit22d agoMost recent push to the default branch.

How DiscordMCP works

What DiscordMCP does

DiscordMCP provides a multi-server control plane for Discord through the Model Context Protocol. Users authenticate their Discord identity with OAuth2, install the platform bot in their servers, and then use an MCP-compatible AI client to request Discord operations. The platform executes those operations through authorized bot accounts and official Discord APIs.

Its MCP surface includes 70 tools organized around guilds, channels, messages, moderation, threads, roles, members, webhooks, invites, automations, audits, reactions, events, automod, permissions, and pins. Examples include listing servers and channels, sending or editing messages, creating channels, changing roles, managing members, creating invites, and inspecting audit events.

The platform also includes a Discord-native conversational agent. When enabled for a channel, the agent can receive an @mention, use stored channel conversation history, call Discord tools, and post a response back to that channel.

How it works

MCP clients connect to the server using either HTTP or stdio, selected through MCP_TRANSPORT. Requests pass through authorization checks before reaching the Discord service layer. The checks include MCP client authentication, workspace membership, guild installation, platform roles, channel policies, bot permissions, and rate limits. Completed operations are audited, with personally identifiable information redacted in audit logging.

State-changing tools default to dry-run mode, and higher-risk actions require explicit confirmation. The Discord integration uses a Gateway WebSocket with automatic reconnect behavior and a REST client that tracks rate limits and retries requests. PostgreSQL stores application data, while Redis supports caching and rate-limit coordination.

For conversational use, administrators control which channels may receive agent interactions with /allow-chat and /disallow-chat. The agent applies per-user cooldowns and limits each tool-use loop to ten iterations.

Setup and configuration

A Docker-based quick start is available:

bash
cp .env.example .env
# Add the Discord and infrastructure settings to .env
docker compose up --build

The service exposes a health endpoint at http://localhost:8000/health. The main configuration values include a Discord bot token, Discord OAuth client credentials, a PostgreSQL connection string, a Redis connection string, an optional guild allowlist, and the MCP transport selection.

For development, the repository provides make install, make dev, make test, make lint, make format, and make typecheck targets. Tests can run without a real Discord token. Docker Compose uses an override file for source mounting and reload behavior; a production-like invocation can use the base Compose file directly.

Tools and capabilities

  • List, inspect, modify, and lock down guilds.
  • Create, edit, delete, and permission channels.
  • Read, send, edit, embed, delete, and bulk-delete messages.
  • Create and manage roles, members, webhooks, invites, threads, reactions, events, and automod rules.
  • Query guild and channel permissions for members and roles.
  • Draft automations and inspect audited activity.
  • Handle Discord @mentions through the optional conversational agent.

Limitations and notes

DiscordMCP is not a self-bot. It does not use user tokens, operate personal Discord accounts, scrape direct messages, or bypass Discord permissions and rate limits. Actions depend on the installed bot's Discord permissions and the platform's policy checks.

The container image is published for linux/amd64; arm64 is not included. Discord API coverage is tracked against a vendored official OpenAPI specification, with a generated coverage report and regression check in the repository.

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 DiscordMCP

DiscordMCP is an MCP server that connects AI clients to authorized Discord bot accounts and exposes tools for guilds, channels, messages, roles, members, webhooks, invites, moderation, reactions, events, automod, permissions, pins, and audits. It also supports a Discord-native conversational agent that responds to permitted @mentions through official Discord APIs.

Install DiscordMCP by copying `.env.example` to `.env`, configuring the Discord and infrastructure settings, and running `docker compose up --build`. The service can then be checked at `http://localhost:8000/health`.

Yes, DiscordMCP works with MCP-compatible clients such as Cursor through its standard HTTP or stdio transport. Set `MCP_TRANSPORT` to the transport used by the client and provide the required Discord, PostgreSQL, and Redis configuration.

No, DiscordMCP operates through authorized Discord bot accounts rather than user tokens. It does not control personal accounts, scrape direct messages, or bypass Discord permissions and rate limits.

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