discord-mcp
Provides tools for managing Discord servers, including messages, channels, threads, roles, moderation, voice, webhooks, events, permissions, invites, emojis, and DMs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@discord-mcpshow me the latest messages in #general"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceA 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 updated22731100MIT
- 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.Last updated217311MIT
- AlicenseBqualityCmaintenanceA 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.Last updated222095MIT
- 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.Last updated26MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
An MCP server that integrates with Discord to provide AI-powered features.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonasgantner/discord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server