D
Discord MCP Server
Connects AI assistants to Discord through MCP, enabling sending messages, listing channels, and managing guilds via a Discord bot token.
stdioLocalApiKeynpm
What This Server Exposes
Tools
send_messagelist_channelslist_guilds
Setup Instructions
- 1Create a Discord application at discord.com/developers/applications
- 2Add a bot to the application and copy the bot token
- 3Invite the bot to your server with appropriate permissions
- 4Add the Discord server config to your Claude Desktop configuration
- 5Set the DISCORD_BOT_TOKEN environment variable
- 6Restart Claude Desktop
Configuration
Claude Desktop Configuration
claude_desktop_config.json
{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-discord"
],
"env": {
"DISCORD_BOT_TOKEN": "your-discord-bot-token"
}
}
}
}Environment Variables
| Name | Required | Secret | Description |
|---|---|---|---|
| DISCORD_BOT_TOKEN | ✓ | 🔒 | Discord bot token obtained from the Discord Developer Portal |
DISCORD_BOT_TOKEN
Discord bot token obtained from the Discord Developer Portal
Required🔒 Secret
Server Manifest
No official server.json manifest found. Generate one with our MCP server.json Generator →
Compatibility
Claude DesktopClaude Code
⚠
Safety Notes
Your Discord bot token grants full access to any server the bot has joined. Store it securely and never commit it to version control. Grant only the minimum bot permissions needed for your use case.
This listing is for informational purposes only. CodexSpot is not affiliated with Discord MCP Server.