Skip to main content
Glama
discord-mcp

discord-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DISCORD_TOKENYesDiscord bot authentication token.
DISCORD_MCP_APPROVALNoConfirmation mode for destructive operations (`elicitation` or `none`). Any other value stops startup.elicitation
DISCORD_MCP_TOOLSETSNoComma-separated list of enabled toolsets. Available: core, messages, reactions, threads, channels, webhooks, guild, members, roles, moderation, events, invites.core,messages
DISCORD_MCP_ALLOW_DMSNoPermits direct messages and user-scoped operations alongside an active guild allowlist (`true` or `false`). Any other value stops startup.false
DISCORD_MCP_READ_ONLYNoBlocks all mutating actions and allows read-only tools only (`true` or `false`). Any other value stops startup.false
DISCORD_MCP_FILE_ROOTSNoOptional comma-separated list of directory paths allowed for uploads. A leading ~/ is expanded to the home directory. If unset or empty, upload file access is open by default subject to built-in exclusions.
DISCORD_MCP_DOWNLOAD_DIRNoDirectory path where attachment downloads are stored. A leading ~/ is expanded to the home directory. Created recursively on first download.~/Downloads/discord-mcp
DISCORD_MCP_ALLOWED_GUILDSNoComma-separated list of allowed guild IDs. When set, operations outside these guilds are refused.
DISCORD_MCP_MAX_UPLOAD_BYTESNoMaximum upload size in bytes (defaults to 20 MiB).20971520
DISCORD_MCP_MAX_DOWNLOAD_BYTESNoMaximum download size in bytes for discord_download_attachment (defaults to 100 MiB).104857600
DISCORD_MCP_RATE_LIMIT_WAIT_MSNoMaximum wait duration in milliseconds when encountering a Discord rate limit before aborting.5000
DISCORD_MCP_REQUEST_TIMEOUT_MSNoHTTP request timeout in milliseconds for Discord REST API requests.15000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

MCP server for the Discord REST API. Enabled toolsets: core, messages, reactions, threads. Other available toolsets that can be enabled with DISCORD_MCP_TOOLSETS: channels (Create, edit, delete channels, permission overwrites, voice status); webhooks (Create, edit, delete, execute webhooks, edit webhook messages); guild (Guild settings, audit log, onboarding, welcome screen, widget); members (List, search, update, kick, mute, deafen members, prune); roles (Create, update, delete, list guild roles, member counts); moderation (Ban, unban, list bans, AutoMod rules); events (Create, update, delete scheduled events, list subscribers); invites (Create, get, delete invites, target users). If a task needs a disabled toolset, tell the user which one to enable. IDs are snowflakes passed as strings. Guild IDs come from discord_list_my_guilds; channel IDs come from the user, from message results such as discord_search_guild_messages, or from discord_list_guild_channels when the channels toolset is enabled. When DISCORD_MCP_ALLOWED_GUILDS is set, tools that target a guild, channel or message refuse targets outside those guilds, and DMs are refused unless DISCORD_MCP_ALLOW_DMS=true; discord_get_my_user, discord_get_user, discord_update_my_user and discord_list_my_connections are not limited by it, and discord_list_my_guilds returns only the allowed guilds. When approval is on, tools whose description says the user is asked to approve ask before they run. If the client cannot show approval prompts, those tools fail until the operator sets DISCORD_MCP_APPROVAL=none. Reading message text with discord_get_message, discord_list_messages or discord_search_guild_messages needs the Message Content privileged intent; without it Discord returns empty content, embeds, attachments and polls except in DMs, the bot's own messages and messages that mention the bot.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
discord_add_my_message_reactionA

Add a reaction to a message as the bot user. Specify unicode characters or custom emojis as name:id. Adding the same reaction twice is not an error. To see who already reacted, use discord_list_message_reactions_by_emoji; to remove this reaction later, use discord_delete_my_message_reaction. Bot permissions it may need: View Channel, Read Message History, Add Reactions, Use External Emojis. Changes Discord data; safe to retry.

discord_add_thread_memberA

Add another user to a thread by user ID. The thread must not be archived, and the call succeeds without change if the user is already a member. To have the bot join a thread instead, use discord_join_thread; to remove a member, use discord_delete_thread_member. Bot permissions it may need: Send Messages in Threads. Changes Discord data; safe to retry.

discord_bulk_delete_messagesA

Delete 2 to 100 messages from a guild channel in one request. The whole request fails if any message is older than 14 days or any message ID is duplicated. To delete a single message instead use discord_delete_message. Bot permissions it may need: View Channel, Manage Messages. Destructive: the user is asked to approve the exact change before it runs.

discord_create_pinA

