Discord MCP Server

Connect Claude Desktop to Discord using MCP

README.md

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.

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.

Open Conare