# DiscordMCP [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Rastrian/DiscordMCP  
**GitHub Stars:** 11  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/discordmcp

## Description
A multi-server Discord control plane that exposes Discord operations as MCP tools, resources, and prompts for AI clients, with a built-in conversational AI agent.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Rastrian/DiscordMCP), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Configure:

```sh
cp .env.example .env
```

2. Start the server:

```sh
docker compose up --build
```

3. Start the server:

```sh
make up         # docker compose up --build (dev: source mounted, auto-reload)
```

4. Start the server:

```sh
docker compose up
```

5. Start the server:

```sh
docker compose -f docker-compose.yml up --build
```

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/discordmcp/readme_

