Discord MCP by usefulapi
Read servers, channels, messages and pins; post messages as a bot in Discord.
使うべきか
品質と安全性
検出事項(1)
- LOWdiscord_send_message 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"discord": {
"url": "https://discord.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://discord.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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"
}コミュニティ
エビデンス