Discord Raw API MCP Server
This MCP server provides raw Discord API access through a single flexible tool. It supports both REST API calls and slash command syntax.
Installation
Installing via Smithery
To install Discord Raw API for Claude Desktop automatically via Smithery:
Manual Installation
- Set up your Discord bot:
- Create a new application at Discord Developer Portal
- 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:
- method: HTTP method ("GET", "POST", "PUT", "PATCH", "DELETE")
- 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 : - 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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
봇 관리, 서버 구성 및 메시지 작업을 위해 REST API 호출과 슬래시 명령 구문을 모두 사용하여 Discord API와 직접 상호 작용할 수 있습니다.
Related Resources
Related MCP Servers
- -securityFlicense-qualityEnables LLMs to interact with Discord channels by sending and reading messages through Discord's API, with a focus on maintaining user control and security.Last updated -161129
- AsecurityAlicenseAqualityA Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.Last updated -221642MIT License
- -securityFlicense-qualityA Discord bot server that integrates with Mastra's MCP Bot component to provide intelligent assistance and answer questions about Mastra.ai through direct messages and slash commands.Last updated -1611
- -securityFlicense-qualityA secure server that enables interaction with Discord channels through JWT-authenticated API calls, allowing users to send messages, fetch channel data, search content, and perform moderation actions.Last updated -