Discord

by hanweg

126 stars
521 downloads
Not rated
GitHub

About

Integrates Discord to enable automated server management, moderation, and bot development.

Details

Author
hanweg
Repository
hanweg/mcp-discord
GitHub stars
126
Downloads
521
License
MIT License
Categories
Community, Design, Developer Tools, AI, Knowledge Base, Communication
Tags
#web, #analytics, #integration

- List and inspect Discord servers, channels, and members
- Send, read, and react to messages in channels
- Create and delete text channels
- Add and remove roles for users
- Moderate messages (delete and timeout users)

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  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.) uv
    Arguments
    • Argument 1 --directory
    • Argument 2 C:\PATH\TO\mcp-discord
    • Argument 3 run
    • Argument 4 mcp-discord
    Environment
    • DISCORD_TOKEN your_bot_token

    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. Set up your Discord bot:
- Create a new application at Discord Developer Portal
- Create a bot and copy the token
- Enable required privileged intents:
- MESSAGE CONTENT INTENT
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- Invite the bot to your server using OAuth2 URL Generator

2. Clone and install the package:


uv venv
.venv\Scripts\activate # On macOS/Linux, use: source .venv/bin/activate

uv pip install -e .

3. Configure Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

    "discord": {
"command": "uv",
"args": [
"--directory",
"C:\\PATH\\TO\\mcp-discord",
"run",
"mcp-discord"
],
"env": {
"DISCORD_TOKEN": "your_bot_token"
}
}

To install Discord Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude

list_servers

List available servers.

get_server_info

Get detailed server information.

get_channels

List channels in a server.

list_members

List server members and their roles.

get_user_info

Get detailed information about a user.

send_message

Send a message to a channel.

read_messages

Read recent message history.

add_reaction

Add a reaction to a message.

add_multiple_reactions

Add multiple reactions to a message.

remove_reaction

Remove a reaction from a message.

moderate_message

Delete messages and timeout users.

create_text_channel

Create a new text channel.

delete_channel

Delete an existing channel.

add_role

Add a role to a user.

remove_role

Remove a role from a user.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "discord": {
            "env": {
                "DISCORD_TOKEN": "your_bot_token"
            },
            "args": [
                "--directory",
                "C:\\PATH\\TO\\mcp-discord",
                "run",
                "mcp-discord"
            ],
            "command": "uv"
        }
    }
}

Linux

{
    "env": {
        "DISCORD_TOKEN": "your_bot_token"
    },
    "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
    ],
    "command": "uv"
}

Macos

{
    "env": {
        "DISCORD_TOKEN": "your_bot_token"
    },
    "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
    ],
    "command": "uv"
}

Windows

{
    "env": {
        "DISCORD_TOKEN": "your_bot_token"
    },
    "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
    ],
    "command": "uv"
}

Discord MCP Server

smithery badge
A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.

<a href="https://glama.ai/mcp/servers/wvwjgcnppa">mcp-discord MCP server</a>

Available Tools

Server Information

- list_servers: List available servers - get_server_info: Get detailed server information - get_channels: List channels in a server - list_members: List server members and their roles - get_user_info: Get detailed information about a user

Message Management

- send_message: Send a message to a channel - read_messages: Read recent message history - add_reaction: Add a reaction to a message - add_multiple_reactions: Add multiple reactions to a message - remove_reaction: Remove a reaction from a message - moderate_message: Delete messages and timeout users

Channel Management

- create_text_channel: Create a new text channel - delete_channel: Delete an existing channel

Role Management

- add_role: Add a role to a user - remove_role: Remove a role from a user

Installation

1. Set up your Discord bot:
- Create a new application at Discord Developer Portal
- Create a bot and copy the token
- Enable required privileged intents:
- MESSAGE CONTENT INTENT
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- Invite the bot to your server using OAuth2 URL Generator

2. Clone and install the package:
```bash

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.