Skip to main content
Glama
cappylab

discord-mcp

by cappylab

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-based

  • quadslab (@quadslab.io/discord-mcp) — ~138 tools, MCP Resources support

  • discord-ops (bookedsolidtech/discord-ops) — multi-guild routing, dry-run mode

  • Hubdustry (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 serve

Subcommands

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, or generic

  • --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 existing claude_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 test

Smoke 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.js

Then use the MCP Inspector in another terminal:

npx -y @modelcontextprotocol/inspector node packages/mcp-server/dist/cli.js

Open 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):

License

MIT — see LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    D
    maintenance
    Enables 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 updated
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables 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 updated
    4
  • A
    license
    -
    quality
    D
    maintenance
    Enables 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 updated
    10
    1
    MIT

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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