discord-admin-mcp
Enables administration of a Discord server through the Discord API, including managing channels, categories, roles, permission overwrites, forum tags, onboarding, AutoMod rules, invites, messages, and webhooks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
discord-admin-mcp
A remote MCP server that lets Claude (or any MCP client that supports remote servers with OAuth) administer a Discord server: channels and categories, roles, permission overwrites, forum tags, onboarding, AutoMod, invites, messages and webhooks.
It runs on your own Cloudflare account as a Worker and talks to Discord through your own bot. Nothing is hosted by anyone else.
Locked to you. Sign-in goes through Discord OAuth; only the Discord user IDs you configure get a token. Every tool call is checked again.
Locked to your server(s). Tools refuse any guild ID that isn't on your allowlist.
Secrets stay in Cloudflare. The bot token never appears in tool output or logs. Webhook URLs (which are credentials) are only returned when you explicitly ask.
Guard rails. Deleting a channel requires its exact name as confirmation. Messages are sent with mentions disabled by default. Every change carries an audit-log reason,
Claude MCP (<tool>).Small. Plain
fetchagainst the Discord REST API v10; no discord.js, no gateway connection.
Quick start
You need: Node.js 20+, a free Cloudflare account, and a Discord server where you have Manage Server.
Create a Discord application at https://discord.com/developers/applications:
Bot tab → Reset Token → copy the token. (No privileged intents needed.)
OAuth2 tab → copy the Client ID and Client Secret.
Install and run setup:
git clone https://github.com/Evin89/discord-admin-mcp.git cd discord-admin-mcp npm install npm run setupSetup logs you in to Cloudflare if needed, asks for your server ID, your Discord user ID and the three Discord values (secrets are typed hidden), creates the KV namespace, writes
wrangler.toml, deploys, stores the secrets, and checks the bot token against Discord.Finish the three steps setup prints:
add
https://<your-worker>/callbackunder OAuth2 → Redirects in the Discord Developer Portal;invite the bot with the printed link, then in Server Settings → Roles drag the bot's role above every role it should be able to edit;
in Claude: Settings → Connectors → Add custom connector →
https://<your-worker>/mcp, approve, and sign in with Discord.
Finding IDs: Discord User Settings → Advanced → Developer Mode, then right-click your server icon or your own profile → Copy ID.
Related MCP server: discord-mcp
Tools
Tool | What it does |
| Channels (with category, topic, forum tags, readable permission overwrites) and roles |
| Webhook IDs, names, channels. Never tokens or URLs |
| Read onboarding and AutoMod config |
| Text, announcement, forum, category or voice; overwrites; forum tags, require-tag, default reaction |
| Rename, move, topic or guidelines, slowmode, forum tags (existing tag IDs are kept by name) |
| Set allow/deny for a role or |
| Copy the category's overwrites onto a channel |
| Name, colour, hoist, mentionable, permissions |
| Only with |
| Onboarding prompts and options, mapping to roles and channels by name or ID |
| Presets: |
| Invites, permanent by default |
| Bot messages, no pings by default |
| Returns the URL only with |
Channels and roles can be referenced by ID or exact name (case-insensitive); ambiguous names return an error listing the matches. Permissions use Discord's flag names (VIEW_CHANNEL, SEND_MESSAGES, MANAGE_THREADS, …).
Deliberately not included: kicking or banning members, assigning roles to members, deleting other people's messages, deleting the server.
Configuration
npm run setup handles this, but for reference:
Name | Where | Value |
| secret | Bot token |
| secret | OAuth2 Client ID (= application ID) |
| secret | OAuth2 Client Secret |
| secret | Random, ≥ 32 characters (setup generates one) |
|
| Who may sign in, comma-separated |
|
| Which servers the tools may touch, comma-separated |
|
| Exact public URL of |
wrangler.toml is generated from wrangler.example.toml and is git-ignored, so your IDs don't end up in a fork. To configure by hand: copy the example, replace the __PLACEHOLDERS__, run npx wrangler kv namespace create <name> for the KV ID, npx wrangler secret put <NAME> for each secret, then npm run deploy.
Bot permissions in the invite link (2251800619084849): Create Invite, Manage Channels, Manage Server, View Channels, Send Messages, Manage Messages, Embed Links, Read Message History, Manage Roles, Manage Webhooks, Pin Messages. Discord still applies its own rules: a bot can't edit roles above its own highest role, can't grant permissions it doesn't have, and doesn't see private channels it has no access to. Onboarding and announcement or forum channels require the server to have Community enabled.
Local development
cp .dev.vars.example .dev.vars # fill in the placeholders
cp wrangler.example.toml wrangler.toml # or run setup once
npm run dev # http://localhost:8788
npx @modelcontextprotocol/inspector # Streamable HTTP → http://localhost:8788/mcpAdd http://localhost:8788/callback as an extra redirect in the Discord Developer Portal for local sign-in.
Validation
npm run typecheck
npm test
npx wrangler deploy --dry-run # needs a wrangler.tomlTests mock Discord and OAuth storage: permission encoding, the guild and user allowlists, the delete confirmation, webhook-secret hiding, tag ID preservation, the 429 retry and audit-log headers.
How it works
Cloudflare Workers OAuth Provider makes the Worker an OAuth 2.1 authorization server with dynamic client registration, which is what Claude's custom connectors use. Its authorize step hands off to Discord OAuth (identify scope) and only completes for allow-listed user IDs. The MCP server itself is an agents McpAgent (a Durable Object) serving Streamable HTTP at /mcp and legacy SSE at /sse, each with its own token audience. Discord calls use the bot token with one retry on rate limits.
Based on the pattern of Cloudflare's remote MCP GitHub OAuth demo.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: claude-skill-validator
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
The AI admin for Discord: manage channels, roles, members, moderation and automations.
Build Discord communities with AI: roles, channels, modules, automations and reviewed announcements.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to send notifications to Discord channels via webhooks when tasks complete, errors occur, or user intervention is needed. Deployed serverlessly on Cloudflare Workers with support for rich message formatting and embeds.8MIT
- 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.264 npm47MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to manage Discord servers through the Discord API, supporting server info, messaging, channel management, webhooks, and user interactions.7 npmMIT
- AlicenseAqualityBmaintenanceEnables managing Cloudflare Workers through Claude, with read-only tools for listing and viewing workers, and planned deployment of static sites and worker scripts via natural language.2939 npm1MIT