DEV Community

ZapZ
ZapZ

Posted on Originally published at zapz.dev

Give Claude, Cursor and other MCP clients WhatsApp superpowers

Disclosure: I build ZapZ, the WhatsApp API used in this post. The MCP server is open source (MIT) and works with the free trial.

MCP (Model Context Protocol) is the standard that lets AI assistants call external tools. With the ZapZ MCP server, Claude, Cursor and any other MCP client can send WhatsApp messages, check whether they were read and manage groups, contacts and webhooks, all in plain language.

Things you can ask:

  • "Send to 5511999999999: the meeting moved to 3pm."
  • "Did Maria read the message I sent?"
  • "Create a group called 'Launch' with these three numbers."
  • "List the instances that are disconnected."

What you need

  • A ZapZ account with a connected instance (scan the QR code in the dashboard). The free trial gives you 7 days with 1 instance.
  • An API key. Use sk_test_… to try it in the sandbox (nothing goes out on WhatsApp) and sk_live_… for real messages.
  • Node.js 18 or newer (for npx).

Phone numbers are digits only: country code, area code and number, for example 5511999999999.

Claude Code

claude mcp add zapz -e ZAPZ_API_KEY=sk_live_... -- npx -y @zapz/mcp
Enter fullscreen mode Exit fullscreen mode

Claude Desktop, Cursor and others

Add this to your client's MCP config (Claude Desktop: Settings → Developer → Edit Config; Cursor: Settings → MCP):

{
  "mcpServers": {
    "zapz": {
      "command": "npx",
      "args": ["-y", "@zapz/mcp"],
      "env": { "ZAPZ_API_KEY": "sk_live_..." }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Restart the client and you get 66 tools: messages_send_text, instances_list, groups_update_participants and so on, generated from the API's OpenAPI spec.

Safety

The server is built so the assistant can't do much damage:

  • Confirmation: tools that change or delete something carry the MCP destructiveHint/readOnlyHint annotations, so the client asks before running them.
  • Read-only mode: with ZAPZ_MCP_READ_ONLY=true the assistant can only read (instances, messages, statuses) and never sends.
  • No duplicate sends: every send gets a clientMessageId. If the assistant retries the call, the message still goes out once.
  • Sandbox: with an sk_test_… key everything runs in the test environment, with simulated delivery and read statuses.

Read-only config:

"env": { "ZAPZ_API_KEY": "sk_live_...", "ZAPZ_MCP_READ_ONLY": "true" }
Enter fullscreen mode Exit fullscreen mode

Docker / remote

To run it as an HTTP service (one process serves many users, each request sends its own key):

docker run -p 3333:3000 ghcr.io/zapz-api/zapz-mcp
Enter fullscreen mode Exit fullscreen mode

The endpoint is POST /mcp (Streamable HTTP), with the key in Authorization: Bearer sk_live_....

A word on WhatsApp limits

ZapZ uses WhatsApp Web, not Meta's official Cloud API. That means any number works without template approval, but a number that behaves like a bot can get banned. ZapZ queues every send with random gaps and daily caps that grow with the number's age. Still: use it for conversations with people who talk to you, not for bulk messaging.

Where to find it

If you try it, I'd love to hear which tools your assistant actually uses.

Top comments (0)