discord-server-mcp

v1.1.1
io.github.pr5ias/discord-server-mcp Checked 2 days ago Published 17 days ago

Manage Discord servers through your own bots: build, moderate and automate, with previews.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

setup_check

Start here. Shows every configured bot with the servers it is in, what to fix (permissions, role position, intents), invite links, and this tool's settings. With no bot yet it gives the steps to create one.

list_bots

List the configured bots, which one is used by default, and how many servers each is in.

add_bot

Add a Discord bot (several are supported) without the token ever going through the chat. method "box" (default) asks the app to show a private input box; if the app cannot, or the box is closed, it opens a one-time page on this computer (a http://127.0.0.1 link) where the user pastes the token in their browser. The token is checked and saved, and the bot can be used at once. Call it after the user created the bot (setup_check has the steps).

ParameterTypeDescription
dry_runbooleanShow the requests that would be made without changing anything
labelstringName to remember the bot by; default: the bot's username
methodstringbrowser = skip the box and give the page link straight away

use_bot

Choose the default bot (used when a request does not name a server). Tools still pick the right bot automatically when a server is named.

ParameterTypeDescription
bot *stringBot name or id from list_bots
dry_runbooleanShow the requests that would be made without changing anything

remove_bot

Forget a saved bot on this computer (the bot itself stays on Discord and in its servers).

ParameterTypeDescription
bot *string
confirmbooleanMust be true to really do this permanent action; without it you get a preview
dry_runbooleanShow the requests that would be made without changing anything

set_server_bot

Choose which bot to use in a server that several configured bots are in (saved on this computer). "auto" goes back to the default bot.

ParameterTypeDescription
bot *stringBot name or id, or "auto"
server *stringServer name or id
dry_runbooleanShow the requests that would be made without changing anything

enable_tools

Turn on more Discord tools for this conversation. Only the core tools are on at first; call this as soon as a task needs one of these packs: automations (role menus, welcome messages with auto-roles, support tickets and their history, the server's own slash commands, staff slash commands (/ban, /lock, /purge…), moderation logs and searching them, staff alerts, support forums, rules (when X happens do Y), member verification, scheduled messages); live (what is happening now, waiting for a reply, mention or join); jobs (background jobs: message backups and restores, roles for many members at o…

ParameterTypeDescription
packs *array

use_tool

Call a Discord tool from a pack by name, with its arguments. Use it when enable_tools turned a pack on but this app does not show the new tools yet.

ParameterTypeDescription
tool *stringTool name, e.g. create_role_menu
argumentsobject
dry_runbooleanShow the requests that would be made without changing anything

configure

Only when the user asks: change this Discord tool's own settings and save them on this computer: write mode, allowed servers, tool packs on at start, confirmation for permanent actions, default server and the bots' status. Most apply at once; tool groups, read-only mode and the status apply after restarting the app.

ParameterTypeDescription
allowed_serversarrayServer ids; [] = all
confirm_permanent_actionsboolean
default_serverstringServer id; "" = none
dry_runbooleanShow the requests that would be made without changing anything
onlinebooleanfalse = the bots stay offline
statusstring
status_textstringBot activity text, e.g. the server name; "" = none
status_typestring
tool_groupsarrayExtra tool packs to have on from the start (the core tools are always on); ["all"] = every tool, [] = core only
write_modestring

list_servers

List every Discord server the configured bots can work on (the servers they were invited to): owner, members, which bot and whether it is administrator there, plus the links to add each bot to another server.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically

get_server

Overview of a server: settings, every category with its channels (type, topic, forum tags), roles (top to bottom) and the bot's own permissions. Start here before changing anything.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

edit_server

Change server settings: name, description, icon, banner, splash, verification level, default notifications, content filter, AFK, system and rules channels.

ParameterTypeDescription
afk_channelstringVoice channel, or "none"
afk_timeout_seconds
bannerstringImage path or URL (needs boost level 2), or "none"
botstringUse this bot (name or id) instead of choosing automatically
communitybooleanTurn Community on (needs rules_channel and public_updates_channel; raises verification to low and the content filter to all members if lower). Unlocks onboarding, welcome screen, announcement channels…
content_filterstring
default_notificationsstring
descriptionstringOnly for Community servers
dry_runbooleanShow the requests that would be made without changing anything
iconstringImage path or URL, or "none" to remove
join_messagesbooleanDiscord's own welcome message in the system channel when someone joins
namestring
public_updates_channelstringCommunity servers only
reasonstringReason shown in the server's audit log
rules_channelstringCommunity servers only
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
splashstringInvite background image path or URL (needs boost level 1), or "none"
system_channelstringChannel for join messages, or "none"
verification_levelstring

create_invite

Create an invite link to a channel.

ParameterTypeDescription
channel *stringChannel name or id
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
max_age_hoursnumber0 = never expires
max_usesinteger0 = unlimited
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
temporarybooleanKick members who leave without a role
uniqueboolean

create_category

Create a channel category.

ParameterTypeDescription
name *string
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
overridesarrayPermission overrides, e.g. hide it from @everyone
positioninteger
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

create_channel

Create a text, announcement, forum, media, voice or stage channel. Inside a category it takes the category's permissions unless overrides are given. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, Man…

ParameterTypeDescription
name *string
bitrateintegerVoice: bits per second, e.g. 64000
botstringUse this bot (name or id) instead of choosing automatically
categorystringCategory name or id
dry_runbooleanShow the requests that would be made without changing anything
forum_default_reactionstringForum: unicode emoji added under every post
forum_layoutstring
forum_sortstring
forum_tagsarray
nsfwboolean
overridesarray
positioninteger
privatebooleanHide from @everyone (add overrides to let roles see it)
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
slowmode_secondsinteger
topicstringTopic, or the guidelines of a forum
typestring
user_limitintegerVoice: 0 = no limit

edit_channel

Change a channel, category or thread: name, topic, category, position, slowmode, NSFW, voice settings, forum settings.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
bitrateinteger
botstringUse this bot (name or id) instead of choosing automatically
categorystringCategory name/id, or "none" to take it out of its category
dry_runbooleanShow the requests that would be made without changing anything
forum_default_reactionstringUnicode emoji, or "none"
forum_layoutstring
forum_sortstring
namestring
nsfwboolean
positioninteger
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
slowmode_secondsinteger
sync_permissionsbooleanWith category: copy the category's permissions
topicstring
user_limitinteger

delete_channel

Delete a channel, category or thread. Cannot be undone. Channels inside a deleted category are kept, without category.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanMust be true to really do this permanent action; without it you get a preview
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

set_permissions

Set what a role, @everyone or a member can do in a channel or category (allow, deny, or remove the override). Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationComm…

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
target *stringRole name/id, "@everyone", or "user:<member>"
allowarray
botstringUse this bot (name or id) instead of choosing automatically
denyarray
dry_runbooleanShow the requests that would be made without changing anything
mergebooleanKeep the override's other permissions; false replaces it
reasonstringReason shown in the server's audit log
removebooleanDelete this override completely
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

reorder_channels

Put channels in an order. Give the full order of categories (top to bottom), or the channels of one category in order, or both.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
categoriesarrayEvery category, top to bottom
channelsarrayChannels in the order they should appear
dry_runbooleanShow the requests that would be made without changing anything
move_to_categorystringAlso move the listed channels into this category
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

set_forum_tags

Replace the whole tag list of a forum or media channel. Existing tags keep their emoji unless a new one is given.

ParameterTypeDescription
forum *string
tags *array
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

create_forum_post

Create a post in a forum or media channel, with tags, embeds, files and link buttons.

ParameterTypeDescription
forum *string
title *string
botstringUse this bot (name or id) instead of choosing automatically
contentstring
dry_runbooleanShow the requests that would be made without changing anything
embedsarray
filesarray
link_buttonsarray
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
slowmode_secondsinteger
tagsarrayTag names that exist in the forum

create_thread

Start a thread in a text or announcement channel, from a message or on its own.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
name *string
auto_archive_minutes
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
message_idstringStart the thread from this message
privatebooleanPrivate thread (text channels only)
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

read_messages

Read messages of a channel or thread (newest last). Use before/after to page. Embeds are shortened unless full is true.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
afterstringMessage id
beforestringMessage id
botstringUse this bot (name or id) instead of choosing automatically
fullbooleanShow embeds in full: every field's text, colours, footer, author, images and link buttons (to read a post completely or copy its design)
limitinteger
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

get_message

Read one message in full (content, embeds, files, reactions).

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
message_id *string
botstringUse this bot (name or id) instead of choosing automatically
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

send_message

Send a message to a channel or thread: text, embeds, files/images (local paths or URLs; show one inside an embed with image "attachment://name.png"), link buttons, a poll, a reply, and pings. Nobody is pinged unless listed in ping_roles/ping_users/ping_everyone. To correct a post without the "(edited)" mark, use replace: the new message is sent and the old ones are deleted, and its mentions show without notifying anyone again.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanWith replace, when permanent actions need confirming: true to really send and delete; without it you get a preview
contentstring
dry_runbooleanShow the requests that would be made without changing anything
embedsarray
filesarray
link_buttonsarray
notify_againbooleanWith replace: notify the pinged roles and members again (default: no, the mentions only show)
pinboolean
ping_everyoneboolean
ping_rolesarrayRoles to ping (name or id)
ping_usersarrayMembers to ping
pollobject
publishbooleanAnnouncement channels: send to following servers
replacearrayIds or links of earlier messages in this channel that this message replaces: they are deleted once it is sent (a clean repost, with no "(edited)" mark)
reply_tostringMessage id to reply to
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
silentbooleanSend without push notifications
suppress_embedsbooleanHide link previews

edit_message

Edit a message the bot sent: text, embeds, link buttons, files (replaces the attachments when given).

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
message_id *string
botstringUse this bot (name or id) instead of choosing automatically
contentstringNew text ("" clears it)
dry_runbooleanShow the requests that would be made without changing anything
embedsarray
filesarray
link_buttonsarray
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
suppress_embedsboolean

delete_messages

Delete one or more messages (up to 100). Messages older than 14 days are deleted one by one.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
message_ids *array
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanMust be true to really do this permanent action; without it you get a preview
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

pin_message

Pin or unpin a message.

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
message_id *string
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
unpinboolean

react

Add reactions to a message, or remove them (the bot's own, someone's, one emoji for everyone, or all).

ParameterTypeDescription
channel *stringChannel or thread name, id, or message link
message_id *string
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
emojisarrayUnicode emoji, <:name:id>, or a server emoji name
removestringRemove instead: mine, all reactions, every reaction of these emojis, or a user's
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
userstringFor remove "user"

list_roles

List roles (top to bottom) with colour, permissions and member count hints.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

create_role

Create a role. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationCommands, RequestToSpeak, ManageEvents, ManageThreads, CreatePublicThreads, CreatePrivateThreads, U…

ParameterTypeDescription
name *string
botstringUse this bot (name or id) instead of choosing automatically
colorstring | number
dry_runbooleanShow the requests that would be made without changing anything
icon_emojistringUnicode emoji shown next to names (needs boost level 2)
icon_imagestringImage path or URL (needs boost level 2)
mentionableboolean
permissionsarrayDefault: none of its own (members still get what @everyone allows)
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
shown_separatelybooleanShow members with this role in their own group

edit_role

Edit a role. "permissions" replaces all of them; use add_permissions/remove_permissions to change a few. Permission names: CreateInstantInvite, KickMembers, BanMembers, Administrator, ManageChannels, ManageGuild, AddReactions, ViewAuditLog, PrioritySpeaker, Stream, ViewChannel, SendMessages, SendTTSMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone, UseExternalEmojis, ViewGuildInsights, Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, UseVAD, ChangeNickname, ManageNicknames, ManageRoles, ManageWebhooks, ManageGuildExpressions, UseApplicationCommands,…

ParameterTypeDescription
role *string
add_permissionsarray
botstringUse this bot (name or id) instead of choosing automatically
colorstring | number
dry_runbooleanShow the requests that would be made without changing anything
icon_emojistringUnicode emoji, or "none"
icon_imagestringImage path or URL, or "none"
mentionableboolean
namestring
permissionsarray
reasonstringReason shown in the server's audit log
remove_permissionsarray
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
shown_separatelyboolean

delete_role

Delete a role. Cannot be undone.

ParameterTypeDescription
role *string
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanMust be true to really do this permanent action; without it you get a preview
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

list_members

List server members with their roles. Needs the Server Members Intent enabled for the bot in the Developer Portal (Bot tab).

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
limitinteger
rolestringOnly members with this role
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

get_member

Details of one member: names, roles, join date, timeout.

ParameterTypeDescription
member *stringId, mention, username, display name, or "bot"
botstringUse this bot (name or id) instead of choosing automatically
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

set_member_roles

Give roles to a member and/or take roles away.

ParameterTypeDescription
member *string
addarray
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
removearray
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

timeout_member

Time a member out (they cannot talk or react) for a while, or end a timeout with minutes 0.

ParameterTypeDescription
member *string
minutes *number0 ends the timeout; max 28 days
botstringUse this bot (name or id) instead of choosing automatically
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

kick_member

Remove a member from the server (they can rejoin with an invite).

ParameterTypeDescription
member *string
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanMust be true to really do this permanent action; without it you get a preview
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

ban_member

Ban a user from the server, optionally deleting their recent messages.

ParameterTypeDescription
user *stringMember name/id, or a user id of someone not in the server
botstringUse this bot (name or id) instead of choosing automatically
confirmbooleanMust be true to really do this permanent action; without it you get a preview
delete_message_hoursnumber
dry_runbooleanShow the requests that would be made without changing anything
reasonstringReason shown in the server's audit log
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

check_permissions

What a member or role can actually do, on the server or in one channel, after roles and channel overrides. Also answers "who can see this channel?" when only a channel is given.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
channelstring
memberstring
rolestring
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

search_messages

Search recent messages across the server's text channels, forums' active posts and threads (and their titles) for words or an author.

ParameterTypeDescription
authorstring
botstringUse this bot (name or id) instead of choosing automatically
channelsarrayOnly these channels
max_resultsinteger
per_channelintegerHow many recent messages to look at per channel
querystringWords to find (case-insensitive)
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

import_discord_template

Load a Discord server template from a link (discord.new/CODE or discord.com/template/CODE, as shared on template websites) and return it as a blueprint you can show with preview_blueprint, edit, and build with apply_blueprint. Also gives the template's name, description and how many times it was used.

ParameterTypeDescription
link *stringTemplate link or code
botstringUse this bot (name or id) instead of choosing automatically

list_templates

List the built-in server templates for apply_blueprint.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically

preview_blueprint

Show a visual preview of a server layout before building it: the channel sidebar as members will see it (categories, channel types, topics, forum tags, private areas), the roles with colours and key permissions, and a grid of who can see and write in each channel. With a server, also marks what is new, already there or moved. Use it to let the user approve or ask for changes; then apply_blueprint.

ParameterTypeDescription
blueprintobject
botstringUse this bot (name or id) instead of choosing automatically
copy_from_serverstringCopy the structure of another server a configured bot is in
discord_templatestringA Discord server template link (discord.new/… or discord.com/template/…) or its code, e.g. from a template website
filestring
serverstringCompare with this server (what is new / existing)
templatestring
update_existingboolean

export_server_structure

Export a server's roles, categories, channels, topics, forum tags and permissions as a blueprint (a backup without messages). Optionally save it to a JSON file; apply_blueprint can rebuild from it here or on another server.

ParameterTypeDescription
botstringUse this bot (name or id) instead of choosing automatically
save_tostringFile path to write the JSON to
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.

apply_blueprint

Build or complete a server from a blueprint: a built-in template (list_templates), a saved export (file), or a layout you write (blueprint: {roles, categories:[{name, overrides, channels:[{name, type, topic, slowmode, tags, overrides}]}], channels}). mode "plan" lists the steps without changing anything; "apply" does them. Only what is missing is created, matching names loosely (emojis and dashes ignored), so it is safe to run again to continue. Nothing is deleted.

ParameterTypeDescription
backgroundbooleanApply as a background job (for big layouts); follow it with job_status
blueprintobject
botstringUse this bot (name or id) instead of choosing automatically
copy_from_serverstringCopy the structure of another server a configured bot is in
discord_templatestringA Discord server template link (discord.new/… or discord.com/template/…) or its code, e.g. from a template website
dry_runbooleanShow the requests that would be made without changing anything
filestringPath of a blueprint JSON (e.g. from export_server_structure)
modestring
serverstringServer name or id. Optional when the bot is in one server or DISCORD_GUILD_ID is set.
templatestring
update_existingbooleanAlso move existing channels into the blueprint's categories, update roles that differ and reorder

job_status

Progress and result of a background job.

ParameterTypeDescription
job_id *string
botstringUse this bot (name or id) instead of choosing automatically