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 "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., "@discord-mcpSend 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.
๐ 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": ["C:/Users/walid/work/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": ["C:/Users/walid/work/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
This server cannot be installed
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 Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
An MCP server that integrates with Discord to provide AI-powered features.
Voice and chat for AI agents โ Discord, Teams, Meet, Slack, Zoom, Telegram, WhatsApp, NC Talk, SIP
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.8Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables 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.322MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to read and write Discord messages, search content, and compute channel statistics via a Discord bot.MIT
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/walsoup/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server