Discord MCP by usefulapi

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

Should I use this

Quality & Safety

A
Description quality
97%
Schema completeness
92%
Naming quality
80%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'discord_send_message' description lacks action verbin discord_send_message

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,562Tokens (tool definitions)
~1.0 KBTypical response size
Moderate attention impact (1.22% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "discord": {
      "url": "https://discord.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://discord.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (10)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢discord_get_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.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_list_guilds(before, after, limit, with_counts)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "before": {
      "description": "Only servers with an id before this one (pagination).",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    },
    "after": {
      "description": "Only servers with an id after this one (pagination).",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    },
    "limit": {
      "description": "Max servers to return (1-200, default 200).",
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    },
    "with_counts": {
      "description": "Include approximate member and online counts.",
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_get_guild(guild_id, with_counts)

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

Input Schema

{
  "type": "object",
  "properties": {
    "guild_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The server id (from discord_list_guilds)."
    },
    "with_counts": {
      "description": "Include approximate member and online counts.",
      "type": "boolean"
    }
  },
  "required": [
    "guild_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_list_guild_channels(guild_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "guild_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The server id (from discord_list_guilds)."
    }
  },
  "required": [
    "guild_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_get_channel(channel_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The channel id (from discord_list_guild_channels)."
    }
  },
  "required": [
    "channel_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_list_messages(channel_id, limit, before, after, around)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The channel id."
    },
    "limit": {
      "description": "Max items to return (1-100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "before": {
      "description": "Only messages before this message id.",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    },
    "after": {
      "description": "Only messages after this message id.",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    },
    "around": {
      "description": "Messages around this message id.",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    }
  },
  "required": [
    "channel_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_get_message(channel_id, message_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The channel id."
    },
    "message_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The message id (from discord_list_messages)."
    }
  },
  "required": [
    "channel_id",
    "message_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_list_pinned_messages(channel_id, limit, before)

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

Input Schema

{
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The channel id."
    },
    "limit": {
      "description": "Max pins to return (1-50, default 50).",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "before": {
      "description": "Pagination cursor: the pinned_at timestamp of the last pin you received.",
      "type": "string"
    }
  },
  "required": [
    "channel_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢discord_get_user(user_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The user id (for example the author id of a message)."
    }
  },
  "required": [
    "user_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴discord_send_message(channel_id, content, reply_to_message_id)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "channel_id": {
      "type": "string",
      "pattern": "^\\d{1,25}$",
      "description": "The channel id to post in."
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The message text (1-2000 characters)."
    },
    "reply_to_message_id": {
      "description": "Reply to this message id in the same channel.",
      "type": "string",
      "pattern": "^\\d{1,25}$"
    }
  },
  "required": [
    "channel_id",
    "content"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded10 tools