discord-admin-mcp
An MCP server that enables AI assistants to manage Discord servers, including roles, channels, members, messages, and moderation, via natural language commands.
README
Discord Admin MCP
A Model Context Protocol (MCP) server that empowers your AI assistants with full administrative control over your Discord server. It acts as a bridge between LLMs (like Claude) and the Discord API, allowing you to manage roles, channels, members, messages, and security configurations autonomously or via natural language commands.
✨ Features
- Server Insights: Instantly retrieve server stats, member counts, and general configuration data.
- Channel Management: Create, delete, edit, clone, and reorganize text and voice channels, including categories.
- Role Administration: Create, assign, remove, and manage roles dynamically. Set precise permissions and hoist settings.
- Moderation Tools: Kick, ban, timeout, server mute, server deafen, and fetch detailed member info.
- Advanced Automation: Easily extensible to add permanent event listeners (e.g., AFK channel auto-muting, welcome messages).
- Secure by Default: Connects safely via standard MCP
stdiotransport.
🛠️ Requirements
- Node.js (v18+)
- A Discord Account
- A Discord Developer Application
📥 Installation
Clone the repository and install the dependencies:
git clone https://github.com/YOUR_GITHUB_USERNAME/discord-admin-mcp.git
cd discord-admin-mcp
npm install
⚙️ Configuration
Before running the server, you must provide it with your Discord Bot Token and Server (Guild) ID.
1. Create a Discord Application
- Go to the Discord Developer Portal.
- Click New Application and give it a name (e.g., "MCP Admin").
2. Create the Bot & Get the Token
- In your application, navigate to the Bot tab on the left menu.
- Under Privileged Gateway Intents, enable ALL intents (Presence, Server Members, Message Content).
- Click Reset Token and copy the new Bot Token.
3. Get the Application & Guild IDs
- Navigate to the OAuth2 > General tab to copy your Client ID (Application ID).
- To get your Guild ID (Server ID), open Discord, go to Advanced Settings, enable Developer Mode, then right-click your Server icon and select Copy Server ID.
4. Setup .env
Rename the provided .env.example file to .env and paste your copied values:
DISCORD_TOKEN=your_bot_token_here
GUILD_ID=your_server_id_here
CLIENT_ID=your_client_id_here
5. Invite the Bot to Your Server
Generate an invite link by replacing YOUR_CLIENT_ID in the following URL with your actual Client ID:
https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&integration_type=0&scope=bot
(This link requests Administrator permissions to ensure the bot can fully manage the server).
🚀 Usage
Once configured, build and start the server:
npm run build
npm start
The server will connect to Discord and start listening for MCP requests on stdio!
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.