Discord MCP Server
Provides tools for managing a Discord server, including creating channels, categories, roles, setting permissions, and assigning roles.
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 MCP ServerCreate a new text channel named 'announcements' under the 'Information' category."
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 Server
Manage a Discord server directly from your AI coding assistant. Create channels, categories, roles, set permissions, assign roles, and more - all through natural language.
virustotal: https://www.virustotal.com/gui/file/56fafed35e2734debed600e585741c53f456148da257065e9ea8c9fcb62c798d
Tools
Tool | Description |
| Create a new category channel |
| Create a text or voice channel under a category |
| Create a new role with color, hoist, mentionable |
| Edit a role's name, color, hoist, or mentionable |
| Delete a role (non-managed, below bot's hierarchy) |
| Assign a role to a member by username |
| Remove a role from a member by username |
| Set channel permissions (allow/deny roles, read-only mode, thread control) |
| Create a channel + restrict it in one call |
| Rename a text or voice channel |
| Delete a category channel |
| Delete a text or voice channel |
| List all channels with their names, types, and categories |
| List all roles with their names, colors, and member counts |
| Create a webhook in a text channel |
| Send a message through an existing webhook |
| Set the slowmode delay (seconds) on a text channel |
Related MCP server: discord-mcp
Setup
1. Create a Discord bot
Click New Application → name it → Create
Go to Bot → Add Bot
Under Privileged Gateway Intents, enable:
Server Members IntentMessage Content Intent
Copy the Token
Go to OAuth2 → URL Generator
Scopes:
botBot Permissions:
Administrator(or manually select: Manage Channels, Manage Roles, Kick Members, Manage Webhooks, Send Messages, Read Messages, View Channels)
Open the generated URL in your browser to invite the bot to your server
2. Configure environment
cp .env.example .envEdit .env and paste your bot token:
DISCORD_TOKEN=your_token_hereOptional: pin the bot to a specific server by name (defaults to Monolith). All tools operate on this guild only:
DISCORD_GUILD_NAME=Monolith3. Install dependencies
pip install -r requirements.txtMCP Host Configuration
opencode
Add to opencode.json in your project root:
{
"mcp": {
"discord": {
"type": "local",
"command": ["python", "/absolute/path/to/discord_mcp_server.py"]
}
}
}Restart opencode to load the server.
Claude Desktop
Edit claude_desktop_config.json (File → Settings → Developer → Edit Config):
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Claude Code
Add to ~/.claude.json or .mcp.json in your project:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Cursor
Create .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["/absolute/path/to/discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.discord]
command = "python"
args = ["/absolute/path/to/discord_mcp_server.py"]
[mcp_servers.discord.env]
DISCORD_TOKEN = "your_token_here"Or add via CLI:
codex mcp add discord -- python /absolute/path/to/discord_mcp_server.pyAntigravity (Google)
Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"discord": {
"command": "python",
"args": ["C:\\path\\to\\discord_mcp_server.py"],
"env": {
"DISCORD_TOKEN": "your_token_here"
}
}
}
}Open Antigravity → Agent panel → ... → MCP Servers → Manage MCP Servers → View raw config.
Note: If using the
.envfile instead of inlineenv, omit theenvblock and ensureload_dotenv()in the script finds your.env(the working directory depends on the host).
How it works
The script runs an MCP server over stdio that connects to Discord via the bot token. It registers all tools on startup, and your AI assistant calls them as needed. The Discord bot only needs to be in one server — it auto-selects the first guild on login.
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 Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The Canva MCP server connects AI assistants (like Claude, ChatGPT, and Cursor) to Canva's API, enabling them to create and manage designs directly within chat conversations. Key capabilities include generating new designs from prompts, autofilling templates, searching and resizing existing designs, importing files from URLs, exporting designs as PDFs or images, and managing folders and comments without switching between tools.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseNot gradedqualityDmaintenanceControl your Discord server with AI. Lets you manage channels, roles, members, messages, and more through natural language.348MIT
- AlicenseNot gradedqualityDmaintenanceEnables managing a Discord server using natural language through AI clients like Claude, with 139 admin tools across 20 categories for roles, channels, members, messages, threads, moderation, and more.16828MIT
- AlicenseBqualityAmaintenanceGives your AI assistant full control of a Discord server: 148 tools for chat, moderation, automod, events, and administration, up to building a complete community server from one paragraph. Every destructive action previews first and waits for your confirmation.1001547Elastic 2.0
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/hevji/Discord-Bot-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server