discordmcp
77
The Discord MCP Server integrates with Discord channels, allowing LLMs to send and read messages through the Discord API while ensuring user control and security. It includes features like server and channel discovery, error handling, and supports interaction through Claude for Desktop.
Discord MCP Server
A Model Context Protocol (MCP) server enables LLMs to interact with Discord channels by sending and reading messages via Discord's API.
Features
- Send messages to Discord channels
- Read recent messages from channels
- Automatic server and channel discovery
- Support for channel names and IDs
- Proper error handling and validation
Prerequisites
- Node.js 16.x or higher
- Discord bot token with proper permissions
Setup
- Clone and navigate to the repository
- Install dependencies
- Create a
.env
file with your Discord bot token - Build the server
Usage with Claude for Desktop
- Configure Claude for Desktop with the server
- Restart Claude for Desktop
Available Tools
- send-message: Send messages to a Discord channel
- read-messages: Read recent messages from a Discord channel
Security Considerations
- Proper Discord permissions are required
- Explicit user approval for message sending
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push and open a Pull Request
License
Licensed under the MIT License.