Discord MCP by usefulapi

v1.2.1
io.usefulapi/discord Checked 4 days ago Published 1 day ago

Read servers, channels, messages and pins; post messages as a bot in Discord.

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

discord_get_bot_user Get the bot user

Return the bot user this server connects as (id, username). Call it first to confirm the token works. Discord API: GET /users/@me.

discord_list_guilds List servers

List the Discord servers (guilds) the bot is a member of. Use the ids with the other discord_ tools. Discord API: GET /users/@me/guilds.

ParameterTypeDescription
afterstringOnly servers with an id after this one (pagination).
beforestringOnly servers with an id before this one (pagination).
limitintegerMax servers to return (1-200, default 200).
with_countsbooleanInclude approximate member and online counts.

discord_get_guild Get a server

Get one server by id: name, owner, features, and optionally approximate member counts. Discord API: GET /guilds/{guild_id}.

ParameterTypeDescription
guild_id *stringThe server id (from discord_list_guilds).
with_countsbooleanInclude approximate member and online counts.

discord_list_guild_channels List server channels

List the channels of one server (text, voice, categories, forums). Threads are not included. Discord API: GET /guilds/{guild_id}/channels.

ParameterTypeDescription
guild_id *stringThe server id (from discord_list_guilds).

discord_get_channel Get a channel

Get one channel or thread by id: type, name, parent, topic. Discord API: GET /channels/{channel_id}.

ParameterTypeDescription
channel_id *stringThe channel id (from discord_list_guild_channels).

discord_list_messages List messages

List recent messages in a channel, newest first. Use before, after, or around to page; pass only one of them. Message text is empty unless the bot has the MESSAGE_CONTENT intent. Discord API: GET /channels/{channel_id}/messages.

ParameterTypeDescription
channel_id *stringThe channel id.
afterstringOnly messages after this message id.
aroundstringMessages around this message id.
beforestringOnly messages before this message id.
limitintegerMax items to return (1-100).

discord_get_message Get a message

Get one message by id in a channel, with its author, text, embeds, and reactions. Discord API: GET /channels/{channel_id}/messages/{message_id}.

ParameterTypeDescription
channel_id *stringThe channel id.
message_id *stringThe message id (from discord_list_messages).

discord_list_pinned_messages List pinned messages

List the pinned messages of a channel, with the time each was pinned. Discord API: GET /channels/{channel_id}/messages/pins.

ParameterTypeDescription
channel_id *stringThe channel id.
beforestringPagination cursor: the pinned_at timestamp of the last pin you received.
limitintegerMax pins to return (1-50, default 50).

discord_get_user Get a user

Get a public user object by id (username, global name, avatar, bot flag). No email or private data. Discord API: GET /users/{user_id}.

ParameterTypeDescription
user_id *stringThe user id (for example the author id of a message).

discord_send_message Send a message

Post a text message to a channel as the bot. Visible to everyone in the channel. Mentions do not ping @everyone or roles. Optionally reply to a message. Discord API: POST /channels/{channel_id}/messages.

ParameterTypeDescription
channel_id *stringThe channel id to post in.
content *stringThe message text (1-2000 characters).
reply_to_message_idstringReply to this message id in the same channel.