discord-mcp
Provides tools to interact with Discord, including listing servers and channels, reading and sending messages, sending direct messages, adding reactions, searching members, and retrieving server information.
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-mcpread recent messages in #announcements"
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
A local MCP (Model Context Protocol) server for Discord, written in TypeScript. It lets MCP clients like Cursor and Claude Code read and send Discord messages through a bot account.
Tools
Tool | Description |
| List servers the bot is a member of |
| List channels in a server (with IDs and types) |
| Read recent messages from a channel, with paging via |
| Send a message to a channel, optionally as a reply |
| Send a direct message to a user by ID |
| React to a message with an emoji |
| Search server members by name prefix |
| Get server name, description, member count, owner |
Related MCP server: Discord Bridge MCP Server
Setup
1. Create a Discord bot
Go to the Discord Developer Portal and click New Application.
Under Bot, click Reset Token and copy the token — this is your
DISCORD_TOKEN.Still under Bot, enable the Privileged Gateway Intents you want:
Message Content Intent — required to read message text.
Server Members Intent — required for
search_members.
(The server still works without these, but message content will be empty and member search unavailable.)
Invite the bot to your server: under OAuth2 → URL Generator, select the
botscope, then permissions View Channels, Send Messages, Read Message History, Add Reactions. Open the generated URL and pick your server.
2. Build
npm install
npm run build3. Register with your MCP client
Cursor — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/absolute/path/to/discord-mcp/dist/index.js"],
"env": {
"DISCORD_TOKEN": "your-bot-token"
}
}
}
}Claude Code:
claude mcp add discord -e DISCORD_TOKEN=your-bot-token -- node /absolute/path/to/discord-mcp/dist/index.jsNotes
The bot connects to Discord lazily on the first tool call, so the server starts even before a token is configured.
Messages are capped at Discord's 2000-character limit.
DISCORD_BOT_TOKENis accepted as an alternative toDISCORD_TOKEN.
Why a bot token instead of email/password?
Automating a regular user account (a "self-bot") violates Discord's Terms of Service and commonly results in permanent account bans. Bot tokens are the supported way to build integrations and take about two minutes to set up.
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 Servers
- AlicenseAqualityCmaintenanceAn MCP server for interacting with Discord.Last updated1927111MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.Last updated6263MIT
- AlicenseAqualityBmaintenanceMCP server for interacting with Discord via REST API, enabling guild, channel, and message operations using a bot token.Last updated7MIT
- Alicense-qualityCmaintenanceMCP server for Discord communications, enabling listing guilds and channels, reading and sending messages, creating threads, and adding reactions.Last updatedMIT
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
A very simple remote MCP server that greets you, with a custom icon.
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/jslay88/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server