Discord MCP
Provides comprehensive tools for interacting with Discord, including managing guilds, channels, and members, sending and fetching messages, and performing RAG (Retrieval-Augmented Generation) ingest and queries on server content.
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 MCPsummarize the recent discussions in the general channel"
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
Connect your Discord bot to MCP clients — list servers, send messages, moderate members, search message history with RAG, and run agentic workflows from Cursor or Claude Desktop.
v0.3.0 · 43 operations · FastMCP 3.2 · Comms lane · Releases
Contents
Related MCP server: Discord Notifications MCP Server
Features
43 Discord operations in one portmanteau tool — messaging, moderation, roles, webhooks, audit log, channel management (create/update/move, pins, threads), RAG
Fleet web dashboard — servers catalog with global selection, channel tree, decoded audit log, servers, channels, messages, agentic chat, LanceDB search (ports 10756 / 10757)
Agentic workflow — describe a goal; server uses sampling + tools (SEP-1577); model auto-resolves to an installed Ollama model
Dual transport — stdio for IDE hosts, streamable HTTP at
/mcpfor remote clientsBuilt-in safety — anti-spam rate limits, Discord 429 auto-retry, bind localhost only
Bundled skills & prompts — moderation playbook, RAG workflow, ops guides
Quick start
git clone https://github.com/sandraschi/discord-mcp
cd discord-mcp
.\start.ps1Copy
.env.example→.envand setDISCORD_TOKEN(bot setup)Open dashboard http://127.0.0.1:10757 · API http://127.0.0.1:10756
Other install paths (just, Cursor, Claude Desktop, no-git): INSTALL.md
What you can do
List servers and post a message
List my Discord servers, then send "Fleet check-in OK" to channel
#generalin the first server.
Moderation assist
Show recent audit log entries for server
123456789and summarize ban/kick events from the last 24 hours.
Search ingested history
Ingest the last 50 messages from
#dev, then answer: what did we decide about the CI workflow?
Ports
Service | Port | URL |
Backend (REST + MCP | 10756 | |
Web dashboard | 10757 |
Documentation
Doc | Contents |
All install methods, prerequisites, verify steps | |
Bot token, env vars, sampling, rate limits | |
MCP tools, operations, prompts, skills | |
Dashboard pages and REST API overview | |
Cursor / Claude Desktop MCP wiring | |
Architecture, transports, Discord 429 behavior | |
Discord vs Slack, Reddit, Telegram, Teams | |
Local dev, lint, test, CI | |
Common errors and fixes | |
Release notes |
Fleet central mirror: mcp-central-docs/projects/discord-mcp
Requirements
Windows (primary; fleet dev target) or macOS/Linux with Python 3.12+
uv for Python deps · Node 20+ for the webapp
Discord bot token — free at Discord Developer Portal
Optional: Ollama for local agentic sampling when the MCP host has no LLM
Server limit: Unverified bots can join 10 servers max. To raise the cap, verify your bot in Developer Portal → your application → Settings → Bot → Verification (requires description, screenshots, privacy policy). Once verified, the bot can join up to 100 servers.
How server owners add the bot: Send them the invite URL. They open it, select their server, choose which permissions to grant (or keep the defaults from the URL), and Authorise. The bot appears in their member list with a BOT tag.
What the bot can do depends on the permissions each server owner granted. The invite URL above requests Administrator (
permissions=8), which gives full access. But the server owner can reduce permissions during authorisation. With full Admin the bot can read/search/post messages, moderate, manage channels/roles/webhooks, and view audit logs. With limited permissions it can only do what was allowed. The permissions are per-server, so the bot may be admin in one server and read-only in another.
AI & LLM Policy on Discord
Discord allows bots to use LLMs for moderation, search, summaries, and community tools. Using discord-mcp (reading accessible messages, RAG search, LLM-generated responses in your own servers) is within Discord's permitted use.
Allowed:
Bots that use LLMs to process, summarize, search, or respond to messages
Auto-moderation, content review, and audit-log analysis via LLMs
RAG (vector search) over your own channel history
Agentic workflows that call tools and generate replies
Not allowed (can get your bot suspended):
Scraping user messages for external AI training data — Discord prohibits crawling for model training
Impersonating users with AI-generated content mimicking real people
Spamming with LLM-generated flood messages (our rate limits prevent this)
Selling access to Discord data through AI services
Bottom line: LLM as a tool to serve your community = fine. Discord as a free training data source = not fine. discord-mcp is designed for the former — all operations are scoped to channels the bot can see, with rate limits that prevent abuse.
Rate Limits & Anti-Spam
The server enforces two layers of rate limiting to prevent abuse and Discord API bans.
Server-Side Anti-Spam (configurable)
Limit | Default | Env Var |
Messages per minute (global) | 10 |
|
Messages per channel per minute | 3 |
|
Min interval between messages | 5s |
|
Channels created per minute | 5 |
|
Invites created per minute | 5 |
|
Max message length | 2000 |
|
These limits are checked before the request reaches Discord. If you hit one, the API returns a 429 with a message telling you which limit and how to override it.
Discord API Rate Limits (automatic retry)
Discord itself enforces per-route rate limits (HTTP 429 with retry_after). The server automatically retries up to 5 times with exponential backoff, respecting Discord's Retry-After header. If all retries are exhausted, a structured error is returned.
Why both?
The server-side limits prevent your bot from getting suspended by Discord's abuse detection. They're conservative by default — tune them up for private servers, or tighten them for public bots.
Repository: github.com/sandraschi/discord-mcp
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
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Discord servers through a bot, supporting channel management, messaging, forum operations, reactions, and webhooks.22905MIT
- Flicense-qualityDmaintenanceEnables AI agents to interact with Discord by sending notifications, creating channels, and managing interactive questions with support for two-way responses. It allows for streamlined communication through channel keys and supports various question types like multiple-choice and extended-answer modals.
- Alicense-qualityBmaintenanceEnables AI clients to manage Discord servers through natural language, offering tools for guilds, channels, messages, roles, members, webhooks, invites, and automations. Includes a conversational agent that responds to @mentions in Discord.8Apache 2.0
- 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.131MIT
Related MCP Connectors
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
SaaS intelligence for AI agents. 5 unified tools cover 1,000+ services with 91-96% token savings.
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/sandraschi/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server