Discord MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
after | string | Only servers with an id after this one (pagination). |
before | string | Only servers with an id before this one (pagination). |
limit | integer | Max servers to return (1-200, default 200). |
with_counts | boolean | Include 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}.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | The server id (from discord_list_guilds). |
with_counts | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | The 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}.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | The channel id. |
after | string | Only messages after this message id. |
around | string | Messages around this message id. |
before | string | Only messages before this message id. |
limit | integer | Max 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}.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | The channel id. |
message_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | The channel id. |
before | string | Pagination cursor: the pinned_at timestamp of the last pin you received. |
limit | integer | Max 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}.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | The channel id to post in. |
content * | string | The message text (1-2000 characters). |
reply_to_message_id | string | Reply to this message id in the same channel. |