MCPInstall
Discord logo

Discord

by rossh121 rossh121/discord-mcp

Enables AI assistants to interact with Discord servers by providing tools for sending messages, reading history, listing channels, retrieving user information, and adding reactions using Discord.js and TypeScript.

READMEmain

Discord MCP Server

An MCP (Model Context Protocol) server for Discord API integration with Claude. This server allows Claude to interact with Discord servers via 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:
    npm install
    
  3. Build the project:
    npm run build
    

Configuration

Create a .env file in the root directory with:

DISCORD_TOKEN=your_discord_bot_token_here

Usage

  1. Start the server:

    npm start
    
  2. Configure Claude Desktop:

    • Add to Claude Desktop's configuration file:
    {
      "mcpServers": {
        "discord": {
          "command": "node",
          "args": ["path/to/discord-mcp/build/index.js"],
          "env": { "DISCORD_TOKEN": "your_discord_bot_token_here" }
        }
      }
    }
    

Available Tools

  • send-message: Send a message to a Discord channel
  • read-messages: Read recent messages from a Discord channel
  • list-channels: List available channels in the server
  • list-servers: List servers the bot has access to
  • get-user-info: Get information about a specific user

Security Considerations

  • The Discord bot token grants access to your Discord bot. Keep it secure.
  • The bot can only access servers it has been invited to.
  • Actions are limited by the bot's permissions in each server.

License

MIT

More AI Chatbot MCP servers

Similar servers from the same category.

Jentic

jentic

Enables AI assistants to discover and execute external APIs and workflows through a Python SDK that leverages the Open Agentic Knowledge repository for standardized API access and execution.

AI Chatbot

Provides a bridge to the Flyworks AI lipsync service, enabling creation of digital avatar videos synchronized with audio inputs through a simple API.

git

Official JavaScript implementation that integrates with MiniMax's multimodal capabilities for image generation, video creation, text-to-speech, and voice cloning across multiple transport modes.

APIVideo+7

Provides a bridge to Mureka.ai's music generation capabilities, enabling on-demand creation of lyrics, complete songs, and instrumental tracks without requiring specialized music production knowledge.

AI Chatbot