discord-mcp
Provides tools for managing Discord servers, including messages, channels, threads, roles, moderation, voice, webhooks, events, permissions, invites, emojis, and DMs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
discord-mcp
A comprehensive Discord MCP server with 66 tools. Built with TypeScript, Bun, and discord.js.
The only Discord MCP server that shows emoji reactions, thread indicators, and attachment metadata inline in message output, so your AI assistant can see the full context of every message without extra API calls.
Features
Reactions in message output ā see
[šĆ2 ā Ć1]on every messageThread indicators ā
[š§µ thread]shows which messages have active threadsAttachment metadata ā
[+1att]withget_attachmentfor URLs and file infoFile uploads ā send images, PDFs, and other files via the
filesparameterAuto-chunking ā messages over 2000 characters are split at paragraph boundaries
Incremental reads ā
afterandbeforeparams for fetching only new messages66 tools ā messages, channels, threads, roles, moderation, voice, webhooks, events, permissions, invites, emojis, DMs
Automatic rate limiting ā discord.js handles 429 responses transparently
Native runtime ā Bun/TypeScript, no Docker required
Related MCP server: MCP-Discord
Quick start
Prerequisites
Bun v1.0+
A Discord bot token (create one here)
Install
git clone https://github.com/jonasgantner/discord-mcp.git
cd discord-mcp
bun installConfigure
Set environment variables:
export DISCORD_TOKEN="your-bot-token"
export DISCORD_GUILD_ID="your-server-id" # optional, used as default for guild-scoped toolsRun
bun run index.tsThe server communicates over stdio (MCP standard).
Use with Claude Code
Add to ~/.claude/mcp-wrappers/discord.sh:
#!/bin/bash
exec bun run /path/to/discord-mcp/index.tsOr configure directly in your MCP settings.
Use with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"discord": {
"command": "bun",
"args": ["run", "/path/to/discord-mcp/index.ts"],
"env": {
"DISCORD_TOKEN": "your-bot-token",
"DISCORD_GUILD_ID": "your-server-id"
}
}
}
}Message output format
read_messages returns rich metadata on every message:
- (ID: 123456) **[username]** `2026-04-01T12:00:00Z`: ```message content``` [š§µ thread] [šĆ2 ā
Ć1] [+1att]Indicator | Meaning |
| Message has an active thread |
| Emoji reactions with counts |
| Has file attachments |
Tools (66)
Messages (7)
read_messages Ā· send_message Ā· edit_message Ā· delete_message Ā· add_reaction Ā· remove_reaction Ā· get_attachment
Users & DMs (5)
get_user_id_by_name Ā· send_private_message Ā· edit_private_message Ā· delete_private_message Ā· read_private_messages
Threads (1)
list_active_threads
Channels (7)
create_text_channel Ā· edit_text_channel Ā· delete_channel Ā· find_channel Ā· list_channels Ā· get_channel_info Ā· move_channel
Categories (4)
create_category Ā· delete_category Ā· find_category Ā· list_channels_in_category
Roles (6)
list_roles Ā· create_role Ā· edit_role Ā· delete_role Ā· assign_role Ā· remove_role
Moderation (7)
kick_member Ā· ban_member Ā· unban_member Ā· timeout_member Ā· remove_timeout Ā· set_nickname Ā· get_bans
Voice & Stage (6)
create_voice_channel Ā· create_stage_channel Ā· edit_voice_channel Ā· move_member Ā· disconnect_member Ā· modify_voice_state
Webhooks (4)
create_webhook Ā· delete_webhook Ā· list_webhooks Ā· send_webhook_message
Scheduled Events (5)
create_guild_scheduled_event Ā· edit_guild_scheduled_event Ā· delete_guild_scheduled_event Ā· list_guild_scheduled_events Ā· get_guild_scheduled_event_users
Permissions (4)
list_channel_permission_overwrites Ā· upsert_role_channel_permissions Ā· upsert_member_channel_permissions Ā· delete_channel_permission_overwrite
Invites (4)
create_invite Ā· list_invites Ā· delete_invite Ā· get_invite_details
Emojis (5)
list_emojis Ā· get_emoji_details Ā· create_emoji Ā· edit_emoji Ā· delete_emoji
Server (1)
get_server_info
Comparison
This server was built to replace SaseQ/discord-mcp (the most-starred Discord MCP server). Here's how it compares to existing options:
Feature | discord-mcp (this) | ||||
Language | TypeScript/Bun | Java/Spring Boot | TypeScript | TypeScript | TypeScript |
Tools | 66 | ~65 | 42 | 139 | 90 |
Reactions in read output | Yes | No | No | No | No |
Thread indicators | Yes | No | No | No | No |
File attachments on send | Yes | No | No | Yes | No |
Auto-chunking (>2000 chars) | Yes | No | No | No | No |
Incremental reads (after/before) | Yes | No | No | No | No |
Runtime | Native (Bun) | Docker/JVM | Node.js/Docker | Node.js | Node.js/Docker |
Docker image size | N/A (no Docker needed) | ~400MB+ | ~150MB | ā | ~73MB |
Why this server?
Other Discord MCP servers fetch messages but strip context. When your AI reads a channel, it can't see which messages have been reacted to, which have threads, or which have attachments. It has to make separate API calls for each, burning tokens and rate limit budget.
This server puts that context inline on every message, so a single read_messages call gives the full picture.
Bot permissions
The bot needs these Discord gateway intents (configured in the Developer Portal):
Server Members Intent ā for moderation and role tools
Message Content Intent ā for reading message content
Presence Intent ā optional, for voice state tools
Minimum bot permissions (OAuth2 scope bot):
Read Messages/View Channels
Send Messages
Manage Messages (for delete/edit)
Add Reactions
Read Message History
Manage Channels (for channel CRUD)
Manage Roles (for role tools)
Kick/Ban Members (for moderation)
Architecture
discord-mcp/
āāā index.ts # Entry point: MCP server + discord.js client
āāā client.ts # Client singleton, guild resolver, helpers
āāā tools/
ā āāā _types.ts # ToolDef type, chunk(), message formatter
ā āāā registry.ts # Collects all modules, registers with MCP
ā āāā messages.ts # read/send/edit/delete, reactions, attachments
ā āāā users.ts # DMs, user lookup
ā āāā threads.ts # Active thread listing
ā āāā channels.ts # Channel CRUD
ā āāā categories.ts # Category management
ā āāā roles.ts # Role CRUD + assign/remove
ā āāā moderation.ts # Kick, ban, timeout, nickname
ā āāā voice.ts # Voice/stage channels, member control
ā āāā webhooks.ts # Webhook CRUD + send
ā āāā events.ts # Scheduled events
ā āāā permissions.ts # Permission overwrites
ā āāā invites.ts # Invite management
ā āāā emojis.ts # Custom emoji CRUD
ā āāā server-info.ts # Server metadata
āāā package.jsonEach tool module exports a ToolDef[] array. The registry collects them all and handles MCP registration + error wrapping in one place. Adding a new tool is: define it in the right module, done.
Credits
Built as a replacement for SaseQ/discord-mcp, which pioneered the comprehensive Discord MCP server approach. Tool schemas are inspired by that project's design.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
AI tool directory MCP server, live since July 2026. Tools, agents, models, companies, services.
Meta Ads and Google Ads MCP server: 250+ tools for Claude, ChatGPT, Cursor and Codex.
Related MCP Servers
- AlicenseCqualityBmaintenanceA 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.46827 npm111MIT
- AlicenseBqualityDmaintenanceA Discord MCP server that enables AI assistants to interact with Discord platforms, providing functionalities like sending messages, managing channels, creating forum posts, and handling webhooks.21827 npm1MIT
- AlicenseBqualityDmaintenanceA Discord Model Context Protocol server that enables AI assistants to interact with Discord by sending messages, managing channels, handling forum posts, managing webhooks, and processing reactions.2284 npm5MIT
- AlicenseAqualityDmaintenanceAn MCP server providing 26 tools for Discord API interactions, enabling message management, moderation, channel operations, and server inspection through Claude Code, Paperclip agents, or other MCP-compatible clients.26MIT