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 分

    請在儲存庫或註冊中心條目中宣告授權條款。