CommunicationBot TokenCommunity
Discord API MCP Server
Send messages, manage servers, and integrate Discord bots into your AI agent workflows.
Quick Setup
Transport: STDIO
Command: npx -y @discord/mcp-server
Environment Variables
DISCORD_BOT_TOKENExample: your_bot_token
MCP Server Configuration
Add this to your claude_desktop_config.json or Cursor MCP settings.
{
"mcpServers": {
"discord": {
"command": "npx",
"args": ["-y","@discord/mcp-server"],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token"
}
}
}
}Endpoints
GET
/channels/{channel_id}/messagesGet channel messages
POST
/channels/{channel_id}/messagesSend message
GET
/guilds/{guild_id}Get guild