Skip to main content
Glama
userdeter1

Discord MCP Server

by userdeter1

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

  • Create bot: https://discord.com/developers/applications

  • Enable:

    • Message Content Intent

    • Server Members Intent

  • Invite with permissions:

    • View Channels

    • Send Messages

    • Read Message History


.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

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/userdeter1/Mcp-Discord'

If you have feedback or need assistance with the MCP directory API, please join our Discord server