Repository avatar
AI Tools
v1.0.0
active

zaphook-mcp-server

io.github.zaphook/zaphook-mcp-server

WhatsApp Business for AI assistants: inbox, messages, templates, channels and webhooks.

Documentation

ZapHook MCP Server

ZapHook MCP Server

Connect Claude, Cursor and other AI assistants to WhatsApp Business through ZapHook. Read conversations, send messages and templates, manage channels and webhooks, and debug delivery, in plain language.

License: MIT MCP: Streamable HTTP Hosted

English · Português


What it is

The ZapHook MCP Server is a hosted Model Context Protocol server. You add one URL and your ZapHook API key to your AI client, and the assistant can work with your WhatsApp Business account:

  • "Which conversations are waiting for a reply today?"
  • "Read the last conversation with +55 11 99999-8888 and draft an answer."
  • "Send our approved welcome template to this customer."
  • "Why did messages fail to reach my webhook yesterday?"

There is nothing to install or run. The server works with standard and coexistence (WhatsApp Business app + API) channels.

This repository holds the documentation, client examples and the registry manifest. The server itself runs on ZapHook's infrastructure.

Quick start

Server URLhttps://api.zaphook.cloud/mcp
TransportStreamable HTTP
AuthenticationAuthorization: Bearer YOUR_API_KEY header (or X-API-Key: YOUR_API_KEY)
  1. Create a ZapHook account at zaphook.cloud and connect at least one WhatsApp channel.
  2. Create an API key in the dashboard: Settings → API Keys → Create API key (step-by-step with screenshots).
  3. Add the server to your client using one of the setups below.

Claude (claude.ai and Claude Desktop)

  1. Open Settings → Connectors → Add custom connector.
  2. Name: ZapHook · Remote MCP server URL: https://api.zaphook.cloud/mcp
  3. Authentication: choose No login (the API key goes in a header, not OAuth).
  4. Request headers → Add header: name Authorization, value Bearer YOUR_API_KEY.
  5. Save, start a new chat and ask: "List my ZapHook channels."

Details: examples/claude-ai.md.

Claude Code

claude mcp add --transport http zaphook https://api.zaphook.cloud/mcp \
  --scope user --header "Authorization: Bearer YOUR_API_KEY"

Windows PowerShell and other details: examples/claude-code.md.

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "zaphook": {
      "url": "https://api.zaphook.cloud/mcp",
      "headers": { "Authorization": "Bearer YOUR_API_KEY" }
    }
  }
}

More clients

ClientExample
VS Code (GitHub Copilot)examples/vscode.json
Kiroexamples/kiro.json
Clients that only support stdio (via mcp-remote)examples/mcp-remote.json

Never commit a real API key. Keep it in your client's secret storage or an environment variable. If a key leaks, revoke it in the dashboard and create a new one.

Tools

31 tools, grouped by area. 📤 sends a real WhatsApp message (cannot be undone). 🗑️ deletes data permanently. Full reference with parameters: docs/tools.md.

Inbox (read-only)

ToolWhat it does
zaphook_list_conversationsLists conversations, newest first, with contact, unread count, a short preview of the last message and whether the 24-hour window is open. Filters: channel, status, unread, search by phone or name, dates.
zaphook_get_conversationOne conversation, including the 24-hour window status.
zaphook_list_conversation_messagesFull message history (incoming and outgoing) of a conversation, paginated.

Messages

ToolWhat it does
zaphook_send_text 📤Text message.
zaphook_send_template 📤Approved template. Required to start a conversation or write outside the 24-hour window.
zaphook_send_image 📤Image (public HTTPS link or media ID).
zaphook_send_video 📤Video.
zaphook_send_audio 📤Audio.
zaphook_send_document 📤Document (PDF, spreadsheet, etc.).
zaphook_send_sticker 📤Sticker (.webp).
zaphook_send_location 📤Location pin.
zaphook_request_location 📤Asks the contact to share their location.
zaphook_send_contact 📤Contact card(s).
zaphook_send_buttons 📤Up to 3 quick-reply buttons.
zaphook_send_list 📤Interactive list menu.
zaphook_send_reaction 📤Emoji reaction to a message.
zaphook_mark_as_readMarks a received message as read (blue ticks). Sends no content.
zaphook_send_typingShows "typing…" to the contact for about 25 seconds and marks the message as read. Sends no content.

