Skip to main content
Glama
README.md
# 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

A3.6/5.0

Scored across 19 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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.

Maintenance

ActivityInactive
ResponsivenessNo issues