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 会话状态,获取二维码或配对码以在手机端关联设备完成认证。发送前检查某个手机号是否已注册 WhatsApp。发送文本消息、通过链接发送图片,以及通过链接发送 PDF 等文件。会话在多次运行之间保持认证,因此每个号码只需关联一次。
适用场景
适合希望从桌面 MCP 客户端让助手发送 WhatsApp 消息或文件,又不想走 Meta Business 审批或开通 WhatsApp Business 账户的场景。
运行要求
以 stdio 在本地运行,通常通过 npx 启动,因此需要 Node.js。需要 RapidAPI 密钥,通过环境变量 WHATSAPP_API_KEY 提供;缺失时服务器会在启动时退出。需要访问 API 主机的网络,以及一台装有 WhatsApp 的手机来扫描二维码或输入配对码。
安装前请注意
必须提供 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 分