mcp-discord-mod
Provides tools for moderating a Discord server, including kicking, banning, timing out members, managing roles, channels, permissions, and audit logs.
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., "@mcp-discord-modkick @user123 for spamming"
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.
mcp-discord-mod
A lightweight Model Context Protocol server for Discord server moderation. Built with discord.js v14 and TypeScript.
Focused on what matters: kick, ban, timeout, roles, channels, audit logs, and member management. No bloat.
Setup
1. Create a Discord Bot
Go to Discord Developer Portal
Create a new application → Bot
Under Privileged Gateway Intents, enable:
Server Members Intent
Message Content Intent
Copy the bot token
2. Install
git clone https://github.com/YOUR_USERNAME/mcp-discord-mod.git
cd mcp-discord-mod
npm install
npm run build3. Configure
Set your bot token as an environment variable:
export DISCORD_TOKEN="your_bot_token_here"Or create a .env file:
DISCORD_TOKEN=your_bot_token_here4. Add to your MCP client
Add to your MCP config (e.g. opencode.json, claude_desktop_config.json, etc.):
{
"discord-mod": {
"type": "local",
"command": ["node", "/path/to/mcp-discord-mod/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_bot_token_here"
}
}
}Related MCP server: Discord MCP Server
Tools
Tool | Description |
| Login to Discord (auto-logins if DISCORD_TOKEN is set) |
| Kick a member from a server |
| Ban a member (optionally delete recent messages) |
| Unban a user |
| Timeout (mute) a member for a duration |
| Send a warning DM to a member |
| List all banned users |
| Set or clear a member's nickname |
| List all roles in a server |
| Create a new role |
| Edit role properties |
| Delete a role |
| Assign a role to a member |
| Remove a role from a member |
| Create a channel category |
| Create a text or voice channel |
| Delete a channel |
| Edit channel name, topic, slowmode |
| Set role/user permissions on a channel |
| Remove permission overrides |
| List server members |
| Get detailed member info |
| List all bot servers |
| Get server details and channels |
| View the server audit log |
| Send a direct message to a user |
| Bulk delete messages with filters |
| Delete up to 100 messages by ID |
| Pin a message |
| Unpin a message |
Bot Permissions
Your bot needs these permissions in the server:
Kick Members
Ban Members
Moderate Members (for timeouts)
Manage Roles
Manage Channels
View Audit Log
Send Messages
Read Message History
Manage Messages (for purge)
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
- AlicenseBqualityDmaintenanceEnables comprehensive Discord bot management and server operations through MCP, including channel management, message handling, member moderation, role management, and voice operations. Provides secure Discord API integration with built-in permission controls and audit logging capabilities.1923018MIT
- AlicenseBqualityDmaintenanceEnables Discord bot integration through MCP, allowing users to manage servers, channels, roles, members, and messages including moderation actions like bans, timeouts, and bulk deletions through natural language.33MIT
- AlicenseAqualityAmaintenanceLightweight multi-guild Discord MCP server with 60+ tools for messages, channels, roles, permissions, moderation, forums, webhooks, and embeds289780918MIT
- Flicense-qualityCmaintenanceComprehensive Discord server management through MCP, enabling channel, role, permission, message, moderation, and automation tasks via natural language.4
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Official MCP server for OmniDimension. Drive voice agents, dispatch calls, and run bulk campaigns.
A MCP server built for developers enabling Git based project management with project and personal…
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/berkal749/mcp-discord-mod'
If you have feedback or need assistance with the MCP directory API, please join our Discord server