
Mcp Whatsapp Cloud
io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026
MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API
概覽
面向 Meta WhatsApp Cloud API 的本機 MCP 伺服器,讓助理傳送 WhatsApp 訊息、媒體與範本並管理商業帳號。
- 可以做什麼
- 透過 Cloud API 向 WhatsApp 號碼傳送文字、範本、媒體、互動式、Flow、位置、聯絡人與表情回應訊息,以及輸入狀態和已讀回條。上傳、解析與刪除媒體資源,並可重複使用已上傳的媒體 ID 多次傳送。列出、建立與刪除 WhatsApp 商業帳號上的訊息範本。讀取與更新商業檔案,列出已註冊的電話號碼。要求並提交電話號碼驗證碼。
- 適用情境
- 適用於已擁有核准 WhatsApp 商業帳號、希望助理直接透過 Meta 處理客戶訊息、範本管理或帳號管理的商家,不需中間服務商。
- 執行需求
- 透過 npx 從 npm 套件 @codespar/mcp-whatsapp-cloud 在本機執行(需要 Node.js)。需要 Meta 系統使用者存取權杖(WHATSAPP_ACCESS_TOKEN)、電話號碼 ID(WHATSAPP_PHONE_NUMBER_ID)與 WhatsApp 商業帳號 ID(WHATSAPP_BUSINESS_ACCOUNT_ID);WHATSAPP_GRAPH_VERSION 為選用,預設 v21.0。需要連線至 Meta Graph API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Whatsapp Cloud,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@codespar/mcp-whatsapp-cloud
MCP server for the WhatsApp Cloud API — Meta's official WhatsApp Business API, self-hosted on Meta infrastructure.
Direct Meta integration. No middleman, no provider markup. For merchants with an approved WhatsApp Business Account (WABA) who want Meta-direct pricing and full control over conversation, pricing category, and template lifecycle.
WhatsApp servers in this catalog
Tools (22)
Install
Environment
Authentication
Bearer token against the Graph API. Use a permanent system-user token from Meta Business Manager — user access tokens expire and will break production.
Messaging rules (important)
- Customer-service window — You can freely send any message type for 24h after the user last messaged you.
- Business-initiated — Outside that window you must send an approved template. Use
send_template_messagewith a name + language + components. - Templates — Create with
create_template, wait for Meta approval (minutes to hours), then use. - Phone numbers are E.164 without the leading
+(e.g.5511999999999).
Media
Two paths:
- Public URL — pass
linktosend_media_message. Fastest, but Meta fetches on every send. - Uploaded media_id — call
upload_mediaonce, reuseidon subsequent sends. Recommended for catalog assets.
Uploaded media expires after ~30 days.
Interactive messages
send_interactive_message expects a fully-formed interactive object. Example button payload:
See the Cloud API interactive reference for list payloads.
Run
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
來源:packages/communication/whatsapp-cloud/README.md,提交 d0a519a
工具
0版本歷史
1- v0.2.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分