discord (full api).com
discord (full api).com logo

Discord (Full API)

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

[![smithery badge](https://smithery.ai/badge/@hanweg/mcp-discord-raw)](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

  1. 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
  1. Clone and install the package:

Configuration

Add this to your `claude_desktop_config.json`

Usage

REST API Style

Slash Command Style

Examples

  1. Create a role:
  1. Send a message:
  1. 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:
  1. method: HTTP method ("GET", "POST", "PUT", "PATCH", "DELETE")
  1. endpoint: Discord API endpoint (e.g., "guilds/{guild.id}/roles")
  1. payload: Optional JSON object for the request body Key examples I've used:
  1. Creating roles:
  1. Creating categories and channels:
  1. Moving channels to categories:
  1. Sending messages:
  1. 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?
  • Channel types: 0 = text, 2 = voice, 4 = category, 13 = stage
  • Role colors are in decimal format (not hex)
  • Most modification endpoints use PATCH method
  • Empty payloads should be {} not null"

License

MIT License