Channels and templates

ToolWhat it does
zaphook_list_channelsLists your WhatsApp channels (standard and coexistence). Start here.
zaphook_get_channelOne channel by ID.
zaphook_get_channel_healthLive number health from Meta: connection, quality rating, messaging limit tier, verified name.
zaphook_list_channel_templatesMessage templates with approval status, rejection reason and variables.
zaphook_create_channelCreates a standard channel with an auto-generated webhook URL.
zaphook_update_channelRenames, pauses/activates or changes the webhook secret of a standard channel.
zaphook_delete_channel 🗑️Permanently deletes a standard channel with its destinations and event logs.

Destinations (webhooks)

ToolWhat it does
zaphook_list_destinationsURLs that receive a channel's events. Header and auth values are masked.
zaphook_create_destinationAdds a destination to a standard channel.
zaphook_update_destinationUpdates, pauses or activates a destination.
zaphook_delete_destination 🗑️Removes a destination.

Events (delivery debugging)

ToolWhat it does
zaphook_list_eventsReceived and delivered events, filterable by channel, type, delivery status, errors and dates.
zaphook_get_eventOne event in detail: original and processed payload, destination response, attempts and errors.

Example prompts

  • "Which conversations on my Support channel are unread? Summarize what each customer wants."
  • "Is the 24-hour window still open with this contact? If not, which template should I use?"
  • "Reply to Maria: Your order has shipped and arrives tomorrow."
  • "Show the events that failed in the last 24 hours and explain the errors."
  • "Check the health of all my numbers."

More: examples/prompts.md.

Safety by design

  • Confirmation before sending. Every sending tool tells the assistant to show you the recipient and the exact content and wait for your confirmation. Most clients also ask before running a tool. Review each confirmation: a sent message cannot be recalled.
  • No automatic retries on sends. If a send times out, the assistant is told to check the events before trying again, so the same message is not sent twice.
  • Incoming content is data, not instructions. Messages from contacts are marked as third-party content, so an assistant should never follow instructions written inside a customer message.
  • Secrets stay masked. Webhook secrets, tokens and destination credentials come back as ***. The server never asks for your Meta access token.
  • Your key, your account. Each request uses only the API key in that request. Nothing is shared between users.
  • HTTPS only, with rate limits per key.

WhatsApp rules worth knowing

SituationWhat to do
The contact has not written in the last 24 hoursMeta only allows free-form messages inside the 24-hour customer service window. Use zaphook_send_template with an approved template.
Sending mediaUse a public HTTPS link that opens the file directly, or a media ID. Files on your computer cannot be sent directly; see Troubleshooting.
Phone number formatCountry code plus number, digits only. Example: 5511999998888.
A send timed outCheck zaphook_list_events before retrying.
Template not foundList templates and use the exact name and language.

You are responsible for following the WhatsApp Business Messaging Policy, including collecting opt-in before messaging contacts. More answers: docs/troubleshooting.md.

Requirements

  • A ZapHook account with at least one WhatsApp channel.
  • A ZapHook API key.
  • An MCP client that supports Streamable HTTP with custom headers, or the mcp-remote bridge.

Related

Support and contributing

  • Bugs and feature requests: GitHub Issues.
  • Security issues: see SECURITY.md. Please do not open public issues for vulnerabilities.
  • Documentation and example improvements are welcome: CONTRIBUTING.md.

License

Documentation and examples in this repository are licensed under the MIT License.

ZapHook is a Meta Business Partner. This MCP server is provided and operated by ZapHook. WhatsApp and Meta are trademarks of Meta Platforms, Inc.

No installation packages available.

Remote