Discord API Claude Desktop Config
Add the Discord API MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your Bot Token in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"@discord/mcp-server"
],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token"
}
}
}
}Environment Variables
DISCORD_BOT_TOKENReplace your_bot_token with your actual discord bot token
Endpoints
GET
/channels/{channel_id}/messagesGet channel messages
POST
/channels/{channel_id}/messagesSend message
GET
/guilds/{guild_id}Get guild