discord-mcp
The Discord MCP server provides comprehensive Discord server management through 50+ tools organized into 12 categories, enabling programmatic control of nearly all Discord operations via HTTP or stdio transport.
Core Capabilities:
Server Management: List servers, view details, and modify settings (name, description, AFK settings, system channels)
Channel Management: Create, delete, modify, and list all channel types (text, voice, category, announcement, forum, stage) with full configuration control
Member Management: List up to 1000 members, view details, modify properties (nickname, roles, voice settings, timeout), kick, ban, unban, and list bans
Role Management: Create, delete, modify roles, configure properties (name, color, permissions, position, mentionability), and assign/remove roles from members
Permission Management: Get, set, delete channel permission overwrites, list available permissions, and sync channel permissions with parent categories
Message Management: Send, edit, delete (including bulk deletion up to 100 messages), retrieve history with filters, pin/unpin, reply, and manage reactions
Emoji & Sticker Management: List, create, delete, and modify custom emojis and stickers with role restrictions
Webhook Management: List, create, delete, modify webhooks, and send messages via webhooks with custom avatars and names
Invite Management: List, create (with max uses, expiration, temporary membership), delete, and get invite information
Event Management: List, create (voice, stage, or external), modify, delete scheduled events, view subscribers, and manage event status
Thread Management: List (including archived), create threads and forum posts, modify settings (name, archive status, tags, slowmode), delete, join/leave, and manage thread members
Audit & Moderation: Retrieve audit logs with filters (by user or action type), list audit log types, and manage AutoMod rules (list, view, delete, toggle)
Additional Features:
10 MCP Prompts: Guided workflows for server audits, moderation reports, channel setup, role hierarchy review, permission troubleshooting, welcome messages, announcements, AutoMod configuration, webhook security audits, and member onboarding
Multiple Transport Modes: HTTP with SSE for real-time communication or stdio for desktop clients
Session Management: Support for concurrent MCP connections with comprehensive error handling
Integration Support: Pre-configured for VS Code, Claude Desktop, and Cline
Provides comprehensive Discord server management capabilities including server administration, channel operations, member and role management, message handling, webhooks, invites, scheduled events, threads, emoji/sticker management, and audit logs across 50+ tools.
Click on "Deploy 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 list all channels in the general server"
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
A Model Context Protocol (MCP) server that provides comprehensive tools for managing Discord servers. This server uses HTTP transport with Server-Sent Events (SSE) for real-time communication.
Features
50+ Discord Management Tools across 12 categories
10 MCP Prompts for guided server management workflows
HTTP Transport with StreamableHTTPServerTransport for easy integration
Session Management for concurrent MCP connections
Comprehensive Error Handling with detailed error messages
Graceful Shutdown handling
Related MCP server: pterodactyl-mcp
Prerequisites
Node.js 18+
A Discord Bot Token with appropriate permissions
Discord bot added to your server(s)
Installation
Clone the repository:
git clone https://github.com/scarecr0w12/discord-mcp.git cd discord-mcpInstall dependencies:
npm installCreate a
.envfile from the example:cp .env.example .envConfigure your Discord bot token in
.env:DISCORD_BOT_TOKEN=your_bot_token_here PORT=3000Build the project:
npm run buildStart the server:
npm start
Discord Bot Setup
Your Discord bot requires the following Gateway Intents enabled in the Discord Developer Portal:
GUILDS - Access to guild information
GUILD_MEMBERS - Access to member information (Privileged)
GUILD_MODERATION - Access to moderation events
GUILD_MESSAGES - Access to messages
GUILD_PRESENCES - Access to presence information (Privileged)
MESSAGE_CONTENT - Access to message content (Privileged)
Configuration
Environment Variable | Description | Default |
| Your Discord bot token (required) | - |
| HTTP server port (HTTP mode only) |
|
| Transport mode ( |
|
Usage
The server supports two transport modes:
HTTP Mode (Default)
Start the server in HTTP mode:
npm startHTTP Endpoints
POST /mcp- MCP requestsGET /mcp- SSE stream for server-initiated messagesDELETE /mcp- Session cleanupGET /health- Health check endpoint
VS Code MCP Configuration (HTTP)
Add to your .vscode/mcp.json:
{
"servers": {
"discord-mcp": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}Stdio Mode
For use with Claude Desktop, Cline, or other MCP clients that use stdio transport:
npm start -- --stdio
# or
MCP_TRANSPORT=stdio npm startClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"discord-mcp": {
"command": "node",
"args": ["/path/to/discord-mcp/dist/index.js", "--stdio"],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token_here"
}
}
}
}Cline Configuration
Add to your Cline MCP settings:
{
"mcpServers": {
"discord-mcp": {
"command": "node",
"args": ["/path/to/discord-mcp/dist/index.js", "--stdio"],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token_here"
}
}
}
}Available Tools
Server Management
list_servers- List all Discord servers the bot has access toget_server_info- Get detailed information about a specific servermodify_server- Modify server settings
Channel Management
list_channels- List all channels in a serverget_channel_info- Get detailed channel informationcreate_channel- Create a new channeldelete_channel- Delete a channelmodify_channel- Modify channel settings
Member Management
list_members- List server membersget_member_info- Get member detailsmodify_member- Modify member propertieskick_member- Kick a member from the serverban_member- Ban a memberunban_member- Unban a memberlist_bans- List all bans
Role Management
list_roles- List all rolesget_role_info- Get role detailscreate_role- Create a new roledelete_role- Delete a rolemodify_role- Modify role settingsassign_role- Assign a role to a memberremove_role- Remove a role from a member
Permission Management
get_channel_permissions- Get channel permission overwritesset_channel_permission- Set channel permissionsdelete_channel_permission- Delete permission overwriteslist_permissions- List available permissionssync_channel_permissions- Sync permissions with category
Message Management
send_message- Send a message to a channelget_messages- Retrieve messages from a channeledit_message- Edit a bot messagedelete_message- Delete a messagebulk_delete_messages- Bulk delete messages (up to 100)pin_message/unpin_message- Pin/unpin messagesget_pinned_messages- Get all pinned messagesadd_reaction/remove_reactions- Manage reactions
Emoji & Sticker Management
list_emojis- List server emojiscreate_emoji- Create a custom emojidelete_emoji- Delete an emojimodify_emoji- Modify emoji settingsSticker operations (list, create, delete, modify)
Webhook Management
list_channel_webhooks/list_guild_webhooks- List webhookscreate_webhook- Create a webhookdelete_webhook- Delete a webhookmodify_webhook- Modify webhook settingssend_webhook_message- Send a message via webhook
Invite Management
list_invites- List server invitesget_invite_info- Get invite detailscreate_invite- Create an invitedelete_invite- Delete an invite
Event Management
list_events- List scheduled eventsget_event_info- Get event detailscreate_event- Create a scheduled eventmodify_event- Modify an eventdelete_event- Delete an eventget_event_subscribers- Get event subscribers
Thread Management
list_threads- List threads in a channel or servercreate_thread- Create a new threadcreate_forum_post- Create a forum postmodify_thread- Modify thread settingsdelete_thread- Delete/archive a threadThread join/leave and member management operations
Audit & Moderation
get_audit_logs- Retrieve server audit logslist_audit_log_types- List available audit log action typeslist_automod_rules- List AutoMod rulesget_automod_rule- Get AutoMod rule detailsdelete_automod_rule- Delete an AutoMod ruletoggle_automod_rule- Enable/disable an AutoMod rule
Available Prompts
MCP Prompts provide guided workflows for complex server management tasks. Use these prompts to start structured conversations for common administrative operations.
Prompt | Description |
| Comprehensive security and configuration audit checklist |
| Generate moderation activity summaries from audit logs |
| Step-by-step guidance for setting up new channels |
| Analyze and suggest improvements to role hierarchy |
| Diagnose why a user cannot perform a specific action |
| Generate customized server welcome messages |
| Draft formatted server announcements |
| Guide for configuring Discord AutoMod rules |
| Audit webhooks for security concerns |
| Review and improve new member experience |
Using Prompts
Prompts can be invoked in MCP-compatible clients. Each prompt accepts arguments to customize the workflow:
# Example: Server Audit
Prompt: server-audit
Arguments: { "guildId": "123456789" }
# Example: Channel Setup Guide
Prompt: channel-setup-guide
Arguments: { "channelType": "forum", "purpose": "community feedback" }Development
# Run in development mode with hot reload
npm run dev
# Build the project
npm run build
# Start the production server
npm startAttributions
This project is built with the following open-source libraries:
@modelcontextprotocol/sdk - Official MCP TypeScript SDK
discord.js - A powerful JavaScript library for interacting with the Discord API
Express - Fast, unopinionated, minimalist web framework for Node.js
Zod - TypeScript-first schema validation with static type inference
dotenv - Loads environment variables from .env file
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
ISC License - see the LICENSE file for details.
Author
Jacob Bowen - @scarecr0w12
Available Tools
76 toolsadd_reactionC
Add a reaction to a message
Inputs: guildId (required), channelId (required), messageId (required), emoji (required).
add_thread_memberC
Add a member to a thread
Inputs: guildId (required), threadId (required), userId (required).
assign_roleC
Assign a role to a member
Inputs: guildId (required), memberId (required), roleId (required), reason.
ban_memberC
Ban a member from the server
Inputs: guildId (required), userId (required), deleteMessageSeconds, reason.
bulk_delete_messagesA
Bulk delete messages from a channel (up to 100, messages must be < 14 days old)
Inputs: guildId (required), channelId (required), messageIds (required), reason.
create_channelC
Create a new channel in a Discord server
Inputs: guildId (required), name (required), type (required), parentId, +7 more.
create_emojiC
Create a custom emoji in a server
Inputs: guildId (required), name (required), imageUrl (required), roles, +1 more.
create_eventC
Create a scheduled event in a server
Inputs: guildId (required), name (required), scheduledStartTime (required), entityType (required), +6 more.
create_forum_postC
Create a new post in a forum channel
Inputs: guildId (required), channelId (required), name (required), content (required), +3 more.
create_inviteC
Create an invite for a channel
Inputs: guildId (required), channelId (required), maxAge, maxUses, +3 more.
create_roleC
Create a new role in a Discord server
Inputs: guildId (required), name (required), color, hoist, +4 more.
create_stickerC
Create a custom sticker in a server
Inputs: guildId (required), name (required), description (required), tags (required), +2 more.
create_threadC
Create a new thread
Inputs: guildId (required), channelId (required), name (required), messageId, +3 more.
create_webhookC
Create a webhook in a channel
Inputs: guildId (required), channelId (required), name (required), avatar, +1 more.
delete_automod_ruleC
Delete an auto-moderation rule
Inputs: guildId (required), ruleId (required), reason.
delete_channelC
Delete a channel from a Discord server
Inputs: guildId (required), channelId (required), reason.
delete_channel_permissionB
Delete a permission overwrite for a role or member on a channel
Inputs: guildId (required), channelId (required), targetId (required), reason.
delete_emojiC
Delete a custom emoji from a server
Inputs: guildId (required), emojiId (required), reason.
delete_eventC
Delete a scheduled event
Inputs: guildId (required), eventId (required).
delete_inviteC
Delete an invite
Inputs: inviteCode (required), reason.
delete_messageC
Delete a message from a channel
Inputs: guildId (required), channelId (required), messageId (required), reason.
delete_roleC
Delete a role from a Discord server
Inputs: guildId (required), roleId (required), reason.
delete_stickerC
Delete a custom sticker from a server
Inputs: guildId (required), stickerId (required), reason.
delete_threadC
Delete a thread
Inputs: guildId (required), threadId (required), reason.
delete_webhookC
Delete a webhook
Inputs: webhookId (required), reason.
edit_messageC
Edit a message sent by the bot
Inputs: guildId (required), channelId (required), messageId (required), content (required).
get_audit_logsC
Get audit logs from a server
Inputs: guildId (required), limit, userId, actionType, +1 more.
get_automod_ruleB
Get details of a specific auto-moderation rule
Inputs: guildId (required), ruleId (required).
get_channel_infoC
Get detailed information about a specific channel
Inputs: guildId (required), channelId (required).
get_channel_permissionsC
Get all permission overwrites for a channel
Inputs: guildId (required), channelId (required).
get_event_infoC
Get detailed information about a scheduled event
Inputs: guildId (required), eventId (required).
get_event_subscribersC
Get users subscribed to a scheduled event
Inputs: guildId (required), eventId (required), limit.
get_invite_infoC
Get information about a specific invite
Inputs: inviteCode (required).
get_member_infoB
Get detailed information about a specific member
Inputs: guildId (required), memberId (required).
get_messagesC
Get messages from a channel
Inputs: guildId (required), channelId (required), limit, before, +1 more.
get_pinned_messagesB
Get all pinned messages in a channel
Inputs: guildId (required), channelId (required).
get_role_infoC
Get detailed information about a specific role
Inputs: guildId (required), roleId (required).
get_server_infoB
Get detailed information about a specific Discord server
Inputs: guildId (required).
join_threadC
Make the bot join a thread
Inputs: guildId (required), threadId (required).
kick_memberC
Kick a member from the server
Inputs: guildId (required), memberId (required), reason.
leave_threadC
Make the bot leave a thread
Inputs: guildId (required), threadId (required).
list_audit_log_typesB
List all available audit log action types
Inputs: no named parameters.
list_automod_rulesC
List all auto-moderation rules in a server
Inputs: guildId (required).
list_bansB
List all banned users in a server
Inputs: guildId (required).
list_channelsB
List all channels in a Discord server
Inputs: guildId (required).
list_channel_webhooksB
List all webhooks in a channel
Inputs: guildId (required), channelId (required).
list_emojisC
List all custom emojis in a server
Inputs: guildId (required).
list_eventsC
List all scheduled events in a server
Inputs: guildId (required), withUserCount.
list_guild_webhooksC
List all webhooks in a server
Inputs: guildId (required).
list_invitesC
List all invites in a server
Inputs: guildId (required).
list_membersB
List members in a Discord server (fetches up to 1000 members)
Inputs: guildId (required), limit.
list_permissionsA
List all available Discord permission names that can be used for roles and channel overwrites
Inputs: no named parameters.
list_rolesB
List all roles in a Discord server
Inputs: guildId (required).
list_serversB
List all Discord servers (guilds) the bot has access to
Inputs: no named parameters.
list_stickersB
List all custom stickers in a server
Inputs: guildId (required).
list_threadsC
List all threads in a channel
Inputs: guildId (required), channelId (required), archived.
modify_channelC
Modify channel settings (name, topic, permissions, position, etc.)
Inputs: guildId (required), channelId (required), name, topic, +7 more.
modify_emojiC
Modify a custom emoji in a server
Inputs: guildId (required), emojiId (required), name, roles, +1 more.
modify_eventC
Modify a scheduled event
Inputs: guildId (required), eventId (required), name, description, +5 more.
modify_memberC
Modify member properties (nickname, roles, timeout, etc.)
Inputs: guildId (required), memberId (required), nickname, roles, +5 more.
modify_roleC
Modify role properties (name, color, permissions, position, etc.)
Inputs: guildId (required), roleId (required), name, color, +5 more.
modify_serverC
Modify server settings (requires appropriate permissions)
Inputs: guildId (required), name, description, afkChannelId, +4 more.
modify_stickerC
Modify a custom sticker in a server
Inputs: guildId (required), stickerId (required), name, description, +2 more.
modify_threadD
Modify a thread
Inputs: guildId (required), threadId (required), name, archived, +5 more.
modify_webhookC
Modify a webhook
Inputs: webhookId (required), name, avatar, channelId, +1 more.
pin_messageC
Pin a message in a channel
Inputs: guildId (required), channelId (required), messageId (required), reason.
remove_reactionsC
Remove reactions from a message
Inputs: guildId (required), channelId (required), messageId (required), emoji, +1 more.
remove_roleC
Remove a role from a member
Inputs: guildId (required), memberId (required), roleId (required), reason.
remove_thread_memberC
Remove a member from a thread
Inputs: guildId (required), threadId (required), userId (required).
send_messageC
Send a message to a channel
Inputs: guildId (required), channelId (required), content (required), replyToMessageId.
send_webhook_messageC
Send a message using a webhook
Inputs: webhookId (required), webhookToken (required), content, username, +2 more.
set_channel_permissionC
Set permission overwrite for a role or member on a channel
Inputs: guildId (required), channelId (required), targetId (required), targetType (required), +3 more.
sync_channel_permissionsC
Sync a channel's permissions with its parent category
Inputs: guildId (required), channelId (required).
toggle_automod_ruleC
Enable or disable an auto-moderation rule
Inputs: guildId (required), ruleId (required), enabled (required), reason.
unban_memberC
Unban a user from the server
Inputs: guildId (required), userId (required), reason.
unpin_messageC
Unpin a message in a channel
Inputs: guildId (required), channelId (required), messageId (required), reason.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 76 tools
Every tool has a clearly distinct purpose targeting specific Discord resources and actions, with no significant overlap. For example, 'ban_member' and 'kick_member' are distinct operations, and 'create_channel' versus 'modify_channel' are clearly separated lifecycle stages.
All tools follow a consistent verb_noun pattern throughout (e.g., create_channel, delete_channel, modify_channel). The naming is highly predictable and organized, with no mixing of conventions or styles.
With 76 tools, this is far too many for typical agent use, creating cognitive overload and selection difficulty. While Discord's API is extensive, this comprehensive coverage could be better organized into fewer, more generalized tools or a hierarchical structure.
The tool set provides complete CRUD/lifecycle coverage for Discord's domain, including channels, messages, members, roles, events, webhooks, and moderation. Every major Discord API endpoint appears to be represented with no obvious gaps in functionality.
Maintenance
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Find the right MCP server for your task. 4,500+ servers ranked by community trust.
Directory of 53,000+ MCP servers: find one for any task and get its exact setup. No account.
An MCP server for deep research or task groups
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol (MCP) server for the Discord integration with MCP-compatible applications like Claude Desktop.605MIT
- AlicenseAqualityNot gradedmaintenanceMCP server for Pterodactyl and Pelican game server panels. 73 tools for server management, power control, file operations, backups, schedules, databases, users, nodes, and eggs.3414 npm-
- AlicenseAqualityAmaintenanceLightweight multi-guild Discord MCP server with 60+ tools for messages, channels, roles, permissions, moderation, forums, webhooks, and embeds1002,239 npm34MIT
- AlicenseNot gradedqualityDmaintenanceThe most complete open-source MCP server for Discord — 80+ tools, dual-mode: integrated (plugin) or standalone70 npm16MIT