discord-mcp

discord-mcp

0

The Discord MCP Server enables integration with the Discord API, allowing interaction through tools for messaging and server management. It requires a Discord bot token and specific permissions to function effectively.

Discord MCP Server

An MCP (Model Context Protocol) server for Discord API integration with Claude. This server allows Claude to interact with Discord servers using tools that perform actions such as sending messages, reading messages, and managing server resources.

Prerequisites

  • Node.js 16 or higher
  • A Discord bot token (create one at the Discord Developer Portal)
  • Appropriate bot permissions:
    • Read Messages/View Channels
    • Send Messages
    • Read Message History
    • (Optional) Manage Roles, Manage Channels, etc. depending on functionality needed

Installation

  1. Clone this repository
  2. Install dependencies
  3. Build the project

Configuration

Create a .env file in the root directory with the Discord token.

Usage

  1. Start the server.
  2. Configure Claude Desktop.

Available Tools

  • Send messages to a Discord channel
  • Read recent messages
  • List available channels and servers
  • Get user information

Security Considerations

  • Keep the Discord bot token secure. Actions are limited by bot permissions.