discord-mcp-server

discord-mcp-server

0

The Discord MCP Server is designed to facilitate interaction between large language models and Discord channels through the Model Context Protocol (MCP). It offers functionalities like sending and reading messages with robust error handling, ensuring user control and security.

Discord MCP Server

A Model Context Protocol (MCP) server specializing in enabling LLMs to interact with Discord channels. Key features include sending messages, reading recent messages, automatic server and channel discovery, and support for both names and IDs of channels.

Features

  • Send messages to Discord channels
  • Read recent messages
  • Automatic discovery of servers and channels
  • Support for channel names and IDs
  • Error handling and validation

Prerequisites

  • Node.js 16.x or higher
  • A Discord bot token

Setup

  1. Clone the repo and enter directory
  2. Install dependencies
  3. Create a .env file with your Discord bot token

Usage with Claude for Desktop

Add the Discord MCP server configuration to Claude for Desktop and restart it.

Available Tools

  • send-message: Sends a message to a Discord channel
  • read-messages: Reads messages from a Discord channel

Security Considerations

  • Requires proper Discord permissions
  • User approval before sending messages
  • Secure environment variables

License

Licensed under the MIT License.