Prepare the server locally
Run this once before adding it to Claude Code.
uv syncRegister it in Claude Code
claude mcp add -e "DISCORD_TOKEN=${DISCORD_TOKEN}" discord-mcp-e302 -- uv --directory "C:/path/to/MCP DISCORD" run server.pyReplace any placeholder paths in the command with the real path on your machine.
DISCORD_TOKENMake your agent remember this setup
discord-mcp-e302's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- List Discord channels
- Read message history from channels
- Send messages to Discord channels
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
Original README from userdeter1/Mcp-Discord
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