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
| Name | What it is | Required |
|---|---|---|
DISCORD_TOKEN | Discord bot token. The optional Bot prefix is accepted. | Yes |
DISCORD_EXPECTED_BOT_ID | Expected Discord bot ID. Startup fails if the token belongs to another bot. | No |
ALLOWED_GUILDS | Comma-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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
discord-automationLets the agent automate tasks within Discord. It helps manage messages, channels, and other functions. This makes administering online communities easier.discordLets your agent send messages, files and rich updates to Discord channels and users, and manage existing messages through the message tool.configureSets up the Discord channel for your assistant by saving the bot token and checking who can reach it.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.