Discord MCP

Registre officiel IA et agents

Caller-owned Discord operations for AI agents with 222 typed tools and verifiable guild builds.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @discord-mcp/cli
Claude Code
claude mcp add discord-mcp -e 'DISCORD_TOKEN=<your discord_token>' -e 'DISCORD_EXPECTED_BOT_ID=<DISCORD_EXPECTED_BOT_ID>' -e 'ALLOWED_GUILDS=<ALLOWED_GUILDS>' -- npx -y @discord-mcp/cli@0.32.1
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "discord-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@discord-mcp/cli@0.32.1"
            ],
            "env": {
                "DISCORD_TOKEN": "<your discord_token>",
                "DISCORD_EXPECTED_BOT_ID": "<DISCORD_EXPECTED_BOT_ID>",
                "ALLOWED_GUILDS": "<ALLOWED_GUILDS>"
            }
        }
    }
}

Variables d'environnement

  • DISCORD_TOKEN obligatoire secret Discord bot token. The optional Bot prefix is accepted.
  • DISCORD_EXPECTED_BOT_ID Expected Discord bot ID. Startup fails if the token belongs to another bot.
  • ALLOWED_GUILDS Comma-separated Discord guild IDs this deployment may operate against.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Discord MCP

An open-source Model Context Protocol (MCP) server for Discord. Connect Claude, Codex, Cursor, and other MCP-compatible AI clients to your own Discord bot. Manage messages, channels, roles, moderation, and server setup through 222 typed tools.

Watch an AI agent build a gaming community: channels, roles, onboarding, AutoMod, and final verification. Play the 87-second video · Download MP4.

You want to…Discord MCP provides
Run a communityMessages, threads, forums, roles, events, polls, and onboarding
Moderate a serverPermission checks, role audits, bans, and AutoMod
Build a server from a promptA blueprint to preview and approve, resumable execution, and final Discord readback
Extend your botSlash commands, interactions, webhooks, and application emojis
Improve an existing serverPreview bounded edits, inspect member access, preserve IDs, resume, and restore selected configuration changes
Read a conversation with sourcesGather bounded channel/thread history and replies with Discord citations and explicit coverage
Run a background workflowStart a durable sequence, inspect progress, cancel cooperatively, and resume after reviewing checkpoints

For a complete server build, Get a verified result: review the plan, approve it, then inspect Activity Evidence from the final readback.

Requires Node.js 22.12+ and your own Discord bot installed in a server you control. Works on Windows, macOS, and Linux.

npm install -g @discord-mcp/cli

Set the bot token in your terminal:

# macOS / Linux
export DISCORD_TOKEN="Bot YOUR_DISCORD_BOT_TOKEN"
# Windows PowerShell
$env:DISCORD_TOKEN = "Bot YOUR_DISCORD_BOT_TOKEN"

Generate a client configuration and verify the connection (Codex example):

discord-mcp setup --profile devbot --client codex
discord-mcp doctor --profile devbot --online
discord-mcp smoke --profile devbot

setup verifies your bot, selects a server boundary, and saves a non-secret profile. Apply the generated configuration to your AI client; setup does not edit it for you. Launch the client with DISCORD_TOKEN available in its environment. The smoke check above does not change Discord.

See client setup for Claude, Codex, Cursor, VS Code/GitHub Copilot, Windsurf, Cline, Roo Code, Continue, Zed, OpenCode, Devin Local, and other clients, plus desktop-app token setup. New to MCP? Get started with the complete tutorial.

  • Your bot, your permissions. Guild and tool-category allowlists constrain access. Keep bot tokens out of client config files and source control.
  • Preview first. Guided setup defaults to MCP_WRITE_MODE=preview, which blocks all mutations. Direct serve defaults to allowing ordinary writes; MCP_DRY_RUN covers only confirmation-gated destructive tools. See safety controls before enabling writes.
  • Local by default. Run over stdio, or self-host a bearer-protected Streamable HTTP endpoint behind HTTPS. See remote MCP setup.

Next stepGuide
Find a tool or workflowTool reference · Recipes
Configure and operateConfiguration · CLI commands
Build or migrate a serverBlueprint workflow · Migration guides
Improve an existing serverChange plans and member access
Read conversations or run background workCited context · Durable workflows
Build an integrationArchitecture · @discord-mcp/core

Inspect the tool catalog without a bot token

discord-mcp catalog --check
discord-mcp catalog --check --json

Validates the real local MCP catalog with no token, no Discord or other network request, and no Discord write. This is not Activity Evidence and does not verify a live connection. Continue with setup to use your bot. See the catalog contract for JSON output. The Docker image defaults to catalog-only mode; bot operations require serve and your own credentials.

Pre-1.0. Check releases and v1.0 readiness for current stability commitments.

Ask questions in Discussions, share a voluntary outcome report, or follow the external documentation review and submit feedback. Never include a bot token, client configuration, private Discord data, or unredacted logs. Report vulnerabilities privately.

To develop locally, run pnpm install, pnpm build, then pnpm test. See Contributing; use MCP Inspector to inspect tool discovery.

Licensed under Apache-2.0. Earlier releases retain their included licenses. The Acceptable Use Policy governs community participation and support without changing the software license.

Questions fréquentes

Qu'est-ce que Discord MCP ?

Caller-owned Discord operations for AI agents with 222 typed tools and verifiable guild builds.

Comment installer Discord MCP ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add discord-mcp -e 'DISCORD_TOKEN=<your discord_token>' -e 'DISCORD_EXPECTED_BOT_ID=<DISCORD_EXPECTED_BOT_ID>' -e 'ALLOWED_GUILDS=<ALLOWED_GUILDS>' -- npx -y @discord-mcp/cli@0.32.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour Discord MCP ?

Oui. Il attend DISCORD_TOKEN, à renseigner dans sa configuration.

Discord MCP est-il open source ?

Oui. Son code est sur GitHub sous licence Apache-2.0.

Qui maintient Discord MCP ?

Il est publié par cappyeo. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.