Pin a message in a channel or thread so it appears in the channel's pinned list. Use it to keep an important message easy to find; use discord_list_pins to see what is pinned and discord_delete_pin to unpin. Returns pinned: true with the channel and message IDs. Bot permissions it may need: View Channel, Pin Messages. Changes Discord data; safe to retry.

discord_create_threadA

Create a new thread without a starter message, or start a new post in a forum or media channel. Type 10 is an announcement thread (announcement channels only), 11 is a public thread visible to anyone who can view the parent channel, and 12 is a private thread visible only to invited members and moderators; type defaults to 12 when omitted. In forum or media channels pass message to create the first post. Returns the created thread. Bot permissions it may need: Create Public Threads, Create Private Threads, Send Messages, View Channel, Embed Links. Changes Discord data and is not idempotent; check the result before retrying.

discord_create_thread_from_messageA

Create a new public or announcement thread from an existing message in a text or announcement channel. The new thread gets the same ID as the source message, so a message can have only one thread. Not supported in forum or media channels. Returns the created thread. To create a standalone thread without a starter message, use discord_create_thread. Bot permissions it may need: Create Public Threads, View Channel, Read Message History. Changes Discord data and is not idempotent; check the result before retrying.

discord_crosspost_messageA

Publish a message posted in an announcement channel (type 5) so Discord copies it into every channel that follows that channel. Use it after posting with discord_send_message in an announcement channel; regular text channels cannot be crossposted, and a message can be published only once, so a second call fails. Manage Messages is only needed for messages the bot did not send. Returns the published message. Bot permissions it may need: View Channel, Send Messages, Manage Messages. Changes Discord data and is not idempotent; check the result before retrying.

discord_delete_all_message_reactionsA

Delete all reactions across all emojis and users on a single message. This permanently clears the reaction list for everyone. To remove only a single emoji type across users, use discord_delete_all_message_reactions_by_emoji; to remove only the bot's own reaction, use discord_delete_my_message_reaction. Bot permissions it may need: View Channel, Read Message History, Manage Messages. Destructive: the user is asked to approve the exact change before it runs.

discord_delete_all_message_reactions_by_emojiA

Delete all reactions for one specified emoji on a message across every user who reacted. To remove every emoji reaction at once, use discord_delete_all_message_reactions; to remove only the bot's own reaction, use discord_delete_my_message_reaction. Bot permissions it may need: View Channel, Read Message History, Manage Messages. Destructive: the user is asked to approve the exact change before it runs.

discord_delete_messageA

Permanently delete a single message from a channel or thread. To delete between 2 and 100 recent messages at once use discord_bulk_delete_messages. Returns a confirmation object with the deleted message and channel IDs. Bot permissions it may need: View Channel, Manage Messages. Destructive: the user is asked to approve the exact change before it runs.

discord_delete_my_message_reactionA

Delete the bot's own reaction for a specific emoji on a message. This only removes the bot's reaction and does not affect other users. To delete another user's reaction, use discord_delete_user_message_reaction; to add a reaction, use discord_add_my_message_reaction. Bot permissions it may need: View Channel, Read Message History. Changes or removes existing Discord data without an approval prompt.

discord_delete_pinA

Unpin a pinned message from a channel or thread. To add a pin use discord_create_pin, and to list all current pinned messages use discord_list_pins. Returns a confirmation object with the unpinned message and channel IDs. Bot permissions it may need: View Channel, Pin Messages. Changes or removes existing Discord data without an approval prompt.

discord_delete_thread_memberA

Remove another user from a thread by user ID. Needs Manage Threads, or being the creator of a private thread; the thread must not be archived. To have the bot leave a thread instead, use discord_leave_thread; to add someone to a thread, use discord_add_thread_member. Bot permissions it may need: Manage Threads. Destructive: the user is asked to approve the exact change before it runs.

discord_delete_user_message_reactionA

Delete another user's reaction for a specific emoji on a message. This removes only the target user's reaction, leaving all other reactions untouched. To remove the bot's own reaction without moderation permissions, use discord_delete_my_message_reaction; to remove all reactions of this emoji, use discord_delete_all_message_reactions_by_emoji. Bot permissions it may need: View Channel, Read Message History, Manage Messages. Destructive: the user is asked to approve the exact change before it runs.

discord_download_attachmentA

Download a message attachment from Discord into the local download folder (DISCORD_MCP_DOWNLOAD_DIR, default ~/Downloads/discord-mcp). Requires the message ID and the specific attachment ID (attachment_id comes from the attachments of discord_get_message). Returns local file path, size, content type and SHA-256 hash. Bot permissions it may need: View Channel, Read Message History. Writes a file to the local download folder and changes nothing in Discord.

discord_edit_messageA

