Discord MCP Server
Enables interaction with Discord channels, allowing for sending messages and reading recent message history through Discord's API.
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 MCP Serverread the last 10 messages from the general channel"
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 enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.
Features
Send messages to Discord channels
Read recent messages from channels
Automatic server and channel discovery
Support for both channel names and IDs
Proper error handling and validation
Related MCP server: Discord MCP Server
Prerequisites
Node.js 16.x or higher
A Discord bot token
The bot must be invited to your server with proper permissions:
Read Messages/View Channels
Send Messages
Read Message History
Setup
Clone this repository:
git clone https://github.com/yourusername/discordmcp.git
cd discordmcpInstall dependencies:
npm installCreate a
.envfile in the root directory with your Discord bot token:
DISCORD_TOKEN=your_discord_bot_token_hereBuild the server:
npm run buildUsage with Claude for Desktop
Open your Claude for Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the Discord MCP server configuration:
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["path/to/discordmcp/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token_here"
}
}
}
}Restart Claude for Desktop
Available Tools
send-message
Sends a message to a specified Discord channel.
Parameters:
server(optional): Server name or ID (required if bot is in multiple servers)channel: Channel name (e.g., "general") or IDmessage: Message content to send
Example:
{
"channel": "general",
"message": "Hello from MCP!"
}read-messages
Reads recent messages from a specified Discord channel.
Parameters:
server(optional): Server name or ID (required if bot is in multiple servers)channel: Channel name (e.g., "general") or IDlimit(optional): Number of messages to fetch (default: 50, max: 100)
Example:
{
"channel": "general",
"limit": 10
}Development
Install development dependencies:
npm install --save-dev typescript @types/nodeStart the server in development mode:
npm run devTesting
You can test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector node build/index.jsExamples
Here are some example interactions you can try with Claude after setting up the Discord MCP server:
"Can you read the last 5 messages from the general channel?"
"Please send a message to the announcements channel saying 'Meeting starts in 10 minutes'"
"What were the most recent messages in the development channel about the latest release?"
Claude will use the appropriate tools to interact with Discord while asking for your approval before sending any messages.
Security Considerations
The bot requires proper Discord permissions to function
All message sending operations require explicit user approval
Environment variables should be properly secured
Token should never be committed to version control
Channel access is limited to channels the bot has been given access to
Contributing
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
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have questions:
Check the GitHub Issues section
Consult the MCP documentation at https://modelcontextprotocol.io
Open a new issue with detailed reproduction steps
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
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Carbon Voice MCP serves as a bridge that connects AI assistants like ChatGPT, Claude, and Cursor to a user's Carbon Voice account, turning voice messages and conversations into a private, on-demand knowledge base. It provides 28 specialized tools for comprehensive voice messaging management, including creating and sending messages, accessing conversation history with instant transcription, running AI actions (summarization, TLDR generation, meeting notes), and managing workspace collaboration through folders, contacts, and team communications.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables interaction with Discord through natural language, including reading and sending messages, managing servers, and user actions.
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Discord through the REST API and real-time events, supporting message management, user info, channel operations, and more with security controls.131MIT
- 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/v-3/discordmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server