Discord MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
uv sync
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DISCORD_TOKEN=${DISCORD_TOKEN}" discord-mcp-e302 -- node "<FULL_PATH_TO_MCP_DISCORD>/dist/index.js"

Replace <FULL_PATH_TO_MCP_DISCORD>/dist/index.js with the actual folder you prepared in step 1.

Required:DISCORD_TOKEN
README.md

Connect Claude Desktop to Discord using MCP

Discord MCP Server πŸš€

Connect Claude Desktop to Discord using MCP (Model Context Protocol).


✨ Features

  • get_channel β€” list channels
  • read_message β€” read messages
  • send_message β€” send messages

🧠 Architecture

Claude β†’ MCP Server β†’ Discord Bot β†’ Discord

πŸ“‚ Structure

MCP DISCORD/
β”œβ”€β”€ server.py
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ list_channels.png
β”‚   β”œβ”€β”€ read_messages.png
β”‚   └── send_message.png
β”œβ”€β”€ .env
β”œβ”€β”€ pyproject.toml
└── README.md

πŸ“Έ Screenshots

List Channels

List Channels

Read Messages

Read Messages

Send Message

Send Message


βš™οΈ Setup

Install

uv sync

or

pip install mcp discord.py python-dotenv pydantic

Discord Bot


`.env`

DISCORD_TOKEN=your_token_here

Claude Config

{
  "mcpServers": {
    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:/path/to/MCP DISCORD",
        "run",
        "server.py"
      ],
      "env": {
        "DISCORD_TOKEN": "your_token"
      }
    }
  }
}

▢️ Run

uv run server.py

πŸ’¬ Examples

List channels in server 123
Read last 10 messages from channel 456
Send "Hello" to channel 456

πŸ”’ Notes

  • Don’t share your token
  • Reset it if leaked

πŸ“„ License

MIT

πŸ‘¨β€πŸ’» Author

Dioubi Issam Ai developer

Tools (3)

get_channelList channels available in the Discord server.
read_messageRead message history from a specific Discord channel.
send_messageSend messages directly to a Discord channel.

Environment Variables

DISCORD_TOKENrequiredThe authentication token for your Discord bot.

Configuration

claude_desktop_config.json
{"mcpServers": {"discord": {"command": "uv", "args": ["--directory", "C:/path/to/MCP DISCORD", "run", "server.py"], "env": {"DISCORD_TOKEN": "your_token"}}}}

Try it

β†’List all channels available in my Discord server.
β†’Read the last 10 messages from the general channel.
β†’Send a message saying 'Hello from Claude' to the announcements channel.

Frequently Asked Questions

What are the key features of Discord MCP Server?

List Discord channels. Read message history from channels. Send messages to Discord channels.

What can I use Discord MCP Server for?

Automating status updates to a Discord channel from Claude.. Summarizing recent discussions in a specific Discord channel.. Interacting with Discord communities directly through the Claude Desktop interface..

How do I install Discord MCP Server?

Install Discord MCP Server by running: uv sync

What MCP clients work with Discord MCP Server?

Discord MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Discord MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare