Discord MCP Server
# Discord MCP Server
A **Model Context Protocol** server that provides AI agents with secure access to Discord's REST API and Gateway events.
<a href="https://glama.ai/mcp/servers/@GustyCube/discord-mcp">
<img width="380" height="200" src="https://glama.ai/mcp/servers/@GustyCube/discord-mcp/badge" alt="Discord Server MCP server" />
</a>
## Features
š§ **120+ Discord API Tools** - Complete coverage of Discord's REST API
š **Security First** - Guild/channel allowlists, safe defaults, no accidental mentions
ā” **Real-time Events** - Gateway integration for live Discord activity
šÆ **Smart Routing** - Auto-generated tools from declarative API catalog
š¦ **Modular Packs** - Enable only the functionality you need
## Quick Start
```bash
# Clone and install
git clone https://github.com/GustyCube/discord-mcp
cd discord-mcp
npm install
# Configure your bot
cp .env.example .env
# Add your DISCORD_BOT_TOKEN and other settings
# Build and run
npm run build
npm start
```
## Documentation
š **Complete documentation available at [discord-mcp.gustycube.com](https://discord-mcp.gustycube.com/)**
### Quick Links
- [Getting Started](https://discord-mcp.gustycube.com/getting-started)
- [Configuration](https://discord-mcp.gustycube.com/configuration)
- [Available Tools](https://discord-mcp.gustycube.com/tools)
- [Security Model](https://discord-mcp.gustycube.com/security)
- [Examples](https://discord-mcp.gustycube.com/examples)
## Example: Claude Desktop Integration
Add to your `mcp.json`:
```json
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/path/to/discord-mcp/dist/index.js"],
"env": {
"DISCORD_BOT_TOKEN": "your_bot_token_here",
"ALLOW_GUILD_IDS": "123456789,987654321",
"ALLOW_CHANNEL_IDS": "111111111,222222222"
}
}
}
}
```
## What You Can Do
- **š Message Management** - Send, edit, delete messages and reactions
- **š„ User & Guild Info** - Get user profiles, guild details, member lists
- **š Channel Operations** - List channels, manage permissions, create threads
- **š Rich Content** - Send embeds, manage webhooks, upload files
- **ā” Live Events** - Subscribe to message events, member joins, etc.
- **š”ļø Moderation** - Manage bans, kicks, roles (with appropriate permissions)
## Contributing
See the [full documentation](https://discord-mcp.gustycube.com/) for development setup, API reference, and contribution guidelines.
## License
MIT License - see [LICENSE](LICENSE) file for details.TDQS
Scored across 19 tools
Each tool has a clearly distinct purpose with no ambiguity, as they target specific Discord actions like friend management, message handling, channel operations, and presence updates. The descriptions clearly differentiate between similar actions, such as discord_add_friend vs discord_remove_friend or discord_send_message vs discord_edit_message, ensuring agents can easily select the correct tool.
All tool names follow a consistent verb_noun pattern with the prefix 'discord_', such as discord_add_friend, discord_edit_message, and discord_get_channel. This uniformity makes the tools predictable and easy to understand, with no deviations in naming conventions across the set.
With 19 tools, the server is well-scoped for Discord interactions, covering a comprehensive range of actions from messaging and reactions to friend management and presence updates. Each tool earns its place by addressing specific needs without redundancy, making the count appropriate for the domain.
The tool set provides complete coverage for Discord operations, including CRUD actions for messages (send, edit, delete, get), friends (add, remove, list), channels (get, DM creation), and presence (update, clear). There are no obvious gaps, as it supports core workflows like attachment handling, message history, and search, ensuring agents can perform all essential tasks.