Discord

by Highlight

Recommended
668 downloads
Not rated
GitHub

About

The Discord MCP Server is a powerful tool that enables Language Learning Models (LLMs), such as Claude, to interact with Discord channels through Discord's API. This server facilitates sending and receiving messages, allowing LLMs to engage with users in real-time while ensuring…

Details

Author
Highlight
Repository
highlight-ing/highlight-discord-mcp
Downloads
668
Categories
Community, Communication
Tags
#discord

- Send messages to Discord channels
- Read recent messages from channels
- Automatic server and channel discovery
- Support for both channel names and IDs
- Proper error handling and validation

Setting up with Highlight

Follow these steps to add this server as a custom Highlight plugin:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Discord
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 path/to/discordmcp/build/index.js
    Environment
    • DISCORD_TOKEN your_discord_bot_token_here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Clone this repository:

git clone https://github.com/yourusername/discordmcp.git
cd discordmcp

2. Install dependencies:

npm install

3. Create a .env file in the root directory with your Discord bot token:

DISCORD_TOKEN=your_discord_bot_token_here

4. Build the server:

npm run build

1. Open your Claude for Desktop configuration file:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add the Discord MCP server configuration:

{
"mcpServers": {
"discord": {
"command": "node",
"args": ["path/to/discordmcp/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token_here"
}
}
}
}

3. Restart Claude for Desktop

send-message

Sends a message to a specified Discord channel. Parameters: server (optional string), channel (string), message (string)

read-messages

Reads recent messages from a specified Discord channel. Parameters: server (optional string), channel (string), limit (optional integer)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "discord": {
            "env": {
                "DISCORD_TOKEN": "your_discord_bot_token_here"
            },
            "args": [
                "path/to/discordmcp/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "DISCORD_TOKEN": "your_discord_bot_token_here"
    },
    "args": [
        "path/to/discordmcp/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "DISCORD_TOKEN": "your_discord_bot_token_here"
    },
    "args": [
        "path/to/discordmcp/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "DISCORD_TOKEN": "your_discord_bot_token_here"
    },
    "args": [
        "path/to/discordmcp/build/index.js"
    ],
    "command": "node"
}

Discord MCP Server

A Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.

Features

- Send messages to Discord channels
- Read recent messages from channels
- Automatic server and channel discovery
- Support for both channel names and IDs
- Proper error handling and validation

Prerequisites

- Node.js 16.x or higher
- A Discord bot token
- The bot must be invited to your server with proper permissions:
- Read Messages/View Channels
- Send Messages
- Read Message History

Setup

1. Clone this repository:

git clone https://github.com/yourusername/discordmcp.git
cd discordmcp

2. Install dependencies:

npm install

3. Create a .env file in the root directory with your Discord bot token:

DISCORD_TOKEN=your_discord_bot_token_here

4. Build the server:

npm run build

Usage with Claude for Desktop

1. Open your Claude for Desktop configuration file:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add the Discord MCP server configuration:

{
"mcpServers": {
"discord": {
"command": "node",
"args": ["path/to/discordmcp/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token_here"
}
}
}
}

3. Restart Claude for Desktop

Available Tools

send-message

Sends a message to a specified Discord channel.
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.