Integrates with Discord's API to enable flexible bot development and management through simplified REST and slash comman...
Created byApr 23, 2025
Discord Raw API MCP Server
[](https://smithery.ai/server/@hanweg/mcp-discord-raw)
This MCP server provides raw Discord API access through a single flexible tool. It supports both REST API calls and slash command syntax.
<a href="https://glama.ai/mcp/servers/ct3fi5s557"><img width="380" height="200" src="https://glama.ai/mcp/servers/ct3fi5s557/badge" alt="Discord Raw API Server MCP server" /></a>
Installation
Installing via Smithery
To install Discord Raw API for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@hanweg/mcp-discord-raw):
Manual Installation
Set up your Discord bot:
- Create a new application at [Discord Developer Portal](https://discord.com/developers/applications)
- Create a bot and copy the token
- Enable required privileged intents:
- MESSAGE CONTENT INTENT
- PRESENCE INTENT
- SERVER MEMBERS INTENT
- Invite the bot to your server using OAuth2 URL Generator
Clone and install the package:
Configuration
Add this to your `claude_desktop_config.json`
Usage
REST API Style
Slash Command Style
Examples
Create a role:
Send a message:
Get server information:
Recommendations:
Put server, channel and user IDs and some examples in project knowledge to avoid having to remind the model of those, along with something like this to get it started:
"Here's how to effectively use the Discord raw API tool:
The tool is called discord_api and takes three parameters:
endpoint: Discord API endpoint (e.g., "guilds/{guild.id}/roles")
payload: Optional JSON object for the request body
Key examples I've used:
Creating roles:
Creating categories and channels:
Moving channels to categories:
Sending messages:
Assigning roles:
The tool supports the full Discord API, so you can reference the Discord API documentation for more endpoints and features. The responses include IDs and other metadata you can use for subsequent requests.
Pro tips:
Save IDs returned from creation requests to use in follow-up requests
~~Unicode emojis can be included directly in message content~~ ? Tell the model to use discord emoji like :champagne_glass: - Messages with unicode emoji hangs Claude Desktop?