Skip to main content
Glama

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 /mcp for remote clients

  • Built-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.ps1
  1. Copy .env.example.env and set DISCORD_TOKEN (bot setup)

  2. 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 #general in the first server.

Moderation assist

Show recent audit log entries for server 123456789 and 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 /mcp)

10756

http://127.0.0.1:10756

Web dashboard

10757

http://127.0.0.1:10757


Documentation

Doc

Contents

INSTALL.md

All install methods, prerequisites, verify steps

docs/CONFIGURATION.md

Bot token, env vars, sampling, rate limits

docs/TOOLS.md

MCP tools, operations, prompts, skills

docs/WEBAPP.md

Dashboard pages and REST API overview

docs/CURSOR-MCP.md

Cursor / Claude Desktop MCP wiring

docs/TECHNICAL.md

Architecture, transports, Discord 429 behavior

docs/PLATFORMS.md

Discord vs Slack, Reddit, Telegram, Teams

docs/DEVELOPMENT.md

Local dev, lint, test, CI

docs/TROUBLESHOOTING.md

Common errors and fixes

CHANGELOG.md

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

DISCORD_RATE_LIMIT_MESSAGES_PER_MINUTE

Messages per channel per minute

3

DISCORD_RATE_LIMIT_MESSAGES_PER_CHANNEL_PER_MINUTE

Min interval between messages

5s

DISCORD_MIN_MESSAGE_INTERVAL_SECONDS

Channels created per minute

5

DISCORD_RATE_LIMIT_CHANNELS_PER_MINUTE

Invites created per minute

5

DISCORD_RATE_LIMIT_INVITES_PER_MINUTE

Max message length

2000

DISCORD_MAX_MESSAGE_LENGTH

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

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

Maintenance

Maintainers
Response time
Release cycle
1Releases (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

  • F
    license
    -
    quality
    D
    maintenance
    Enables 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.
  • A
    license
    -
    quality
    B
    maintenance
    Enables 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.
    8
    Apache 2.0
  • 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.
    13
    1
    MIT

View all related MCP servers

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.

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/sandraschi/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server