WhatsApp Messaging API

io.github.jevil25由 GitHub 帳號 jevil25 發布v1.0.3更新於 Oct 24, 2026

Send WhatsApp messages from Claude. No Meta Business approval or WhatsApp Business account.

已驗證STDIO僅桌面效率與工作流溝通與協作

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過第三方 API 管理 WhatsApp 工作階段並傳送文字、圖片與檔案訊息,無需 Meta Business 審核或 WhatsApp Business 帳號。

可以做什麼
列出、建立並查詢 WhatsApp 工作階段狀態,取得 QR 碼或配對碼以在手機端連結裝置完成驗證。傳送前檢查某個手機號碼是否已註冊 WhatsApp。傳送文字訊息、以連結傳送圖片,以及以連結傳送 PDF 等檔案。工作階段在多次執行之間維持驗證,因此每個號碼只需連結一次。
適用情境
適合想從桌面 MCP 用戶端讓助理傳送 WhatsApp 訊息或檔案,又不想走 Meta Business 審核或開通 WhatsApp Business 帳號的情境。
執行需求
以 stdio 在本機執行,通常透過 npx 啟動,因此需要 Node.js。需要 RapidAPI 金鑰,透過環境變數 WHATSAPP_API_KEY 提供;缺少時伺服器會在啟動時結束。需要連線至 API 主機的網路,以及一支裝有 WhatsApp 的手機來掃描 QR 碼或輸入配對碼。
安裝前請注意
必須提供 WHATSAPP_API_KEY 憑證,並會傳送給第三方 API 主機。傳送訊息、圖片與檔案會實際送達收件人且無法收回。連結工作階段會讓該服務存取此 WhatsApp 帳號的訊息收發,連接個人號碼前請先了解服務商的條款與資料處理方式。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 WhatsApp Messaging API,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

WhatsApp Messaging API — MCP Server

Send WhatsApp messages from Claude, Cursor, or any MCP client. Create a session, scan a QR code, and send text, images and files — no Meta Business approval and no WhatsApp Business account required.

Wraps the WhatsApp Messaging API.

Quick start

  1. Get a free API key from RapidAPI — no credit card.

  2. Add this to your MCP client config (Claude Desktop: claude_desktop_config.json):

    json
    {  "mcpServers": {    "whatsapp": {      "command": "npx",      "args": ["-y", "whatsapp-messaging-api-mcp"],      "env": {        "WHATSAPP_API_KEY": "your-rapidapi-key"      }    }  }}
  3. Restart the client. Ask it to create a WhatsApp session and show you the QR code.

Nothing to install or build — npx fetches the package on first run.

Tools

ToolDescription
list_sessionsList all sessions on this API key
create_sessionCreate a new session
get_session_statusCheck a session's current status
get_qr_codeGet the QR code to authenticate a session
request_pairing_codeGet an 8-digit pairing code instead of a QR
check_contact_existsCheck if a phone number is on WhatsApp before sending
send_text_messageSend a text message
send_imageSend an image via URL
send_fileSend a file (PDF, document) via URL

Typical flow

  1. create_session → get_qr_code → scan with WhatsApp (Settings → Linked Devices)
  2. get_session_status until it reports WORKING
  3. check_contact_exists, then send_text_message / send_image / send_file

Sessions stay authenticated between runs, so steps 1-2 are one-time per number.

Configuration

VariableRequiredDescription
WHATSAPP_API_KEYyesYour RapidAPI key. The server exits on startup if it is missing.

The key is read from the environment and sent only to the API host. It is never logged.

Local development

bash
git clone https://github.com/jevil25/whatsapp-messaging-api-mcp.gitcd whatsapp-messaging-api-mcpnpm installnpm run dev      # runs src/index.ts directly via tsx, no build stepnpm run build    # compile to dist/npm test         # boots the built server and drives a real MCP handshake

npm test needs no credentials — it passes a dummy key, which gets far enough to list tools because nothing in the handshake makes an API call.

To point an MCP client at your local build, use "command": "node" with "args": ["/absolute/path/to/dist/index.js"].

See DEVELOPING.md for the release process.

Links

License

MIT

來源:README.md,提交 683d8b5

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分