MCP-Discord
The MCP-Discord server enables AI agents to interact with Discord through the Model Context Protocol, providing comprehensive platform management and communication features.
Message Management: Send, read (up to 100 messages), and delete messages in Discord channels.
Channel Operations: Create, edit, and delete text channels and categories with custom names, topics, and positions. Retrieve server information including channels and member counts.
Forum Support: List forum channels, create forum posts with titles, content, and tags, retrieve post details, reply to threads, and delete posts.
Reaction Handling: Add single or multiple emoji reactions to messages, remove reactions, and optionally generate AI-powered contextual reactions.
Webhook Integration: Create, edit, delete, and send messages via webhooks with custom names, avatars, and channels.
Bi-directional Communication: Listen to messages and respond automatically when mentioned via sampling capability.
Authentication & Control: Log in using bot tokens, with built-in rate limiting, message chunking, and access control (block DMs, specific guilds, and banned users).
Enables AI assistants to interact with Discord platforms, providing capabilities for channel management, message handling, forum operations, webhook management, and server information retrieval.
Serves as the runtime environment for the MCP server, required for operation with version 16.0.0 or higher.
Used for package management and installation of the MCP server, with version 7.0.0 or higher required.
Offered as an alternative package manager for development mode of the MCP server.
Used as the implementation language for the MCP server, with compilation required during the build process.
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., "@MCP-Discord send a message to #general saying 'Meeting starts in 5 minutes!'"
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
Overview
The Discord MCP Server enables AI agents to interact with the Discord platform through the Model Context Protocol (MCP). This server provides comprehensive access to Discord's features including messaging, channel management, forum operations, reactions, and webhook management.
By implementing MCP, this server allows Large Language Models (LLMs) to read and send messages, manage channels and forums, handle reactions, and interact with webhooks directly through their context window, bridging the gap between AI and Discord communities.
The server supports bi-directional communication through a Sampling feature, allowing the bot to listen to messages and respond automatically when mentioned.
Related MCP server: MCP-Discord
Features
Message Management: Send, read, and delete messages in Discord channels
Channel Operations: Create and delete text channels with custom topics
Forum Support: Create, read, reply to, and delete forum posts with tag support
Reaction Handling: Add single or multiple reactions to messages
Webhook Integration: Create, edit, delete, and send messages via webhooks
Server Information: Retrieve detailed server information including channels and member counts
Installation
Using npx (Recommended)
To use this server without installing it globally:
npx @iqai/mcp-discord --config ${DISCORD_TOKEN}Build from Source
git clone https://github.com/IQAIcom/mcp-discord.git
cd mcp-discord
pnpm install
pnpm run buildRunning with an MCP Client
Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json).
Minimal Configuration
{
"mcpServers": {
"discord": {
"command": "npx",
"args": ["-y", "@iqai/mcp-discord", "--config", "YOUR_DISCORD_TOKEN"]
}
}
}Advanced Configuration (Local Build)
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/absolute/path/to/mcp-discord/dist/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token",
"SAMPLING_ENABLED": "true",
"TRANSPORT": "stdio"
}
}
}
}Configuration (Environment Variables)
Variable | Required | Description | Default |
| Yes | Discord bot token from the Developer Portal | - |
| No | Enables bi-directional message sampling |
|
| No | Transport method: |
|
| No | Port for HTTP transport |
|
| No | Rate limit (seconds) for sampling requests per user |
|
| No | Max message chunk size for sampling responses |
|
| No | Only respond to messages that mention the bot |
|
| No | Block direct messages to the bot |
|
| No | Comma-separated list of guild IDs to block |
|
| No | Comma-separated list of user IDs to ban |
|
| No | Enable AI-generated contextual reactions |
|
| No | Timeout (ms) for reaction sampling requests |
|
| No | Fallback emoji when reaction sampling fails |
|
Prerequisites
Before using this MCP server, you need:
A Discord bot with appropriate permissions from the Discord Developer Portal
Enable these intents: Message Content, Server Members, Presence
Add the bot to your server with required permissions (Administrator recommended, or specific permissions for channels, messages, webhooks)
Usage Examples
Message Operations
"Send a message to channel #general saying 'Hello everyone!'"
"Read the last 10 messages from the announcements channel"
"Delete the message with ID 123456789 from #spam-channel"
Channel Management
"Create a new text channel called 'project-updates' with topic 'Project status updates'"
"Delete the channel #old-channel"
"Get all the server information including channel list"
Forum Operations
"List all forum channels in this server"
"Create a new forum post titled 'Feature Request' with content about the new feature"
"Reply to the forum post about bugs with a status update"
Reaction Handling
"Add a thumbs up reaction to the latest message in #feedback"
"Add multiple reactions (🎉 🚀 ✅) to the announcement message"
"Remove my reaction from that message"
Webhook Management
"Create a webhook named 'Notifications Bot' in #alerts channel"
"Send a message via webhook to post as 'System Alert'"
"Delete the unused webhook from #old-notifications"
MCP Tools
discord_add_multiple_reactions
Adds multiple emoji reactions to a Discord message at once
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| array | ✅ |
discord_add_reaction
Adds an emoji reaction to a specific Discord message
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string | ✅ |
discord_create_category
Creates a new category in a Discord server.
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| number | ||
| string |
discord_create_forum_post
Creates a new post in a Discord forum channel with optional tags
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string | ✅ | |
| array |
discord_create_text_channel
Creates a new text channel in a Discord server with an optional topic
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string |
discord_create_webhook
Creates a new webhook for a Discord channel
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string | ||
| string |
discord_delete_category
Deletes a Discord category by ID.
Parameter | Type | Required | Description |
| string | ✅ | |
| string |
discord_delete_channel
Deletes a Discord channel with an optional reason
Parameter | Type | Required | Description |
| string | ✅ | |
| string |
discord_delete_forum_post
Deletes a forum post or thread with an optional reason
Parameter | Type | Required | Description |
| string | ✅ | |
| string |
discord_delete_message
Deletes a specific message from a Discord text channel
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string |
discord_delete_webhook
Deletes an existing webhook for a Discord channel
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ||
| string |
discord_edit_category
Edits an existing Discord category (name and position).
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ||
| number | ||
| string |
discord_edit_webhook
Edits an existing webhook for a Discord channel
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ||
| string | ||
| string | ||
| string | ||
| string |
discord_get_forum_channels
Lists all forum channels in a specified Discord server (guild)
Parameter | Type | Required | Description |
| string | ✅ |
discord_get_forum_post
Retrieves details about a forum post including its messages
Parameter | Type | Required | Description |
| string | ✅ |
discord_get_server_info
Retrieves detailed information about a Discord server including channels and member count
Parameter | Type | Required | Description |
| string | ✅ |
discord_login
Logs in to Discord using the configured token
Parameter | Type | Required | Description |
| string |
discord_read_messages
Retrieves messages from a Discord text channel with a configurable limit
Parameter | Type | Required | Default | Description |
| string | ✅ | ||
| number | 50 |
discord_remove_reaction
Removes a specific emoji reaction from a Discord message
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string | ✅ | |
| string |
discord_reply_to_forum
Adds a reply to an existing forum post or thread
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ |
discord_send
Sends a message to a specified Discord text channel
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ |
discord_send_webhook_message
Sends a message to a Discord channel using a webhook
Parameter | Type | Required | Description |
| string | ✅ | |
| string | ✅ | |
| string | ✅ | |
| string | ||
| string | ||
| string |
Development
Build Project
pnpm run buildDevelopment Mode (Watch)
pnpm run watchLinting & Formatting
pnpm run lint
pnpm run formatProject Structure
src/tools/: Individual tool handlerssrc/tool-list.ts: MCP tool definitionssrc/schemas.ts: Zod validation schemassrc/sampling.ts: Bi-directional sampling featuresrc/index.ts: Server entry point
Resources
Disclaimer
This project is an unofficial tool and is not directly affiliated with Discord Inc. Users are responsible for ensuring their bot usage complies with Discord's Terms of Service and Developer Terms.
License
Available Tools
22 toolsdiscord_add_multiple_reactionsB
Adds multiple emoji reactions to a Discord message at once
Inputs: channelId (required), messageId (required), emojis (required).
discord_add_reactionC
Adds an emoji reaction to a specific Discord message
Inputs: channelId (required), messageId (required), emoji (required).
discord_create_categoryC
Creates a new category in a Discord server.
Inputs: guildId (required), name (required), position, reason.
discord_create_forum_postB
Creates a new post in a Discord forum channel with optional tags
Inputs: forumChannelId (required), title (required), content (required), tags.
discord_create_text_channelB
Creates a new text channel in a Discord server with an optional topic
Inputs: guildId (required), channelName (required), topic.
discord_create_webhookC
Creates a new webhook for a Discord channel
Inputs: channelId (required), name (required), avatar, reason.
discord_delete_categoryB
Deletes a Discord category by ID.
Inputs: categoryId (required), reason.
discord_delete_channelB
Deletes a Discord channel with an optional reason
Inputs: channelId (required), reason.
discord_delete_forum_postC
Deletes a forum post or thread with an optional reason
Inputs: threadId (required), reason.
discord_delete_messageB
Deletes a specific message from a Discord text channel
Inputs: channelId (required), messageId (required), reason.
discord_delete_webhookC
Deletes an existing webhook for a Discord channel
Inputs: webhookId (required), webhookToken, reason.
discord_edit_categoryB
Edits an existing Discord category (name and position).
Inputs: categoryId (required), name, position, reason.
discord_edit_webhookC
Edits an existing webhook for a Discord channel
Inputs: webhookId (required), webhookToken, name, avatar, +2 more.
discord_get_forum_channelsA
Lists all forum channels in a specified Discord server (guild)
Inputs: guildId (required).
discord_get_forum_postB
Retrieves details about a forum post including its messages
Inputs: threadId (required).
discord_get_server_infoB
Retrieves detailed information about a Discord server including channels and member count
Inputs: guildId (required).
discord_loginB
Logs in to Discord using the configured token
Inputs: token.
discord_read_messagesA
Retrieves messages from a Discord text channel with a configurable limit
Inputs: channelId (required), limit.
discord_remove_reactionB
Removes a specific emoji reaction from a Discord message
Inputs: channelId (required), messageId (required), emoji (required), userId.
discord_reply_to_forumB
Adds a reply to an existing forum post or thread
Inputs: threadId (required), message (required).
discord_sendC
Sends a message to a specified Discord text channel
Inputs: channelId (required), message (required).
discord_send_webhook_messageB
Sends a message to a Discord channel using a webhook
Inputs: webhookId (required), webhookToken (required), content (required), username, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool targets a distinct Discord entity or action (categories, channels, forums, webhooks, reactions, messages), with clear descriptions that differentiate even similar operations like sending vs. webhook sending.
Tools consistently use the pattern 'discord_verb_noun' (e.g., create_category, delete_message), with only minor deviations like 'login' (bare verb) and 'reply_to_forum' (preposition). Overall highly predictable.
22 tools is on the higher side for a single server; while Discord is complex, the number stretches the ideal 3-15 range and could be pruned (e.g., merging reaction tools).
Covers core CRUD for channels, forums, webhooks, and reactions, but lacks message editing, pinning, member management, or role operations, leaving notable gaps for common Discord interactions.
Maintenance
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Related MCP Servers
- AlicenseCqualityBmaintenanceA Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.46827 npm111MIT
- AlicenseBqualityDmaintenanceA Discord MCP server that enables AI assistants to interact with Discord platforms, providing functionalities like sending messages, managing channels, creating forum posts, and handling webhooks.21827 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA Discord bot server based on Model Context Protocol (MCP), enabling AI models to interact with Discord through the MCP protocol.2MIT
- AlicenseBqualityDmaintenanceA Discord MCP server that enables AI assistants to interact with the Discord platform, providing features like message sending, channel management, forum operations, reactions, and webhook management.22827 npmMIT