discord-mcp
Provides tools for interacting with Discord servers, enabling management of messages, channels, roles, members, moderation actions, polls, voice stages, forums, threads, invites, scheduled events, emojis, stickers, AutoMod rules, and webhooks.
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 Send a message to #announcements: 'Server maintenance at 10 PM UTC.'"
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 comprehensive, production-grade Model Context Protocol (MCP) Server for Discord. Connects LLMs (Claude, Cursor, OpenCode, Windsurf, Cline) directly to Discord with 82 specialized tools, live server resources, and built-in prompts.
โก What Can This MCP Server Do?
๐ Deep User Intelligence & Forensics
discord_inspect_user: Complete forensic dossier (account creation age, server join age, alt-account risk indicator, badges/public flags, nitro booster tier, permissions calculated across all roles, voice state, highest role, timeout status).discord_send_dm: Send direct messages (text & rich embeds) to any user by user ID or username.discord_get_dm_history: Read past DM conversations between the bot and any user.discord_get_user: Retrieve full user profiles (ID, tag, avatar URL, creation date, bot flag, banner).
๐จ Emergency Server Defense & Lockdowns
discord_lockdown_channel: Instantly prevent@everyonefrom sending messages in a channel or entire category during raids or spam waves.discord_unlock_channel: Lift lockdown and restore channel permissions.discord_quarantine_member: Apply emergency 28-day timeout and strip all removable roles from compromised accounts.discord_bulk_slowmode: Update or reset slowmode cooldowns across multiple channels simultaneously.
๐ณ๏ธ Native Discord Interactive Polls
discord_create_poll: Post native Discord interactive polls (2 to 10 choices, custom durations: 1h, 24h, 3d, 1w, and multi-select).discord_get_poll_results: Live breakdown of vote tallies, percentages, and voters.discord_end_poll: Immediately finalize and lock a poll.
๐ Message Search, Transcripts & Analytics
discord_search_messages: Search messages with keyword, author ID, and attachment filters.discord_export_transcript: Export clean Markdown or JSON transcript of recent messages (ideal for incident reports or summaries).discord_channel_analytics: Analyze message velocity, active participants, and top contributors.
๐ก Forums & Discussions
discord_create_forum_post: Create structured posts/threads in Forum channels with custom tags and starter content.discord_list_forum_tags: Query configured tags on Forum channels.
๐๏ธ Voice & Live Stage Controls
discord_get_voice_states: List members in voice/stage channels (mute, deafen, streaming status).discord_move_voice_member: Move members between voice channels or disconnect them.discord_start_stage/discord_end_stage: Open and close live Stage Instances with topics.discord_set_speaker_status: Promote listeners to speakers or mute stage speakers.discord_server_mute_voice/discord_server_deafen_voice: Server mute/deafen voice members.
๐จ Messages, Chat History & Reactions
discord_send_message: Post formatted messages and rich embeds to text and announcement channels.discord_get_messages: Read channel message history, attachments, authors, and timestamps.discord_edit_message/discord_delete_message: Update or delete messages.discord_purge_messages: Bulk purge messages (with optional user filtering).discord_pin_message/discord_unpin_message: Pin or unpin important messages.discord_add_reaction/discord_remove_reaction: Add or remove emoji reactions (standard & custom).
๐ก๏ธ Moderation & Audit Logs
discord_list_members: Search and list server members with their roles and status.discord_get_member: Full member details (roles, permissions, voice status, timeouts).discord_set_nickname: Change or reset member nicknames.discord_timeout_member: Timeout (mute) members for any duration up to 28 days.discord_kick_member: Kick users from the server.discord_ban_member/discord_unban_member/discord_list_bans: Manage server bans.discord_get_audit_logs: Inspect Discord server audit log entries (moderation actions, edits).
๐ Channel & Category Architecture
discord_list_channels: List all categories, text, voice, announcement, forum, and stage channels.discord_get_channel: Detailed channel info with explicit permission overrides.discord_create_channel/discord_create_category: Create any channel type with custom bitrate, slowmode, and topics.discord_edit_channel/discord_delete_channel: Edit channel parameters or remove channels.discord_move_channel: Organize channels into categories or reposition them.discord_set_channel_permissions: Set granular allow/deny permission overrides for roles or members.discord_batch_create_structure: Deploy a complete multi-category server architecture in one single tool call.
๐ญ Roles & Permissions
discord_list_roles: Inspect role hierarchy, color hexes, hoists, and permissions.discord_create_role/discord_edit_role/discord_delete_role: Create and modify server roles.discord_assign_role/discord_remove_role: Manage member role assignments.
๐งต Threads & Conversations
discord_create_thread: Start public or private threads in a channel or from a specific message.discord_list_threads: List active and archived threads with message/member counts.discord_edit_thread: Lock, archive, or rename threads.
๐ Invites, Events & Onboarding
discord_create_invite/discord_list_invites/discord_delete_invite: Create and manage server invite links.discord_list_scheduled_events/discord_create_scheduled_event/discord_delete_scheduled_event: Schedule events in voice, stage, or external locations.discord_get_onboarding: View server onboarding questions and default channels.discord_set_vanity_url: Set custom vanity invite code.
๐จ Custom Media (Emojis, Stickers, Soundboard)
discord_list_emojis/discord_create_emoji/discord_delete_emoji: Manage custom server emojis.discord_list_stickers/discord_delete_sticker: Manage custom stickers.discord_list_soundboard_sounds: Inspect custom soundboard audio assets.
๐ค AutoMod & Webhooks
discord_list_automod_rules/discord_create_automod_rule/discord_delete_automod_rule: Configure keyword filters, regex filters, and auto-timeout rules.discord_list_webhooks/discord_create_webhook/discord_delete_webhook/discord_send_webhook_message: Manage and trigger webhooks.
Related MCP server: poke_discord
๐ ๏ธ MCP Resources & Prompts
Resources
discord://guild/{guildId}/snapshotโ Real-time serialized snapshot of server categories, channels, and roles.discord://guild/{guildId}/rolesโ Detailed role hierarchy and bitfield permissions.discord://channel/{channelId}/messagesโ Recent message history from a text channel.
Prompts
discord_audit_serverโ Comprehensive security, role hierarchy, and structure audit.discord_plan_reorganizationโ Design and structure a server for gaming, developer, or company communities.discord_send_announcementโ Compose and format an official server announcement with embeds.
๐ Quick Setup Guide
1. Create Bot & Get Token
Go to the Discord Developer Portal.
Click New Application, name it, and go to the Bot tab.
Click Reset Token and copy the token.
Scroll down to Privileged Gateway Intents and enable:
Message Content Intent (Required to read chat)
Server Members Intent (Required to search/list members)
Under OAuth2 > URL Generator, select
botscope with permissions (Administratoror channel/role/member permissions). Copy URL and invite the bot to your server.Crucial: In your Discord server settings > Roles, drag the bot's role to the top of the role list so it can manage roles below it.
3. Install
git clone https://github.com/walsoup/discord-mcp.git
cd discord-mcp
npm installPass your bot token and server ID through your MCP client config as shown below, and use the absolute path to your clone in place of /path/to/discord-mcp.
๐ Connecting to MCP Clients
Claude Desktop (claude_desktop_config.json)
On Windows: %APPDATA%\Claude\claude_desktop_config.json
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/path/to/discord-mcp/bin/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "YOUR_DISCORD_BOT_TOKEN_HERE",
"DISCORD_GUILD_ID": "YOUR_TARGET_SERVER_ID_HERE"
}
}
}
}Cursor / OpenCode / Windsurf (mcp.json)
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/path/to/discord-mcp/bin/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "YOUR_DISCORD_BOT_TOKEN_HERE",
"DISCORD_GUILD_ID": "YOUR_TARGET_SERVER_ID_HERE"
}
}
}
}๐งช Testing
Run the included automated test suite:
npm test๐ License
MIT
Available Tools
82 toolsdiscord_add_reactionC
Add an emoji reaction to a message (e.g. ๐, โค๏ธ, or custom emoji name/ID).
Inputs: emoji (required), channel_id (required), message_id (required), guild_id.
discord_assign_roleC
Assign a role to a server member.
Inputs: role_id (required), member_id (required), guild_id.
discord_ban_memberC
Ban a member or user from the server with optional message deletion history.
Inputs: user_id (required), reason, guild_id, delete_message_seconds.
discord_batch_create_structureB
Deploy an entire server architecture in one operation: roles with permissions, categories, and channels.
Inputs: categories (required), roles, guild_id.
discord_bulk_slowmodeB
Apply or clear slowmode cooldown (in seconds) across multiple channels at once.
Inputs: channel_ids (required), slowmode_seconds (required), guild_id.
discord_channel_analyticsB
Summarize activity metrics in a channel: active participants, message rate, and top contributors.
Inputs: channel_id (required), guild_id, sample_size.
discord_create_automod_ruleC
Create a new AutoMod rule with keyword filters, regex patterns, or mention limits.
Inputs: name (required), guild_id, exempt_roles, block_message, +5 more.
discord_create_categoryC
Create a category channel to group other channels.
Inputs: name (required), guild_id, position.
discord_create_channelC
Create a new text, voice, announcement, forum, stage, or category channel.
Inputs: name (required), nsfw, type, topic, +5 more.
discord_create_emojiC
Create a new custom emoji from an image URL or base64 data URI.
Inputs: name (required), image (required), roles, guild_id.
discord_create_forum_postC
Create a new post / thread in a Discord Forum channel with title, message content, and tags.
Inputs: title (required), content (required), channel_id (required), tags, +2 more.
discord_create_inviteC
Create an invite link for a channel with custom maxAge, maxUses, temporary membership, and unique link flag.
Inputs: channel_id (required), reason, unique, guild_id, +3 more.
discord_create_pollB
Create a native Discord interactive poll in a channel with up to 10 choices, custom duration, and optional multi-select.
Inputs: answers (required), question (required), channel_id (required), guild_id, +2 more.
discord_create_roleB
Create a new server role with custom name, color, hoist, and permissions.
Inputs: name (required), color, hoist, guild_id, +2 more.
discord_create_scheduled_eventC
Create a new scheduled event in the server (in a voice channel, stage channel, or external location).
Inputs: name (required), scheduled_start_time (required), guild_id, location, +4 more.
discord_create_threadC
Create a new public or private thread in a text channel or attached to a message.
Inputs: name (required), channel_id (required), type, guild_id, +2 more.
discord_create_webhookC
Create a webhook in a channel.
Inputs: name (required), channel_id (required), avatar, guild_id.
discord_delete_automod_ruleC
Delete an AutoMod rule by ID.
Inputs: rule_id (required), guild_id.
discord_delete_channelC
Delete a channel or category from the server.
Inputs: channel_id (required), guild_id.
discord_delete_emojiC
Delete a custom emoji by ID or name.
Inputs: emoji_id (required), guild_id.
discord_delete_inviteB
Revoke and delete an active invite by invite code.
Inputs: invite_code (required), reason, guild_id.
discord_delete_messageC
Delete a single message by ID in a channel.
Inputs: channel_id (required), message_id (required), guild_id.
discord_delete_roleB
Delete a role from the server (hierarchy protected).
Inputs: role_id (required), guild_id.
discord_delete_scheduled_eventB
Cancel and delete a scheduled event by event ID.
Inputs: event_id (required), guild_id.
discord_delete_stickerC
Delete a custom sticker by ID.
Inputs: sticker_id (required), guild_id.
discord_delete_webhookC
Delete a webhook by ID.
Inputs: webhook_id (required), guild_id.
discord_edit_channelC
Edit channel properties (name, topic, slowmode, category parent, nsfw, bitrate).
Inputs: channel_id (required), name, nsfw, topic, +6 more.
discord_edit_guildC
Update guild server settings (name, description, verification level, vanity URL, AFK settings).
Inputs: icon, name, banner, splash, +4 more.
discord_edit_messageB
Edit a message previously sent by the bot.
Inputs: content (required), channel_id (required), message_id (required), guild_id.
discord_edit_roleC
Edit role attributes (name, color, hoist, mentionable, permissions, position).
Inputs: role_id (required), name, color, hoist, +4 more.
discord_edit_threadC
Edit thread settings (archive, lock, rename, slowmode).
Inputs: thread_id (required), name, locked, archived, +2 more.
discord_end_pollB
Immediately end and finalize a live Discord poll.
Inputs: channel_id (required), message_id (required), guild_id.
discord_end_stageB
End an active Stage Instance in a Stage channel.
Inputs: channel_id (required), guild_id.
discord_export_transcriptA
Export clean Markdown or JSON transcript of recent messages from a channel or thread (ideal for summaries or incident reports).
Inputs: channel_id (required), limit, format, guild_id.
discord_get_audit_logsC
Fetch recent Discord server audit log entries (moderation events, channel/role changes, kicks, bans).
Inputs: limit, user_id, guild_id.
discord_get_channelB
Get detailed information about a specific channel including permission overwrites.
Inputs: channel_id (required), guild_id.
discord_get_dm_historyA
Read past direct message history between the bot and a specified user.
Inputs: user_id (required), limit.
discord_get_guild_infoB
Get comprehensive server information (name, description, member count, owner, features, channels, roles).
Inputs: guild_id.
discord_get_memberB
Get full profile of a server member including roles, permissions, voice status, and timeout info.
Inputs: member_id (required), guild_id.
discord_get_messagesC
Retrieve recent messages from a channel (supports reading history, authors, attachments, and reactions).
Inputs: channel_id (required), limit, before, guild_id.
discord_get_onboardingB
Retrieve server onboarding configuration, prompts, questions, and default channels.
Inputs: guild_id.
discord_get_poll_resultsB
Retrieve current voting breakdown and results for a native Discord poll.
Inputs: channel_id (required), message_id (required), guild_id.
discord_get_userB
Fetch detailed Discord user profile (ID, username, avatar, bot flag, created date, banner, accent color).
Inputs: user_id (required).
discord_get_voice_statesB
List all members currently connected to voice channels and stage channels across the server.
Inputs: guild_id.
discord_inspect_userA
Perform a deep forensic inspection of a user/member: account age, server join age, alt-risk score, badging/flags, permissions matrix, voice state, booster tier, and timeout history.
Inputs: user_id (required), guild_id.
discord_kick_memberC
Kick a member from the server.
Inputs: member_id (required), reason, guild_id.
discord_list_automod_rulesB
List all Discord AutoMod rules configured on the server.
Inputs: guild_id.
discord_list_bansC
List currently banned users on the server.
Inputs: limit, guild_id.
discord_list_channelsB
List all categories and channels in the server with type, position, topic, and bitrate.
Inputs: guild_id.
discord_list_emojisC
List all custom emojis in the server.
Inputs: guild_id.
discord_list_forum_tagsB
List all available tags configured on a Forum channel.
Inputs: channel_id (required), guild_id.
discord_list_guildsB
List all Discord servers/guilds the bot is currently a member of.
Inputs: no named parameters.
discord_list_invitesA
List all active invites for the server with creator and usage statistics.
Inputs: guild_id.
discord_list_membersA
Search and list server members with their roles, joined date, and status.
Inputs: limit, query, guild_id.
discord_list_rolesB
List all roles in the server with position, color, hoist, mentionable status, and permissions.
Inputs: guild_id.
discord_list_scheduled_eventsB
List upcoming and active scheduled events in the Discord server.
Inputs: guild_id.
discord_list_soundboard_soundsB
List all custom soundboard sounds on the server.
Inputs: guild_id.
discord_list_stickersC
List all custom stickers in the server.
Inputs: guild_id.
discord_list_threadsB
List active and archived threads in the server or specific channel.
Inputs: guild_id, channel_id.
discord_list_webhooksB
List webhooks in the server or for a specific channel.
Inputs: guild_id, channel_id.
discord_lockdown_channelA
Emergency lockdown: Instantly prevent @everyone from sending messages in a channel or an entire category.
Inputs: channel_id (required), reason, guild_id.
discord_move_voice_memberB
Move a member to a different voice channel, or disconnect them from voice (pass channel_id: null).
Inputs: member_id (required), guild_id, channel_id.
discord_pin_messageC
Pin a message in a channel.
Inputs: channel_id (required), message_id (required), guild_id.
discord_purge_messagesB
Bulk delete multiple recent messages in a channel (up to 100), with optional user filtering.
Inputs: amount (required), channel_id (required), user_id, guild_id.
discord_quarantine_memberA
Emergency Quarantine: Apply max timeout (28 days) and remove non-default roles from a compromised or rogue account.
Inputs: member_id (required), reason, guild_id, strip_roles.
discord_remove_reactionB
Remove an emoji reaction from a message.
Inputs: emoji (required), channel_id (required), message_id (required), guild_id.
discord_remove_roleC
Remove a role from a server member.
Inputs: role_id (required), member_id (required), guild_id.
discord_search_messagesB
Search messages in a channel with keyword matching, author filters, and attachment checks.
Inputs: channel_id (required), limit, query, guild_id, +2 more.
discord_send_dmC
Send a direct message (DM) to a Discord user by user ID or username.
Inputs: content (required), user_id (required), embed.
discord_send_messageB
Send a message to a Discord text or announcement channel.
Inputs: content (required), channel_id (required), embed, guild_id.
discord_send_webhook_messageC
Send a message through a webhook URL with custom username and avatar override.
Inputs: content (required), webhook_url (required), username, avatar_url.
discord_server_deafen_voiceB
Server deafen or undeafen a member in voice/stage channels.
Inputs: deaf (required), member_id (required), reason, guild_id.
discord_server_mute_voiceC
Server mute or unmute a member in voice/stage channels.
Inputs: mute (required), member_id (required), reason, guild_id.
discord_set_channel_permissionsB
Set explicit permission overrides (allow/deny) for a role or user on a channel.
Inputs: target_id (required), channel_id (required), deny, type, +2 more.
discord_set_nicknameC
Change or reset a server member nickname.
Inputs: nickname (required), member_id (required), guild_id.
discord_set_speaker_statusA
Move a member to/from speaker status on a Stage channel (suppress or unsuppress).
Inputs: member_id (required), suppressed (required), guild_id.
discord_set_vanity_urlB
Set custom vanity invite URL code for Level 3 boosted server.
Inputs: code (required), guild_id.
discord_start_stageC
Start a live Stage Instance in a Stage channel with a specified topic.
Inputs: topic (required), channel_id (required), guild_id.
discord_timeout_memberA
Timeout (temporarily mute/isolate) a member for a duration in seconds (up to 28 days). Set duration 0 to remove timeout.
Inputs: member_id (required), duration_seconds (required), reason, guild_id.
discord_unban_memberB
Unban a previously banned user.
Inputs: user_id (required), reason, guild_id.
discord_unlock_channelB
Remove emergency lockdown: Restore @everyone permissions to send messages in a channel or category.
Inputs: channel_id (required), guild_id.
discord_unpin_messageC
Unpin a message in a channel.
Inputs: channel_id (required), message_id (required), guild_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 82 tools
Most tools target a distinct Discord resource and action, and descriptions clarify intent. A few clusters overlap, such as message retrieval vs. search vs. transcript vs. analytics, and channel creation vs. category/thread/forum creation, but these remain distinguishable.
Every tool uses the discord_ prefix and snake_case, with mostly action-oriented names. Minor noun-phrase outliers like discord_channel_analytics still fit the same predictable convention.
The 82-tool surface is far larger than practical for typical agent selection, even though Discord administration is a broad domain. Most tools correspond to real operations, but the set is heavy and difficult to navigate as a whole.
Coverage is very broad across messages, channels, roles, moderation, threads, voice, invites, events, webhooks, polls, forums, and analytics. There are minor gaps such as thread deletion, scheduled-event editing, and some webhook/automod edit operations, but core workflows are well covered.
Maintenance
Related MCP Connectors
Build Discord communities with AI: roles, channels, modules, automations and reviewed announcements.
The AI admin for Discord: manage channels, roles, members, moderation and automations.
Run Discord forms, surveys, polls and quizzes from your AI app: build, launch and analyze projects.
Related MCP Servers
- 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.11Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables interaction with Discord through natural language, including reading and sending messages, managing servers, and user actions.-
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to send and read messages in Discord channels, manage servers, channels, and roles via Discord's API.2MIT
- FlicenseAqualityCmaintenanceEnables AI clients to manage Discord servers, including channels, messages, roles, members, permissions, threads, invites, events, webhooks, and emoji, through natural language commands.551-