discordmcp

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

  1. Clone and navigate to the repository
  2. Install dependencies
  3. Create a .env file with your Discord bot token
  4. Build the server

Usage with Claude for Desktop

  1. Configure Claude for Desktop with the server
  2. 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

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push and open a Pull Request

License

Licensed under the MIT License.