discord-mcp
Provides tools for interacting with the Discord REST API, enabling AI agents to send messages and manage Discord resources.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@discord-mcpSend a message 'Hello world' to channel #general"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
discord-mcp
Production-grade Model Context Protocol server exposing the full Discord REST API to AI agents.
Status: v0.13.0 · 192 tools · OTel-instrumented · Cockatiel-resilient · Audit-logged
Stability: pre-1.0, polish complete. See v1.0.0 readiness for the path to a stable major.
Documentation
discord-mcp docs — quickstart, tool reference (auto-generated for all 192 tools), recipes, architecture deep-dives, operations guides.
See design spec for architecture.
Related MCP server: Discord MCP Server
Migrating from another Discord MCP
discord-mcp ships migration adapters for the most-established community Discord MCP servers:
PaSympa (
@pasympa/discord-mcp) — ~91 tools, TypeScript, Zod-basedquadslab (
@quadslab.io/discord-mcp) — ~138 tools, MCP Resources supportdiscord-ops (
bookedsolidtech/discord-ops) — multi-guild routing, dry-run modeHubdustry (reference adapter, non-Discord)
Run discord-mcp migrate --list to see all adapters, or discord-mcp migrate --from <id> --source <path> to get a tool-by-tool mapping report. Full guides at cappylab.github.io/discord-mcp/migrate.
Quick start
# 1. Install
npm install -g @discord-mcp/cli # or use npx
# 2. Print a config snippet for your MCP client, then merge it into that
# client's config file yourself (init writes nothing without --output)
discord-mcp init --client claude-desktop --token "YOUR.BOT.TOKEN"
# 3. Verify configuration (doctor reads process.env, not the client config)
export DISCORD_TOKEN="YOUR.BOT.TOKEN"
discord-mcp doctor --online
# 4. Run (or let your MCP client launch it)
discord-mcp serveSubcommands
discord-mcp serve (default)
Start the stdio MCP server. This is the default action when no subcommand is given.
Flags:
--gateway— Enable Discord Gateway resource subscriptions (lazy-imports discord.js)
discord-mcp doctor
Diagnose configuration and connectivity. Exits 0 (healthy), 1 (warnings), or 2 (errors).
Flags:
--online— Run network checks (Discord token verify, OTel reachability)--json— Output as JSON for CI consumption
Offline checks: node-version, token-format, env-vars, audit-sink, client-caps
Online checks (with --online): token-online, otel-reachable
discord-mcp init
Bootstrap configuration + generate MCP client config snippet.
Flags:
--token <token>— Discord bot token (or${env:DISCORD_TOKEN}placeholder)--client <id>— Client:claude-desktop,claude-code,cursor, orgeneric--output <path>— Write snippet to file (default: stdout). The snippet is a complete top-level JSON document and truncates the target, so never point this at an existingclaude_desktop_config.json— it would drop your other MCP servers. Merge by hand.--force— Overwrite existing output file--gateway— Enable Discord Gateway in generated config--json— JSON output for CI
When stdin is a TTY and flags are missing, init runs an interactive wizard.
discord-mcp migrate
Migrate from another Discord/MCP setup. Exits 0 (all mapped), 1 (some unmapped), 2 (errors).
Flags:
--list— List every registered adapter. Informational — always exits 0, so it is the form to use in CI.--from <adapter>— Source adapter id--source <path>— Path to source repo (default: cwd)--json— JSON output
A bare discord-mcp migrate also prints the adapter list, but it is the legacy "missing --from" error path and exits 2. Use --list for discovery.
Available adapters: hubdustry-go-mcp (reference), pasympa, quadslab, discord-ops. Run discord-mcp migrate --list for the live registry.
Tool surface
192 tools across:
messages (12)
channels (14)
threads (6)
members (14)
roles (5)
guild (16)
audit_log (1)
webhooks (13)
events (6)
commands (15)
users (6)
components-v2 (8)
intelligence (5)
meta (1)
reactions (5)
emojis (5)
app_emojis (5)
stickers (7)
invites (4)
automod (5)
interactions (8)
application (5)
stage_instances (4)
soundboard (7)
polls (2)
voice (3)
onboarding (2)
monetization (8)
Local development
Prerequisites: Node ≥20.11, pnpm ≥9.15.
pnpm install
pnpm build
pnpm testSmoke test (real Discord)
Set DISCORD_TOKEN to a real bot token from https://discord.com/developers/applications:
export DISCORD_TOKEN="Bot YOUR_TOKEN_HERE"
node packages/mcp-server/dist/cli.jsThen use the MCP Inspector in another terminal:
npx -y @modelcontextprotocol/inspector node packages/mcp-server/dist/cli.jsOpen the Inspector UI at http://localhost:5173, click tools/list, and you should see all 192 tools.
More documentation
Full docs published at https://cappylab.github.io/discord-mcp/:
Quickstart — install, configure, first tool call
Tool reference — auto-generated for all 192 tools
Recipes — common agent flows
Architecture — pipeline, gateway, error handling, components-v2
Operations — telemetry, resilience, audit, client capability matrix
Reference — CLI, env vars, public API, changelog
In-repo legacy docs (preserved for compat):
Operations: telemetry — OTel setup
Operations: resilience — Tuning retry/timeout/circuit
Operations: audit — Audit sinks + compliance
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with Discord through the Model Context Protocol, providing access to all Discord features like channels, messages, threads, reactions, and roles. Supports secure Discord bot operations with rate limiting, caching, and comprehensive API coverage for OpenAI, LangChain, and other MCP clients.Last updatedMIT
- FlicenseAqualityDmaintenanceEnables direct interaction with Discord servers to send messages, read channel history, and post rich embeds through natural conversation. It provides tools for listing channels and managing communication within Discord guilds using the Model Context Protocol.Last updated4
- Alicense-qualityDmaintenanceEnables AI agents to interact with Discord through the REST API and real-time events, supporting message management, user info, channel operations, and more with security controls.Last updated101MIT
- Alicense-qualityDmaintenanceEnables LLMs to send and read messages in Discord channels, manage servers, channels, and roles via Discord's API.Last updated292MIT
Related MCP Connectors
Connect AI agents to Replynodes over the Model Context Protocol.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Voice and chat for AI agents — Discord, Teams, Meet, Slack, Zoom, Telegram, WhatsApp, NC Talk, SIP
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cappylab/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server