Connect Claude Desktop to Discord using MCP
Discord MCP Server π
Connect Claude Desktop to Discord using MCP (Model Context Protocol).
β¨ Features
get_channelβ list channelsread_messageβ read messagessend_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

Read Messages

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
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
{"mcpServers": {"discord": {"command": "uv", "args": ["--directory", "C:/path/to/MCP DISCORD", "run", "server.py"], "env": {"DISCORD_TOKEN": "your_token"}}}}