Edit a message the bot sent: replace its content or embeds, add uploaded files, and change the description or spoiler flag of existing attachments. Existing attachments are always kept; they cannot be removed with this tool. Discord only lets a bot edit its own messages; to post a new message use discord_send_message. Returns the updated message. Bot permissions it may need: View Channel, Read Message History, Attach Files, Embed Links. Changes or removes existing Discord data without an approval prompt.

discord_end_pollA

End a poll the bot created before its duration runs out. Discord does not let a bot end polls posted by other users. Returns the message with the poll; Discord finishes the final vote count in the background, so read the final tally later with discord_get_message once poll.results.is_finalized is true. Bot permissions it may need: View Channel. Changes or removes existing Discord data without an approval prompt.

discord_get_messageA

Fetch one message by ID from a channel or thread, with its author, content, attachments, embeds, reactions and poll. Use it when you already have the message ID; to read recent history use discord_list_messages, and to find messages by text use discord_search_guild_messages. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_get_my_userA

Fetch the bot's own user object: id, username, global name, avatar, banner and flags. Use it to confirm which account the token belongs to; to look up any other user by ID use discord_get_user. Returns the user object. No special bot permissions. Read-only; safe to retry.

discord_get_thread_memberA

Fetch membership details for one user in a thread, including their join timestamp and flags. Fails with 404 if the user is not a member. Set with_member to true to include full guild member details. To list all members of a thread, use discord_list_thread_members. No special bot permissions. Read-only; safe to retry.

discord_get_userA

Fetch any Discord user by user ID: username, global name, avatar, banner, accent color and whether the account is a bot. Use it to resolve an ID taken from a message author, a mention or a poll voter; for the bot's own account use discord_get_my_user, and for guild data such as nickname, roles and join date use discord_get_guild_member (members toolset). Returns the user object. No special bot permissions. Read-only; safe to retry.

discord_join_threadA

Add the bot user to a thread. The thread must not be archived. To remove the bot from a thread, use discord_leave_thread; to add another user, use discord_add_thread_member. No special bot permissions. Changes Discord data; safe to retry.

discord_leave_guildA

Remove the authenticated bot from a guild by server ID. The bot ceases to be a member immediately and requires a new invite URL with bot scopes to rejoin. Use this when the bot is instructed to depart a server; to kick another member use discord_delete_guild_member (members toolset). Returns deleted: true and the guild ID. No special bot permissions. Destructive: the user is asked to approve the exact change before it runs.

discord_leave_threadA

Remove the bot user from a thread. If the thread is private, the bot must be re-added or reinvited to rejoin. To join a thread, use discord_join_thread; to remove another user, use discord_delete_thread_member. No special bot permissions. Changes or removes existing Discord data without an approval prompt.

discord_list_active_guild_threadsA

List every active (unarchived) thread in a guild, public and private, newest ID first. Returns threads and the bot's thread member entry for each one it has joined. To find archived threads use discord_list_public_archived_threads or discord_list_private_archived_threads. No special bot permissions. Read-only; safe to retry.

discord_list_message_reactions_by_emojiA

List the users who reacted to a message with one emoji, ordered by user ID. Returns users and next_after; pass it as after to get the next page, and stop when a page comes back empty. To add the bot's own reaction, use discord_add_my_message_reaction. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_list_messagesA

List messages from a channel or thread, newest first. Provide before, after, or around snowflake IDs to paginate or center the search window. To fetch a specific message by ID use discord_get_message, and to search messages by text or author across an entire server use discord_search_guild_messages. Page older messages with before=next_before. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_list_my_connectionsA

List the external accounts (for example GitHub, Twitch, YouTube, Steam) linked to the account behind the credential, with each connection's name, type, verified flag and visibility. Discord requires an OAuth2 token with the connections scope for this endpoint, so a plain bot token can be refused; to list the guilds the bot is in use discord_list_my_guilds. Returns the connections array. No special bot permissions. Read-only; safe to retry.

discord_list_my_guildsA

List the Discord guilds (servers) the authenticated bot account belongs to. Use this to discover available guild IDs before calling guild-scoped tools, or to check membership counts. Page older results with before and newer results with after. Under DISCORD_MCP_ALLOWED_GUILDS, paging parameters must be omitted; every allowed guild is returned in a single call. Returns partial guild objects plus next_before and next_after cursors; both are set only when the page is full, so a full page can be followed by an empty one, and both are null when the page holds fewer guilds than limit. No special bot permissions. Read-only; safe to retry.

discord_list_my_private_archived_threadsA

List private archived threads within a channel that the bot user has joined. Returns thread objects, thread member entries, and a next_before cursor. Page older threads in descending order using before=next_before. To list all private archived threads in the channel regardless of bot participation, use discord_list_private_archived_threads. Bot permissions it may need: Read Message History. Read-only; safe to retry.

