Discord MCP by usefulapi
Read servers, channels, messages and pins; post messages as a bot in Discord.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (1)
- LOWin discord_send_message
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"discord": {
"url": "https://discord.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://discord.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (10)
🟢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.
Eingabe-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.
Eingabe-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}.
Eingabe-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.
Eingabe-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}.
Eingabe-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.
Eingabe-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}.
Eingabe-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.
Eingabe-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}.
Eingabe-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.
Eingabe-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
Nachweis