discord-node-mcp
v1.2.0MCP server for controlling Discord servers via bot token
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
discord_list_guilds List Discord Servers
List all Discord servers (guilds) the bot has access to. Returns server names, IDs, member counts, and owner information. Args: - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of guilds with id, name, memberCount, icon, ownerId
| Parameter | Type | Description |
|---|---|---|
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_guild Get Discord Server Info
Get detailed information about a specific Discord server. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Server details including name, member count, owner, and icon
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_leave_guild Leave Discord Server
Leave a Discord server (guild). The bot will no longer have access to this server. WARNING: This is a destructive action. The bot will need to be re-invited to rejoin. Args: - guild_id (string): Discord server/guild ID to leave - confirm (boolean): Must be set to true to confirm leaving Returns: Confirmation message with server details
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be set to true to confirm leaving the server |
guild_id * | string | Discord server/guild ID (snowflake) |
discord_edit_guild Edit Discord Server
Edit server settings like name, verification level, and system channel. Args: - guild_id (string): Discord server/guild ID - name (string, optional): New server name - verification_level (string, optional): 'none', 'low', 'medium', 'high', 'very_high' - default_notifications (string, optional): 'all_messages' or 'only_mentions' - afk_channel_id (string, optional): AFK voice channel ID - afk_timeout (number, optional): AFK timeout in seconds - system_channel_id (string, optional): System messages channel - system_channel_flags (object, optional): System channel behavior Return…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
afk_channel_id | string | AFK voice channel ID |
afk_timeout | integer | AFK timeout in seconds (60, 300, 900, 1800, 3600) |
default_notifications | string | Default notification settings for new members |
name | string | New server name |
system_channel_flags | object | System channel behavior flags |
system_channel_id | string | System messages channel ID |
verification_level | string | Verification level required for members |
discord_list_channels List Discord Channels
List channels visible to the bot in a Discord server. Args: - guild_id (string): Discord server/guild ID - type ('text' | 'voice' | 'category' | 'all'): Filter by channel type (default: 'all') - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of channels with id, name, type, topic, and category info
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
type | string | Filter by channel type |
discord_get_channel Get Discord Channel Info
Get detailed information about a specific channel. Args: - channel_id (string): Discord channel ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Channel details including name, type, topic, and category
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_channel Create Discord Channel
Create a new channel or category in a Discord server. Args: - guild_id (string): Discord server/guild ID - name (string): Channel name - type ('text' | 'voice' | 'category' | 'forum'): Channel type (default: 'text') - topic (string, optional): Channel topic (text/forum channels only) - parent_id (string, optional): Category ID to create channel under (not for categories) - nsfw (boolean, optional): Whether the channel is NSFW (text/forum channels only) - bitrate (number, optional): Bitrate for voice channels (8000-384000) - user_limit (number, optional): User limit for voice c…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
name * | string | Channel name |
available_tags | array | Available tags for forum posts (max 20 tags) |
bitrate | integer | Bitrate for voice channels (8000-384000) |
default_forum_layout | string | Default layout for forum channel |
default_reaction_emoji | string | Default reaction emoji for forum posts - use emoji character (e.g., '👍') or custom emoji ID |
default_sort_order | string | Default sort order for forum posts |
nsfw | boolean | Whether the channel is NSFW (text/forum channels only) |
parent_id | string | Category ID to create channel under (not for categories) |
topic | string | Channel topic (text/forum channels only) |
type | string | Channel type: 'text', 'voice', 'category', or 'forum' |
user_limit | integer | User limit for voice channels (0 = unlimited) |
discord_delete_channel Delete Discord Channel
Delete a channel from a Discord server. This action is permanent! Args: - channel_id (string): Discord channel ID to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
discord_edit_channel Edit Discord Channel
Edit a channel's properties including name, topic, category, position, and more. Args: - channel_id (string): Discord channel ID - name (string, optional): New channel name - topic (string, optional): New channel topic - parent_id (string, optional): Move to a different category (or 'none' to remove from category) - position (number, optional): New position of the channel - nsfw (boolean, optional): Whether the channel is NSFW - bitrate (number, optional): Bitrate for voice channels (8000-384000) - user_limit (number, optional): User limit for voice channels - default_reacti…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
available_tags | array | Available tags for forum posts (max 20 tags) |
bitrate | integer | Bitrate for voice channels |
default_forum_layout | string | Default layout for forum channel |
default_reaction_emoji | string | Default reaction emoji for forum posts - use emoji character (e.g., '👍') or custom emoji ID, use 'none' to remove |
default_sort_order | string | Default sort order for forum posts |
name | string | New channel name |
nsfw | boolean | Whether the channel is NSFW |
parent_id | string | Move channel to a different category (use 'none' to remove from category) |
position | integer | New position of the channel |
topic | string | New channel topic |
user_limit | integer | User limit for voice channels |
discord_set_channel_permissions Set Channel Permissions
Set permission overrides for a role or member on a channel. Common permission names: - View: ViewChannel - Messages: SendMessages, ReadMessageHistory, ManageMessages, EmbedLinks, AttachFiles, AddReactions - Voice: Connect, Speak, Stream, MuteMembers, DeafenMembers, MoveMembers - Threads: CreatePublicThreads, CreatePrivateThreads, SendMessagesInThreads - Management: ManageChannels, ManageRoles, ManageWebhooks Args: - channel_id (string): Discord channel ID - target_id (string): Role or User ID to set permissions for - target_type ('role' | 'member'): Whether target is a role or member…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
target_id * | string | Role or User ID to set permissions for |
target_type * | string | Whether target is a role or member |
allow | array | Permissions to allow (e.g., ['ViewChannel', 'SendMessages', 'ReadMessageHistory']) |
deny | array | Permissions to deny (e.g., ['SendMessages', 'AddReactions']) |
discord_remove_channel_permissions Remove Channel Permission Overrides
Remove all permission overrides for a role or member on a channel. Args: - channel_id (string): Discord channel ID - target_id (string): Role or User ID to remove permission overrides for Returns: Confirmation of removal
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
target_id * | string | Role or User ID to remove permission overrides for |
discord_get_channel_permissions Get Channel Permissions
Get all permission overrides for a channel. Args: - channel_id (string): Discord channel ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of permission overrides with allow/deny for each role/member
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_sync_channel_permissions Sync Channel Permissions with Category
Sync a channel's permissions with its parent category. Args: - channel_id (string): Discord channel ID Returns: Confirmation of sync
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
discord_create_forum_post Create Discord Forum Post
Create a new post (thread) in a Discord forum channel. To reply within an existing forum post, use discord_send_message with the post's ID as the channel_id. Args: - channel_id (string): Forum channel ID to create the post in - name (string): Post title (max 100 characters) - content (string, optional): Text for the opening message (max 2000 characters) - embeds, files, link_buttons (arrays, optional): Rich content for the opening message - allowed_mentions (object, optional): Limit notifications to the supplied role and user IDs - applied_tags (string[], optional): Tag IDs to ap…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Forum channel ID to create the post in |
name * | string | Post title (max 100 characters) |
allowed_mentions | object | Limit pings to the supplied user and role IDs. An empty object suppresses all pings. |
applied_tags | array | Tag IDs to apply to the post (max 5). Tag IDs come from the forum channel's available_tags |
auto_archive_duration | string | Minutes of inactivity before the post auto-archives: '60' (1h), '1440' (1 day), '4320' (3 days), '10080' (1 week) |
content | string | Message text (up to 2000 characters) |
embeds | array | Rich embeds (up to 10, 6000 text characters across all embeds) |
files | array | Base64 attachments (up to 10 files and 20 MiB of decoded data per call) |
link_buttons | array | Link buttons that open URLs, with up to 5 buttons per row |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_list_forum_posts List Discord Forum Posts
List posts (threads) in a Discord forum channel. Args: - channel_id (string): Forum channel ID to list posts from - include_archived (boolean): Also include archived/closed posts (default: false) - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of forum posts with their tags and status
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Forum channel ID to list posts from |
include_archived | boolean | Whether to also include archived (closed) posts |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_forum_post Get Discord Forum Post
Get details of a single forum post (thread). Args: - post_id (string): Forum post (thread) ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: The forum post details including tags, status, and message count
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Forum post (thread) ID |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_edit_forum_post Edit Discord Forum Post
Edit or moderate a forum post (thread): rename, retag, archive, lock, or pin. Args: - post_id (string): Forum post (thread) ID - name (string, optional): New post title (max 100 characters) - applied_tags (string[], optional): Replace the post's tags with these tag IDs (max 5) - archived (boolean, optional): true to archive/close, false to reopen - locked (boolean, optional): true to lock (mods only can post), false to unlock - pinned (boolean, optional): true to pin to top of forum, false to unpin - auto_archive_duration ('60' | '1440' | '4320' | '10080', optional): Minutes bef…
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Forum post (thread) ID |
applied_tags | array | Replace the post's tags with this set of tag IDs (max 5). Supplying this replaces all existing tags |
archived | boolean | Set true to archive (close) the post, false to reopen it |
auto_archive_duration | string | Minutes of inactivity before the post auto-archives: '60' (1h), '1440' (1 day), '4320' (3 days), '10080' (1 week) |
locked | boolean | Set true to lock the post (only moderators can send messages), false to unlock |
name | string | New post title (max 100 characters) |
pinned | boolean | Set true to pin the post to the top of the forum, false to unpin |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_delete_forum_post Delete Discord Forum Post
Permanently delete a forum post (thread) and all its messages. Args: - post_id (string): Forum post (thread) ID to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
post_id * | string | Forum post (thread) ID to delete |
discord_send_message Send Discord Message
Send message text, rich embeds, files, or link buttons to a Discord channel. Args: - channel_id (string): Discord channel ID - content (string, optional): Message text (max 2000 characters) - reply_to (string, optional): Message ID to reply to - allowed_mentions (object, optional): Limit notifications to the supplied role IDs, user IDs, or reply author Returns: The sent message details including ID
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
allowed_mentions | object | |
content | string | Message text (up to 2000 characters) |
embeds | array | Rich embeds (up to 10, 6000 text characters across all embeds) |
files | array | Base64 attachments (up to 10 files and 20 MiB of decoded data per call) |
link_buttons | array | Link buttons that open URLs, with up to 5 buttons per row |
reply_to | string | Optional message ID to reply to |
discord_get_messages Get Discord Messages
Retrieve messages from a Discord channel. Args: - channel_id (string): Discord channel ID - limit (number): Number of messages to retrieve (1-100, default: 20) - before (string, optional): Get messages before this message ID - after (string, optional): Get messages after this message ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of messages with content, author, timestamp, and attachment details including IDs, descriptions, and spoiler state
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
after | string | Get messages after this message ID |
before | string | Get messages before this message ID |
limit | integer | Number of messages to retrieve (1-100) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_delete_message Delete Discord Message
Delete a message from a Discord channel. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | Discord message ID (snowflake) |
discord_edit_message Edit Discord Message
Edit a message sent by the bot. Append new files or edit existing attachment descriptions and spoiler flags. Existing attachments are kept. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID to edit - content (string or null, optional): New message text, or null to clear it - embeds (array, optional): Replace embeds, with an empty array to clear them - link_buttons (array, optional): Replace link buttons, with an empty array to clear them - attachment_updates (array, optional): Change the description or spoiler flag of an attachment by ID Returns:…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | Discord message ID (snowflake) |
allowed_mentions | object | Limit pings to the supplied user and role IDs. An empty object suppresses all pings. |
attachment_updates | array | Edit descriptions or spoiler flags on existing attachments and keep every file |
content | New message text, or null to clear existing text | |
embeds | array | Rich embeds (up to 10, 6000 text characters across all embeds) |
files | array | Base64 attachments (up to 10 files and 20 MiB of decoded data per call) |
link_buttons | array | Link buttons that open URLs, with up to 5 buttons per row |
discord_add_reaction Add Reaction to Message
Add an emoji reaction to a message. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID to react to - emoji (string): Emoji to react with (e.g., '👍' or custom emoji format) Returns: Confirmation of reaction added
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
emoji * | string | Emoji to react with (unicode emoji or custom emoji format) |
message_id * | string | Discord message ID (snowflake) |
discord_remove_reaction Remove Reaction from Message
Remove the bot's emoji reaction from a message. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID - emoji (string): Emoji to remove Returns: Confirmation of reaction removed
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
emoji * | string | Emoji reaction to remove |
message_id * | string | Discord message ID (snowflake) |
discord_pin_message Pin Discord Message
Pin a message in a channel. In a guild channel the bot needs PIN_MESSAGES. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID to pin - reason (string, optional): Reason visible in the guild audit log Returns: Confirmation of message pinned
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | Discord message ID (snowflake) |
reason | string | Reason visible in the guild audit log |
discord_unpin_message Unpin Discord Message
Unpin a message in a channel. In a guild channel the bot needs PIN_MESSAGES. Args: - channel_id (string): Discord channel ID - message_id (string): Message ID to unpin - reason (string, optional): Reason visible in the guild audit log Returns: Confirmation of message unpinned
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | Discord message ID (snowflake) |
reason | string | Reason visible in the guild audit log |
discord_get_pinned_messages Get Pinned Messages
Get pinned messages in a channel. In a guild channel the bot needs VIEW_CHANNEL and READ_MESSAGE_HISTORY to see pins. Args: - channel_id (string): Discord channel ID - limit (number, optional): Maximum pins per page (1-50, default: 50). Supply this to receive pagination metadata. - before (string, optional): Get messages pinned before this ISO 8601 timestamp. Use next_before from the previous page. - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: A list of pinned messages by default. Supplying limit or before adds pin timestamps and pagination metad…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
before | string | ISO 8601 pin timestamp. Use next_before from the previous page. |
limit | integer | Maximum number of pins in a page. Supply a limit to receive pagination metadata. |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_list_members List Discord Members
List members in a Discord server. Args: - guild_id (string): Discord server/guild ID - limit (number): Maximum number of members (1-100, default: 20) - after (string, optional): Pass the highest user ID from the previous page - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of members with username, nickname, roles, join date
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
after | string | Get members after this user ID (for pagination) |
limit | integer | Maximum number of members to return |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_member Get Discord Member
Get detailed information about a specific member. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Member details including username, nickname, roles, join date
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_move_member Move Member to Voice Channel
Move a member to a different voice channel or disconnect them from voice. The member must currently be connected to a voice channel to be moved. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID to move - channel_id (string | null): Target voice channel ID, or null to disconnect Returns: Confirmation of move or disconnect
| Parameter | Type | Description |
|---|---|---|
channel_id * | Target voice channel ID, or null to disconnect the user | |
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
discord_set_nickname Set Member Nickname
Set or clear a member's nickname. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID - nickname (string, optional): New nickname (empty/null to reset) Returns: Confirmation of nickname change
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
nickname * | New nickname (max 32 chars) or null to clear | |
user_id * | string | Discord user ID (snowflake) |
discord_list_roles List Discord Roles
List all roles in a Discord server. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of roles with name, color, position, permissions
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_add_role Add Role to Member
Add a role to a Discord member. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID - role_id (string): Discord role ID to add Returns: Confirmation of role added
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
role_id * | string | Discord role ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
discord_remove_role Remove Role from Member
Remove a role from a Discord member. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID - role_id (string): Discord role ID to remove Returns: Confirmation of role removed
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
role_id * | string | Discord role ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
discord_create_role Create Discord Role
Create a new role in a Discord server. Args: - guild_id (string): Discord server/guild ID - name (string): Role name - color (number, optional): Role color as decimal integer (e.g., 16711680 for red) - mentionable (boolean): Whether the role can be mentioned (default: false) - hoist (boolean): Whether to display role members separately (default: false) Returns: The created role's details
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
name * | string | Role name |
color | integer | Role color as decimal (e.g., 16711680 for red) |
hoist | boolean | Whether to display role members separately |
mentionable | boolean | Whether the role can be mentioned |
permissions | array | Array of permission names (e.g., ['SendMessages', 'ManageChannels']) |
discord_delete_role Delete Discord Role
Delete a role from a Discord server. This action is permanent! Args: - guild_id (string): Discord server/guild ID - role_id (string): Discord role ID to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
role_id * | string | Discord role ID (snowflake) |
discord_edit_role Edit Discord Role
Edit a role's properties including name, color, and permissions. Common permission names: - Admin: Administrator (grants all permissions) - General: ManageGuild, ManageRoles, ManageChannels, KickMembers, BanMembers, ModerateMembers - Messages: SendMessages, ManageMessages, EmbedLinks, AttachFiles, ReadMessageHistory, MentionEveryone - Voice: Connect, Speak, MuteMembers, DeafenMembers, MoveMembers, Stream - Other: ManageEmojisAndStickers, ManageWebhooks, ManageEvents, ViewAuditLog Args: - guild_id (string): Discord server/guild ID - role_id (string): Discord role ID to edit - name (stri…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
role_id * | string | Discord role ID (snowflake) |
color | integer | New role color as decimal |
hoist | boolean | Whether to display role members separately |
mentionable | boolean | Whether the role can be mentioned |
name | string | New role name |
permissions | array | New permission names array |
discord_set_role_positions Set Role Positions
Reorder role hierarchy by setting role positions. Higher position = more authority in the hierarchy. The @everyone role is always at position 0. Roles can only manage other roles below them in the hierarchy. IMPORTANT: The bot can only move roles that are below its own highest role in the hierarchy. Args: - guild_id (string): Discord server/guild ID - positions (array): Array of objects with: - role_id (string): Discord role ID - position (number): New position for the role (higher = more authority) Returns: Confirmation of position changes
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
positions * | array | Array of role positions to set |
discord_kick_member Kick Discord Member
Kick a member from a Discord server. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID to kick - reason (string, optional): Reason for kick (visible in audit log) Returns: Confirmation of kick
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
reason | string | Reason for kick (visible in audit log) |
discord_ban_member Ban Discord Member
Ban a member from a Discord server. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID to ban - reason (string, optional): Reason for ban (visible in audit log) - delete_message_days (number): Days of messages to delete (0-7, default: 0) Returns: Confirmation of ban
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
delete_message_days | integer | Number of days of messages to delete (0-7) |
reason | string | Reason for ban (visible in audit log) |
discord_unban_member Unban Discord Member
Remove a ban from a user. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID to unban Returns: Confirmation of unban
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
discord_timeout_member Timeout Member
Timeout (mute) a member for a specified duration. They cannot send messages, react, or join voice. Args: - guild_id (string): Discord server/guild ID - user_id (string): Discord user ID to timeout - duration_minutes (number): Timeout duration in minutes (0 to remove, max 40320 = 28 days) - reason (string, optional): Reason for timeout (visible in audit log) Returns: Confirmation of timeout
| Parameter | Type | Description |
|---|---|---|
duration_minutes * | integer | Timeout duration in minutes (max 28 days = 40320) |
guild_id * | string | Discord server/guild ID (snowflake) |
user_id * | string | Discord user ID (snowflake) |
reason | string | Reason for timeout |
discord_list_bans List Bans
List all banned users in a server. Args: - guild_id (string): Discord server/guild ID - limit (number): Number of bans to return (1-1000, default 100) - response_format ('json' | 'markdown'): Output format Returns: List of banned users with reasons
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
limit | integer | Number of bans to return (1-1000) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_prune_members Prune Members
Remove inactive members from the server. Args: - guild_id (string): Discord server/guild ID - days (number): Days of inactivity required (1-30) - include_roles (string[], optional): Role IDs to include in prune (by default only members without roles) - dry_run (boolean): If true, returns count without actually pruning (default true) Returns: Number of members pruned (or would be pruned if dry_run)
| Parameter | Type | Description |
|---|---|---|
days * | integer | Number of days of inactivity (1-30) |
guild_id * | string | Discord server/guild ID (snowflake) |
dry_run | boolean | If true, only returns count without actually pruning |
include_roles | array | Role IDs to include in prune (normally members with roles are excluded) |
discord_get_audit_log Get Audit Log
Get Discord audit log entries with actor, target, changes, and event details. Requires View Audit Log. Filter by user ID and by event code or name, including CHANNEL_POSITION_UPDATE and ROLE_POSITION_UPDATE. Discord can merge repeated actions into one entry, with options.count giving the combined count for these events. Use before for older entries or after for newer entries. JSON returns an array by default. Set include_pagination or supply a cursor to get an object with entries and a continuation cursor when the page is full.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
action_type | Filter by Discord audit event code or name, such as CHANNEL_POSITION_UPDATE | |
after | Return newer entries after this audit log ID, oldest first. Use '0' to start at the oldest entry. | |
before | string | Return older entries before this audit log ID, newest first |
include_pagination | boolean | Include a continuation cursor with the results even when no before or after cursor is supplied |
limit | integer | Number of entries to retrieve |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
user_id | string | Filter by user who performed actions |
discord_list_automod_rules List Auto Moderation Rules
List all auto moderation rules for a server. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: List of auto moderation rules
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_automod_rule Get Auto Moderation Rule
Get details of a specific auto moderation rule. Args: - guild_id (string): Discord server/guild ID - rule_id (string): Auto moderation rule ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Auto moderation rule details
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
rule_id * | string | Auto moderation rule ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_automod_rule Create Auto Moderation Rule
Create a new auto moderation rule for a server. Args: - guild_id (string): Discord server/guild ID - name (string): Rule name - event_type ('message_send'): Event that triggers the rule - trigger_type ('keyword' | 'spam' | 'keyword_preset' | 'mention_spam'): Trigger type - trigger_metadata (object, optional): Trigger configuration (keyword_filter, presets, etc.) - actions (array): Actions to take (block_message, send_alert_message, timeout) - enabled (boolean): Whether rule is enabled (default: true) - exempt_roles (array, optional): Role IDs exempt from this rule - exempt_c…
| Parameter | Type | Description |
|---|---|---|
actions * | array | Actions to take when rule is triggered |
event_type * | string | Event type that triggers the rule |
guild_id * | string | Discord server/guild ID (snowflake) |
name * | string | Rule name |
trigger_type * | string | Type of content that triggers the rule |
enabled | boolean | Whether the rule is enabled |
exempt_channels | array | Channels exempt from this rule |
exempt_roles | array | Roles exempt from this rule |
trigger_metadata | object | Trigger configuration |
discord_edit_automod_rule Edit Auto Moderation Rule
Edit an existing auto moderation rule. Args: - guild_id (string): Discord server/guild ID - rule_id (string): Auto moderation rule ID - name (string, optional): New rule name - trigger_metadata (object, optional): New trigger configuration - actions (array, optional): New actions - enabled (boolean, optional): Enable/disable rule - exempt_roles (array, optional): New exempt roles - exempt_channels (array, optional): New exempt channels Returns: Updated rule details
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
rule_id * | string | Auto moderation rule ID (snowflake) |
actions | array | |
enabled | boolean | |
event_type | string | |
exempt_channels | array | |
exempt_roles | array | |
name | string | |
trigger_metadata | object |
discord_delete_automod_rule Delete Auto Moderation Rule
Delete an auto moderation rule from a server. Args: - guild_id (string): Discord server/guild ID - rule_id (string): Auto moderation rule ID to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
rule_id * | string | Auto moderation rule ID (snowflake) |
discord_list_emojis List Emojis
List all custom emojis in a server. Args: - guild_id (string): Discord server/guild ID - response_format ('json' | 'markdown'): Output format Returns: List of emojis with name, ID, and whether animated
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_emoji Create Emoji
Create a custom emoji in a server. The bot needs CREATE_GUILD_EXPRESSIONS. Args: - guild_id (string): Discord server/guild ID - name (string): Emoji name (2-32 chars, alphanumeric and underscores) - image_url (string): URL of image (PNG, JPG, GIF under 256KB) - roles (string[], optional): Role IDs that can use this emoji Returns: Created emoji details
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
image_url * | string | URL of the image to use for the emoji |
name * | string | Emoji name (2-32 alphanumeric characters) |
discord_delete_emoji Delete Emoji
Delete a custom emoji from a server. Args: - guild_id (string): Discord server/guild ID - emoji_id (string): Discord emoji ID Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
emoji_id * | string | Discord emoji ID (snowflake) |
guild_id * | string | Discord server/guild ID (snowflake) |
discord_list_stickers List Stickers
List all custom stickers in a server. Args: - guild_id (string): Discord server/guild ID - response_format ('json' | 'markdown'): Output format Returns: List of stickers with name, description, and format
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_delete_sticker Delete Sticker
Delete a custom sticker from a server. Args: - guild_id (string): Discord server/guild ID - sticker_id (string): Discord sticker ID Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
sticker_id * | string | Discord sticker ID (snowflake) |
discord_list_webhooks List Webhooks
List webhooks in a guild or channel. Args: - guild_id (string, optional): List all webhooks in the server - channel_id (string, optional): List webhooks for a specific channel - response_format ('json' | 'markdown'): Output format Returns: List of webhooks with name, channel, and URL
| Parameter | Type | Description |
|---|---|---|
channel_id | string | Channel ID to list webhooks for a specific channel |
guild_id | string | Guild ID to list all webhooks in the server |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_webhook Create Webhook
Create a webhook in a channel. Args: - channel_id (string): Discord channel ID - name (string): Webhook name - avatar_url (string, optional): Avatar image URL Returns: Created webhook details including URL
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
name * | string | Webhook name |
avatar_url | string | URL of avatar image for the webhook |
discord_edit_webhook Edit Webhook
Edit an existing webhook. Args: - webhook_id (string): Discord webhook ID - name (string, optional): New webhook name - channel_id (string, optional): Move webhook to different channel Returns: Updated webhook details
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Discord webhook ID (snowflake) |
channel_id | string | Move webhook to a different channel |
name | string | New webhook name |
discord_delete_webhook Delete Webhook
Delete a webhook. Args: - webhook_id (string): Discord webhook ID Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
webhook_id * | string | Discord webhook ID (snowflake) |
discord_list_invites List Invites
List all active invites in a server. Args: - guild_id (string): Discord server/guild ID - response_format ('json' | 'markdown'): Output format Returns: List of invites with code, uses, max uses, expiration
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_invite Create Invite
Create an invite link for a channel. Supply target_user_ids for an invite restricted to specific Discord users, and role_ids to grant roles on acceptance. Either option creates a new invite code. Args: - channel_id (string): Discord channel ID - max_age (number): Duration in seconds (0 = never expires, max 604800 = 7 days) - max_uses (number): Max uses (0 = unlimited) - temporary (boolean): Kick members when they disconnect if not assigned a role - unique (boolean): Create new unique invite vs reuse existing - target_user_ids (string[], optional): Only these users can see and acce…
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
max_age | integer | Invite expiration in seconds (0 = never, max 604800 = 7 days) |
max_uses | integer | Max uses (0 = unlimited) |
role_ids | array | Roles granted to users who accept the invite. Requires Manage Roles and sufficient role hierarchy. |
target_user_ids | array | Limit acceptance of the invite to these Discord users (1-1000 IDs) |
temporary | boolean | Whether membership is temporary |
unique | boolean | Whether to create a unique invite. Invites with target users or roles always use a new code. |
discord_list_invite_target_users List Invite Target Users
List the Discord users allowed to accept a targeted invite. Available to the inviter or callers with Manage Server or View Audit Log.
| Parameter | Type | Description |
|---|---|---|
invite_code * | string | Discord invite code |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_edit_invite_target_users Edit Invite Target Users
Add or remove specific users on an existing targeted invite. Available to the inviter or callers with Manage Server. Removing a user affects future acceptance of the invite. Use member management to remove roles or memberships already granted.
| Parameter | Type | Description |
|---|---|---|
action * | string | Add users to or remove users from the invite's target list |
invite_code * | string | Discord invite code |
user_ids * | array | Discord user IDs to add or remove (1-1000 IDs) |
discord_delete_invite Delete Invite
Delete an invite by its code. Args: - invite_code (string): The invite code to delete Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
invite_code * | string | Invite code to delete |
discord_list_events List Scheduled Events
List all scheduled events in a server. Args: - guild_id (string): Discord server/guild ID - response_format ('json' | 'markdown'): Output format Returns: List of events with name, time, location, and status
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_create_event Create Scheduled Event
Create a scheduled event in a server. The bot needs CREATE_EVENTS. Args: - guild_id (string): Discord server/guild ID - name (string): Event name - description (string, optional): Event description - scheduled_start_time (string): ISO8601 timestamp for start - scheduled_end_time (string, optional): ISO8601 timestamp for end - entity_type ('stage' | 'voice' | 'external'): Type of event - channel_id (string, optional): Channel ID for stage/voice events - location (string, optional): Location for external events Returns: Created event details
| Parameter | Type | Description |
|---|---|---|
entity_type * | string | Event type: stage instance, voice channel, or external location |
guild_id * | string | Discord server/guild ID (snowflake) |
name * | string | Event name |
scheduled_start_time * | string | ISO8601 timestamp for event start |
channel_id | string | Channel ID for stage/voice events |
description | string | Event description |
entity_metadata | object | Metadata for external events (location) |
scheduled_end_time | string | ISO8601 timestamp for event end (required for external events) |
discord_delete_event Delete Scheduled Event
Delete a scheduled event from a server. Args: - guild_id (string): Discord server/guild ID - event_id (string): Discord scheduled event ID Returns: Confirmation of deletion
| Parameter | Type | Description |
|---|---|---|
event_id * | string | Discord scheduled event ID (snowflake) |
guild_id * | string | Discord server/guild ID (snowflake) |
discord_get_welcome_screen Get Welcome Screen
Get the welcome screen configuration for a server. Requires the server to have Community features enabled. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Welcome screen settings including description and channels
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_edit_welcome_screen Edit Welcome Screen
Edit the welcome screen configuration for a server. Requires the server to have Community features enabled and bot must have MANAGE_GUILD permission. Args: - guild_id (string): Discord server/guild ID - enabled (boolean, optional): Enable/disable the welcome screen - description (string, optional): Server description (max 140 chars) - welcome_channels (array, optional): Up to 5 channels to show (channel_id, description, emoji) Returns: Updated welcome screen settings
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
description | string | The server description shown in the welcome screen (max 140 chars) |
enabled | boolean | Whether the welcome screen is enabled |
welcome_channels | array | Welcome screen channels (max 5) |
discord_get_onboarding Get Server Onboarding
Get the onboarding configuration for a server. Onboarding guides new members through a questionnaire to customize their experience. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Onboarding settings including prompts, options, and default channels
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_edit_onboarding Edit Server Onboarding
Edit the onboarding configuration for a server. Configure prompts/questions that new members answer to customize their server experience. Each prompt can assign roles or show channels based on member selections. Args: - guild_id (string): Discord server/guild ID - prompts (array, optional): Onboarding prompts with options - default_channel_ids (array, optional): Channels shown to all new members - enabled (boolean, optional): Enable/disable onboarding - mode ('onboarding_default' | 'onboarding_advanced', optional): Onboarding mode Returns: Updated onboarding configuration
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
default_channel_ids | array | Channels shown to new members by default |
enabled | boolean | Whether onboarding is enabled |
mode | string | Onboarding mode |
prompts | array | Onboarding prompts/questions |
discord_setup_onboarding Setup Server Onboarding
Setup and enable onboarding for a server from scratch. This tool configures the complete onboarding experience for new members. The server must have Community features enabled. Requirements: - Server must have Community features enabled (done in Discord Server Settings) - At least one default channel must be specified - At least one prompt with options must be provided - Each option must have at least one role_ids OR channel_ids Args: - guild_id (string): Discord server/guild ID - default_channel_ids (string[]): Channels shown to all new members (required, at least one) - prompts (arr…
| Parameter | Type | Description |
|---|---|---|
default_channel_ids * | array | Channels shown to new members by default (at least one required) |
guild_id * | string | Discord server/guild ID (snowflake) |
prompts * | array | Onboarding prompts/questions (at least one required) |
enabled | boolean | Whether to enable onboarding after setup |
mode | string | Onboarding mode |
discord_get_community_settings Get Community Settings
Get the community settings for a server. Shows rules channel, updates channel, and other community-related settings. Args: - guild_id (string): Discord server/guild ID - response_format ('markdown' | 'json'): Output format (default: 'json') Returns: Community settings including channels and features
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_setup_community Setup Community Server
Configure the required channels for a Community server. Sets the rules channel and public updates channel which are required for Community features. The server must already have Community enabled in Discord Server Settings. Args: - guild_id (string): Discord server/guild ID - rules_channel_id (string): Channel for server rules (required) - public_updates_channel_id (string): Channel for Discord updates (required) - description (string, optional): Server description (max 120 chars) - preferred_locale (string, optional): Preferred language (e.g., 'en-US', 'de') - safety_alerts_chan…
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
public_updates_channel_id * | string | Channel for Discord community updates (required for Community) |
rules_channel_id * | string | Channel for server rules (required for Community) |
description | string | Server description (max 120 chars) |
preferred_locale | string | Preferred language (e.g., 'en-US', 'de', 'fr') |
safety_alerts_channel_id | string | Channel for safety alerts from Discord |
discord_update_bot_profile Update the Bot's Global Profile
Update the authenticated bot's global avatar or banner. Provide at least one field. Omitted fields keep their current value. Pass null to clear an image.
| Parameter | Type | Description |
|---|---|---|
avatar | PNG, JPEG, or GIF avatar as a base64 data URI or Discord CDN URL. Pass null to clear. | |
banner | PNG, JPEG, or GIF banner as a base64 data URI or Discord CDN URL. Pass null to clear. |
discord_update_bot_guild_profile Update the Bot's Server Profile
Update the authenticated bot's nickname, avatar, or banner in one server. Provide at least one profile field. Pass null to clear a field. Changing the nickname requires Change Nickname in that server.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
avatar | PNG, JPEG, or GIF avatar as a base64 data URI or Discord CDN URL. Pass null to clear. | |
banner | PNG, JPEG, or GIF banner as a base64 data URI or Discord CDN URL. Pass null to clear. | |
nickname | Bot nickname in this server (1-32 characters). Pass null to clear. |
discord_get_member_permissions Get Discord Member Permissions
Get Discord's computed permissions for a member in a server or channel, including the bitfield and known permission names. Channel calculations include overwrites. Discord skips implicit masking for bot members.
| Parameter | Type | Description |
|---|---|---|
scope * | Discord server or channel whose permissions to calculate | |
user_id * | string | Discord user ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_role_permissions Get Discord Role Permissions
Get Discord's computed permissions for a role together with @everyone in a server or channel, including the bitfield and known permission names. Channel calculations include overwrites for these roles.
| Parameter | Type | Description |
|---|---|---|
role_id * | string | Discord role ID (snowflake) |
scope * | Discord server or channel whose permissions to calculate | |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_guild_role_member_counts Get Guild Role Member Counts
Get the number of members assigned to each role in a Discord server, excluding @everyone. Discord supplies the counts directly.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_search_guild_messages Search Discord Guild Messages
Search a Discord server's message history using text, author, channel, and other filters. The bot needs the Message Content intent and Read Message History. Use next_offset to request another page. Discord may need time to index the messages and provide a retry delay.
| Parameter | Type | Description |
|---|---|---|
guild_id * | string | Discord server/guild ID (snowflake) |
attachment_extension | array | Filter by attachment extension such as png |
attachment_filename | array | Filter by attachment filename |
author_id | array | Filter by these authors |
author_type | array | Filter by author type. Prefix a type with - to exclude it. |
channel_id | array | Only search these channels |
content | string | Text to search for |
embed_provider | array | Filter by case-sensitive embed provider name |
embed_type | array | Filter by embed type |
has | array | Filter by message features such as link, file, or poll. Prefix a feature with - to exclude it. |
include_nsfw | boolean | Include results from age-restricted channels |
limit | integer | Maximum number of matches to return |
link_hostname | array | Filter links by hostname |
max_id | string | Find messages before this message ID |
mention_everyone | boolean | Filter by whether messages mention @everyone |
mentions | array | Filter by mentioned users |
mentions_role_id | array | Filter by mentioned roles |
min_id | string | Find messages after this message ID |
offset | integer | Number of matches to skip |
pinned | boolean | Filter by whether messages are pinned |
replied_to_message_id | array | Filter by the replied-to message ID |
replied_to_user_id | array | Filter by the author of the replied-to message |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
slop | integer | Maximum words between matching search tokens |
sort_by | string | Sort by timestamp or relevance |
sort_order | string | Sort direction when sorting by timestamp |
discord_create_poll Create Discord Poll
Post a native Discord poll. Specify the question, up to 10 answers, duration, and whether multiple answers are allowed. Requires Send Polls in the channel.
| Parameter | Type | Description |
|---|---|---|
answers * | array | |
channel_id * | string | Discord channel ID (snowflake) |
question * | string | |
allow_multiselect | boolean | |
duration_hours | integer | |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_get_poll Get Discord Poll
Read a poll by channel and message ID. Returns the answers, counts when Discord provides them, and whether the tally is final.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | ID of the Discord message containing the poll |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |
discord_end_poll End Discord Poll
Close a poll created by the bot and return the latest results. Discord may still be finalizing the vote counts.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Discord channel ID (snowflake) |
message_id * | string | ID of the Discord message containing the poll |
response_format | string | Output format: 'markdown' for human-readable or 'json' for structured data |