Discord

io.github.mcp-dir由 GitHub 账号 mcp-dir 发布v0.1.0更新于 Oct 24, 2026

Connect a Discord bot (bot token from the developer portal) to read/send messages, list guilds and c

已验证Streamable HTTP可网页运行效率与工作流沟通与协作

概览

AI 生成的概览

让助手通过托管的 Discord 机器人连接读取和发送消息、列出服务器与频道、添加表情回应并发送私信。

可以做什么
这是一个托管型 MCP 服务器,通过 HTTP 把 Discord 机器人接入助手。它提供 15 个工具,涵盖账号与机器人资料查询、服务器和频道列表、频道与消息读取、成员列表、用户资料、发送消息或私信、编辑和删除消息以及添加表情回应。部分工具支持批量 ID 批量执行,并可为连接设置可选的默认服务器 ID。
适用场景
适合助手需要在 Discord 内工作的场景:汇总或检索频道历史、发布公告、回复消息、发送私信,或查询服务器成员与频道。适用于已经运行 Discord 机器人、希望助手代为操作的团队和社区。
运行要求
需要一个支持 MCP over HTTP 的远程客户端,指向托管服务器地址。需要来自 Discord 开发者门户的机器人令牌并关联到该安装。列出成员需在开发者门户启用 Server Members intent。登录方式说明为 magic-link。
安装前请注意
机器人令牌会授予该机器人可见和可执行的全部权限,请谨慎限定其权限范围。工具可以发送、编辑和删除消息;删除被说明为不可逆,删除他人消息需要 Manage Messages 权限。工具返回的数据会发送给所选用的 LLM 宿主,这是提供商无法控制的次级处理方。该托管服务器为专有软件,并非开源。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Discord,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.mcp-dir%2Fdiscord-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "discord": {
      "type": "http",
      "url": "https://api.mcp.ai/p_discord"
    }
  }
}

README

该仓库没有 README。

工具

21

discord_list_accounts

List Discord bot connections linked to this install — id, label, default guild_id.

输入参数account

discord_get_me

Return the bot's own user profile (id, username, discriminator, avatar, etc).

输入参数account

discord_list_guilds

List the servers (guilds) the bot is a member of.

输入参数afterlimitbeforeaccount

discord_get_guild

Get one guild's metadata. Falls back to the connection's default guild_id. Bulk support: accepts guild_ids for batched execution.

输入参数accountguild_idguild_ids

discord_list_channels

List channels in a guild. Falls back to the connection's default guild_id. Bulk support: accepts guild_ids for batched execution.

输入参数accountguild_idguild_ids

discord_list_guild_members

List members of a guild. Requires the bot to have the Server Members intent enabled in the developer portal — may return 403 otherwise. Bulk support: accepts guild_ids for batched execution.

输入参数afterlimitaccountguild_idguild_ids

discord_get_channel

Get a channel's metadata (type, name, topic, parent, permissions). Bulk support: accepts channel_ids for batched execution.

输入参数accountchannel_id必填channel_ids

discord_list_messages

Read recent messages from a channel (newest first). Pagination via `before` / `after` / `around` (message ids). Requires Message Content intent for non-bot message bodies in some cases. Bulk support: accepts channel_ids for batched execution.

输入参数afterlimitaroundbeforeaccountchannel_id必填channel_ids

discord_get_message

Fetch a single message by id. Bulk support: accepts channel_ids, message_ids for batched execution.

输入参数accountchannel_id必填message_id必填channel_idsmessage_ids

discord_get_user

Public profile of any Discord user by id. Bulk support: accepts user_ids for batched execution.

输入参数accountuser_id必填user_ids

discord_send_message

Post a message to a channel. Provide `content` (text up to 2000 chars), `embeds` (rich JSON), or both. `reply_to` makes it a reply. Bulk support: accepts channel_ids for batched execution.

输入参数embedsaccountcontentreply_tochannel_id必填channel_ids

discord_send_dm

Open a DM channel with a user and send them a message. The bot and the user must share a guild. Bulk support: accepts user_ids for batched execution.

输入参数embedsaccountcontentuser_id必填user_ids

discord_edit_message

Edit a previously-sent message (must be authored by this bot). Bulk support: accepts channel_ids, message_ids for batched execution.

输入参数embedsaccountcontentchannel_id必填message_id必填channel_idsmessage_ids

discord_add_reaction

Add a reaction to a message. `emoji` is either unicode (e.g. `👍`) or `name:id` for custom guild emoji. Bulk support: accepts channel_ids, message_ids for batched execution.

输入参数emoji必填accountchannel_id必填message_id必填channel_idsmessage_ids

discord_delete_message

Delete a message. Irreversible. Bot needs Manage Messages to delete messages authored by other users. Bulk support: accepts channel_ids, message_ids for batched execution.

输入参数accountchannel_id必填message_id必填channel_idsmessage_ids

show_version

Show Version

Show the current MCP platform and adapter versions.

无需输入参数。

report_bug

Report Bug

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

输入参数contextmessage必填conversation

connect

Connection Status

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

无需输入参数。

toolkit_info

Toolkit Info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

无需输入参数。

marketplace

Marketplace

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.

输入参数limitqueryactionmcp_idmessagetool_idargumentsimmediatetier_slugprompt_bodyprompt_slugprompt_tool另有 11 个

authenticate

Authenticate

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

输入参数token

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。