Dc-MCP
Provides Discord server administration capabilities, including managing channels, roles, members, messages, moderation, invites, webhooks, and audit logs, with a full guild structure analysis.
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., "@Dc-MCPshow me the recent audit log entries"
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.
Dc-MCP
Discord Administration MCP Server for Cursor.
Dc-MCP connects Cursor to a Discord bot over the Model Context Protocol (stdio). Cursor can inspect a guild’s full structure and run precise admin actions through explicit tools — not a free-form Discord API executor.
Cursor ──MCP (stdio)──▶ Dc-MCP ──discord.py──▶ Discord APIFeatures
Full guild map for Cursor (
discord_analyze_server/discord_server_structure)Granular tools for channels, roles, members, messages, moderation, invites, webhooks, audit logs
Central permission + hierarchy checks (no owner targeting, no roles above the bot)
Destructive action protection (
confirm=true+ optional hard disable)Structured JSON results; secrets never returned or logged
Stdio transport compatible with Cursor’s MCP client
Related MCP server: Discord MCP Server
Requirements
Python 3.11+
A Discord application + bot
Privileged intents: Server Members Intent, Message Content Intent
Quick start
git clone https://github.com/669px/Dc-MCP.git
cd Dc-MCP
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install -e .
cp .env.example .envEdit .env:
DISCORD_BOT_TOKEN=your_bot_token
DISCORD_GUILD_ID=your_guild_id
ALLOW_DANGEROUS_ACTIONS=true
REQUIRE_CONFIRMATION=true
LOG_LEVEL=INFORun:
python -m src.mainLogs go to stderr. stdout is reserved for MCP JSON-RPC.
Discord bot setup
Create an application at the Discord Developer Portal
Add a bot and copy the token into
DISCORD_BOT_TOKENEnable Server Members Intent and Message Content Intent
Invite the bot with permissions such as Manage Channels/Roles/Messages, Kick/Ban, Moderate Members, View Audit Log, Manage Webhooks/Guild, Send Messages, Embed Links, Add Reactions, Read Message History, Create Instant Invite
Place the bot role high enough to manage the roles/members you intend to administer
Set
DISCORD_GUILD_IDto restrict all operations to one guild
Cursor MCP config
Project or user mcp.json:
{
"mcpServers": {
"discord-admin": {
"command": "/ABSOLUTE/PATH/TO/Dc-MCP/.venv/bin/python",
"args": ["-m", "src.main"],
"cwd": "/ABSOLUTE/PATH/TO/Dc-MCP"
}
}
}Secrets load from .env in cwd. After saving, enable/refresh discord-admin under Settings → Tools & MCP.
CLI:
agent mcp enable discord-admin
agent mcp listCore tools
Tool | Purpose |
| Full guild map + summary for Cursor |
| Lighter category/channel/role tree |
| Guild metadata |
| Inventory |
| Filtered audit entries |
Also included: channel CRUD + permissions, role CRUD + assign/remove, member moderation (kick/ban/timeout/nick), messaging (send/edit/delete/pin/react), invites, webhooks, and discord_purge_messages.
Destructive tools require confirm=true when REQUIRE_CONFIRMATION=true.
Security
Never commit
.envPrefer
REQUIRE_CONFIRMATION=trueScope with
DISCORD_GUILD_IDMentions default to restricted (
@everyone/ mass roles off unless allowed)No shell, eval, HTTP proxy, or generic API executor tools
Webhook tokens are never returned
Project layout
src/
main.py MCP entrypoint (stdio)
config.py Environment settings
discord_client.py discord.py client
permissions.py Guild / hierarchy / confirmation gates
errors.py Structured error mapping
responses.py Success / failure payloads
server_map.py Full guild analysis for Cursor
tools/ Granular MCP tools
tests/ Unit tests (mocked Discord)Development
source .venv/bin/activate
python -m compileall src
python -m pytest
python -c "import discord; print(discord.__version__)"Discord limitations
Bulk delete only works for messages younger than 14 days
Bulk/purge caps default to 100
Cannot moderate the guild owner or targets at/above the bot’s highest role
Managed/integration roles cannot be edited
Member list/search requires Server Members Intent
License
MIT
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
- AlicenseCqualityDmaintenanceProvides comprehensive administrative control over Discord communities through 128 operations covering moderation, messaging, and channel management. It enables AI assistants to manage server roles, events, and automations via the Model Context Protocol.335MIT
- 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
- 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.1003776Elastic 2.0
- FlicenseNot gradedqualityBmaintenanceGives AI agents full control over Discord server creation and configuration. Exposes 36 tools covering guild lifecycle, channels, roles, members, content, messages, templates, and a declarative blueprint engine.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Shared, permission-aware company context for AI agents, with provenance, approvals and audit.
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/669px/Dc-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server