Discord MCP
The Discord MCP server exposes Discord bot actions as tools, allowing LLM clients to interact with and manage Discord servers programmatically.
Guild Management
List all guilds the bot is in and fetch detailed guild information.
Channel Management
Create, edit, delete, and list channels within a guild.
Messaging
Send messages (with optional rich embeds), fetch recent messages, edit existing messages, add emoji reactions, and create threads from messages.
Role Management
List, create, edit, and delete roles; assign or remove roles from members.
Member Management
List and fetch member info, edit member properties (nickname, mute/deafen state).
Moderation
Kick, ban, or temporarily timeout members (up to 28 days).
Webhooks
Create, list, execute (with optional embeds and custom username), and delete webhooks.
Invites
Generate invite links for channels and list all active invites for a guild.
Provides tools for interacting with Discord's API, enabling AI agents to manage servers, channels, messages, roles, members, and more.
Discord MCP

An MCP (Model Context Protocol) server that exposes Discord bot actions as tools for LLM clients (e.g. Claude Desktop, Claude Code).
Requirements
Python 3.10+
uvfor dependency management and running the serverA Discord bot application with a bot token (Discord Developer Portal)
Related MCP server: mcp-cli-catalog
Installation
git clone https://github.com/EncryptMan/discord-mcp discord-mcp
cd discord-mcp
uv syncConfiguration
The server reads its Discord bot token from the DISCORD_BOT_TOKEN environment variable.
Add the server to your MCP client config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"discord": {
"command": "uv",
"args": [
"run",
"--project",
"/absolute/path/to/discord-mcp",
"python",
"/absolute/path/to/discord-mcp/main.py"
],
"env": {
"DISCORD_BOT_TOKEN": "your-bot-token-here"
}
}
}
}Restart your MCP client after editing the config so it picks up the new server.
Bot permissions
Make sure the bot is invited to your server with at least the following permissions/intents enabled in the Developer Portal, depending on which tools you use:
botscope + relevant OAuth2 permissions (Send Messages, Manage Roles, Manage Channels, Kick/Ban Members, etc.)Privileged Gateway Intents:
SERVER MEMBERS INTENT(for member lookups/roles) andMESSAGE CONTENT INTENT(for reading message content)
Tools
Update this list to match what
main.pyactually implements.
Tool | Description |
| List guilds (servers) the bot is in |
| Fetch guild (server) information |
| List channels in a guild |
| Manage channels |
| Send or edit messages |
| List roles in a guild |
| Manage roles |
| Assign/remove roles on a member |
| List or fetch guild member(s) |
| Edit nickname, mute/deafen state |
| Moderation actions |
| Manage and use webhooks |
| React to a message |
| Create a thread from a message |
| Manage invites |
Running standalone
uv run --project /absolute/path/to/discord-mcp python /absolute/path/to/discord-mcp/main.pyThe server communicates over stdio, so it's meant to be launched by an MCP client rather than run interactively.
Security notes
Never commit your
DISCORD_BOT_TOKEN— keep it in your MCP client config or a local.envfile that's gitignored.Scope the bot's server permissions to only what these tools need; avoid granting Administrator unless required.
License
Add a license of your choice (MIT, Apache-2.0, etc.).
Maintenance
Related MCP Servers
- MIT
- Alicense-qualityDmaintenanceAn MCP server that publishes CLI tools on your machine for discoverability by LLMs81MIT
- Alicense-qualityDmaintenanceLets any MCP-compatible AI client interact with Discord — send messages, manage channels, create webhooks, assign roles, and more.9MIT
- Alicense-qualityBmaintenanceA production-ready MCP server that gives an LLM agent standalone-equivalent control over a Mineflayer Minecraft bot — movement, mining, crafting, inventory, combat, containers, chat, and much more — exposed as 110 strongly-typed tools across 23 groups, with full bot lifecycle management and dual (poll + push) event streaming.572MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
An MCP server that integrates with Discord to provide AI-powered features.
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/EncryptMan/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server