Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyWork and productivity

Discord MCP

Lets your AI agent run your own Discord bot: messages, channels, roles, moderation and server setup.

189 stars on GitHubby cappyeoLicense Apache-2.0Updated 21 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add discord -e DISCORD_TOKEN="<your value>" -- npx -y @discord-mcp/cli

What to fill in

NameWhat it isRequired
DISCORD_TOKENDiscord bot token. The optional Bot prefix is accepted.Yes
DISCORD_EXPECTED_BOT_IDExpected Discord bot ID. Startup fails if the token belongs to another bot.No
ALLOWED_GUILDSComma-separated Discord guild IDs this deployment may operate against.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Build a gaming community server with channels, roles and AutoMod, and show me the plan first.
Audit which roles can ban members.

What it is

Discord MCP connects AI clients to a Discord bot that you own. It has over 200 typed tools for messages, threads, roles, events, moderation and onboarding. It can also build a server from an approved blueprint and check the result.

What it can do

  • Messages, threads, forums and polls
  • Roles, channels and permission checks
  • Moderation: bans, role audits and AutoMod
  • Slash commands, interactions and webhooks
  • Blueprint-based server building with final readback
  • Cited conversation context
  • Durable background workflows

When to use

  • β€ΊWhen you want an agent to set up channels, roles and onboarding for a new community.
  • β€ΊWhen you want to audit roles and permissions on a server.
  • β€ΊWhen you want a summary of a long conversation with Discord links.

What you need

Node.js 22.12+, your own Discord bot installed in a server you control, and its bot token set as DISCORD_TOKEN. Install with npm install -g @discord-mcp/cli.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes, under Apache-2.0.

How many tools does it have?

The registry lists 222 tools; the repository description says 209. The readme says 222.

Is it safe to try?

Guided setup defaults to preview mode, which blocks all changes. Direct serve allows ordinary writes by default, so check the safety controls first.

Do I need my own bot?

Yes. It uses a bot you create and control, with allowlists for servers and tool categories.

Can it run remotely?

Yes. It runs over stdio by default, or as a bearer-protected Streamable HTTP endpoint behind HTTPS.

Can I check the tools without a token?

Yes. discord-mcp catalog --check validates the tool catalog with no token and no network.

If it does not work

  • β€ΊSet DISCORD_TOKEN in the environment where your client starts, in the form Bot YOUR_TOKEN.
  • β€ΊRun discord-mcp doctor --profile devbot --online to check the connection.
  • β€ΊApply the generated config to your AI client yourself; setup does not edit it.

5 new skills a week. 1 minute to read.