discord_list_pinsA

List the pinned messages of a channel or thread, newest pin first, each with its pin time. To pin a message use discord_create_pin, and to unpin use discord_delete_pin. Page with before=next_before while has_more is true. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_list_poll_answer_votersA

Get a paginated list of users that voted for a specific answer on a poll message. Use it after fetching a poll message with discord_get_message to see who selected each answer. Page subsequent voters with after=next_after. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_list_private_archived_threadsA

List private archived threads in a channel. Returns thread objects, thread member entries, and a next_before cursor. Page older threads in descending order by archive timestamp using before=next_before. To list public archived threads instead, use discord_list_public_archived_threads. Bot permissions it may need: Read Message History, Manage Threads. Read-only; safe to retry.

discord_list_public_archived_threadsA

List public archived threads in a channel. Returns thread objects, thread member entries, and a next_before cursor. Page older threads in descending order by archive timestamp using before=next_before. To list private archived threads instead, use discord_list_private_archived_threads. Bot permissions it may need: Read Message History. Read-only; safe to retry.

discord_list_thread_membersA

List members of a thread. Note that after and limit only apply when with_member is true, and Discord restricts this endpoint by the Server Members privileged intent. Returns thread members and next_after; page forward using after=next_after and stop when a page comes back empty. To fetch a single member, use discord_get_thread_member. No special bot permissions. Read-only; safe to retry.

discord_search_guild_messagesA

Search messages across a whole guild by text and filters (author, channel, mentions, attachments, links, embeds, pinned state, message ID range). Use discord_list_messages to read one channel in order. Results come back newest first by default; a page can hold fewer than limit, so page with offset=next_offset until it is null. A new or busy guild index can answer "not ready"; the tool then fails with a retryable error that carries the retry delay in seconds. Results omit reactions. Bot permissions it may need: View Channel, Read Message History. Read-only; safe to retry.

discord_search_threadsA

Search threads in a channel by name, tags, and time bounds. New threads take about 30 seconds to appear in search results. Returns matched threads, first messages, and member objects. Page results with offset=next_offset. To browse active threads without indexing delays, use discord_list_active_guild_threads. Bot permissions it may need: Read Message History. Read-only; safe to retry.

discord_send_messageA

Send a message to a channel or thread. It can carry text, embeds, a poll, files from the local machine, a reply to an existing message, stickers (up to 3) and flags (suppress embeds, silent). At least one of content, embeds, sticker_ids, files or poll is required. Mentions do not ping unless allowed_mentions permits it. To change a message already sent use discord_edit_message. A retry without the same nonce posts a second message. Bot permissions it may need: View Channel, Send Messages, Attach Files, Embed Links, Send Polls, Send TTS Messages, Read Message History, Send Messages in Threads, Use External Stickers, Mention Everyone. Changes Discord data and is not idempotent; check the result before retrying.

discord_trigger_typing_indicatorA

Show the typing indicator in a channel or thread for 10 seconds, for a bot that needs a few seconds to prepare an answer. Discord advises most bots not to use it. To post the reply use discord_send_message. Bot permissions it may need: View Channel, Send Messages, Send Messages in Threads. Changes Discord data and is not idempotent; check the result before retrying.

discord_update_my_userA

Update the authenticated bot's global username, avatar image, or banner image. Changes apply globally across every server the bot is in. Changing the username can randomize the discriminator. To change the bot's nickname or avatar in one guild only, use discord_update_my_guild_member (members toolset). Returns the updated bot user object. No special bot permissions. Destructive: the user is asked to approve the exact change before it runs.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 40 tools

Disambiguation4/5

Most tools have clearly distinct purposes, and descriptions explicitly cross-reference near-neighbors. However, there are several clustered families—four thread-listing tools, four reaction-deletion tools, and multiple thread-membership tools—where an agent could still pick the wrong variant without close reading.

Naming Consistency5/5

All tools use a consistent snake_case `discord_` prefix followed by a predictable verb_noun pattern. Even longer names like `discord_list_my_private_archived_threads` remain readable and follow the same convention.

Tool Count2/5

At 40 tools, the surface is heavy and includes many niche permutations such as separate archived-thread listers and several reaction-deletion variants. Some of these could be consolidated or exposed as parameters rather than separate tools.

Completeness3/5

Coverage is strong for messages, reactions, pins, and thread membership, but notable lifecycle gaps remain: no thread update/archive/delete or get-thread operation, and channel/guild-member management is referenced as a separate toolset rather than included. That leaves agents with dead ends for common Discord administration workflows.

Maintenance

ActivityNo data
ResponsivenessOutdated data