Zappy MCP
Provides tools for sending, reading, and deleting WhatsApp messages with granular per-chat permissions, enabling programmatic interaction with WhatsApp chats and groups through WhatsApp Web.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zappy MCP send 'Running 5 minutes late, be there soon!' to Alice"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
zappy-mcp
WhatsApp MCP server for Claude Desktop, OpenCode, and other MCP clients. Send, read, and delete messages with granular per-chat permissions.
Built on whatsapp-web.js and the Model Context Protocol.
Table of Contents
Related MCP server: claude-whatsapp-mcp
Quick Start
git clone https://github.com/yourname/zappy-mcp.git
cd zappy-mcp
npm install
node src/index.js # Opens browser with QR codeScan the QR with WhatsApp (Settings > Linked Devices > Link a Device).
How It Works
This server uses whatsapp-web.js, which runs a headless Chromium browser via Puppeteer to connect to WhatsApp Web. There's no official WhatsApp API for personal accounts, so this library automates the web interface.
Authentication Flow
First run: The server launches headless Chromium and opens WhatsApp Web
QR code: A browser window opens showing a QR code (auto-opens on an available port)
Scan: Open WhatsApp on your phone -> Settings -> Linked Devices -> Link a Device -> Scan the QR
Session saved: After successful scan, session credentials are stored locally
Future runs: The server reconnects automatically using saved credentials - no QR needed
Session Storage
~/.config/zappy-mcp/
auth/ # WhatsApp session data (shared across all configs)The auth is stored globally, so you only authenticate once per machine. Different projects can use different permission configs while sharing the same WhatsApp session.
Re-authenticating
If you need to switch accounts or fix auth issues:
rm -rf ~/.config/zappy-mcp/auth
node src/index.js # Opens QR code againSecurity Notes
Session data in
~/.config/zappy-mcp/auth/grants full access to your WhatsApp - protect it like a passwordThe QR code is only shown locally in your browser, never transmitted
Each config file controls which chats the AI can access - use minimal permissions
MCP Setup
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"zappy-mcp": {
"command": "node",
"args": ["/path/to/zappy-mcp/src/index.js", "--config", "/path/to/config.json"]
}
}
}OpenCode
Project-level (.mcp.json in project root):
{
"mcpServers": {
"zappy-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/zappy-mcp/src/index.js", "--config", ".zappy-mcp.json"]
}
}
}User-level (~/.config/opencode/mcp.json):
{
"mcpServers": {
"zappy-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/zappy-mcp/src/index.js", "--config", "~/.config/zappy-mcp/config.json"]
}
}
}Permissions
By default, no chats are allowed. The AI cannot send, read, or delete messages until you explicitly grant access. This is a safety feature - you control exactly which conversations the AI can interact with.
Finding Chat IDs
First, connect WhatsApp and use the list_chats tool to discover your chat IDs:
list_chats() # All chats
list_chats(groupsOnly: true) # Only groupsChat IDs look like:
Groups:
120363295812730408@g.usContacts:
14155551234@c.us(country code + phone number)
Config File
Create a config file (e.g., .zappy-mcp.json) with the chats you want to allow:
{
"allowed": [
{
"id": "120363295812730408@g.us",
"name": "Work Group",
"canSend": true,
"canRead": true,
"canDelete": false
},
{
"id": "14155551234@c.us",
"name": "Alice",
"canSend": true,
"canRead": true,
"canDelete": true
}
]
}Permission Options
Field | Description | Default |
| Chat ID from | - |
| Human-readable label for your reference | - |
| Allow AI to send messages to this chat |
|
| Allow AI to read messages from this chat |
|
| Allow AI to delete its own messages (safety: off by default) |
|
Example Use Cases
Scenario | canSend | canRead | canDelete |
Full access |
|
|
|
Announcements only (no reading) |
|
|
|
Monitoring only (no sending) |
|
|
|
Send with ability to unsend mistakes |
|
|
|
Global Options
At the root level of your config:
{
"suppressWarnings": true,
"allowed": [...]
}Option | Description |
| Hide "no recipients configured" warnings at startup |
Tools
Status & Discovery
Tool | Description |
| Check WhatsApp connection status, shows config path and auth location |
| Show all permitted chats with their current permissions |
| List all WhatsApp chats with IDs - use this to find chat IDs for setup |
Messaging
send_message
Send a message to a chat. Requires canSend permission.
Parameter | Description |
| Chat ID (from |
| Text content to send |
get_messages
Fetch recent messages from a chat. Requires canRead permission.
Parameter | Description |
| Chat ID or phone number |
| Number of messages to fetch (default: 20) |
delete_message
Delete a message you sent. Requires canDelete permission. Only works on messages where fromMe: true.
Parameter | Description |
| Chat ID where the message exists |
| Message ID (get this from |
| If |
Troubleshooting
Messages not delivering
The WhatsApp client needs about 5 seconds after connecting to sync with the server. This is handled automatically, but if messages stay stuck in "pending" state, try restarting the MCP server.
Session/auth issues
If you're having trouble connecting, try clearing the auth data and scanning the QR code again:
rm -rf ~/.config/zappy-mcp/auth
node src/index.jsLinux: Puppeteer/Chromium dependencies
whatsapp-web.js uses Puppeteer to run headless Chromium. On Linux, you may need to install system dependencies:
sudo apt-get install -y libgbm-dev libasound2 libatk1.0-0 libcups2 libxss1 libnss3 libgtk-3-0Account restrictions
WhatsApp does not officially support automation or bots on personal accounts. Excessive or abusive use may result in temporary or permanent account restrictions. Use responsibly and respect rate limits.
License
MIT
Available Tools
6 toolsdelete_messageA
Delete a message. Requires canDelete permission. Can only delete messages sent by you.
Inputs: chatId (required), messageId (required), forEveryone.
get_messagesB
Get recent messages from a chat. Only works for chats with canRead permission.
Inputs: chatId (required), limit.
get_statusB
Check WhatsApp client connection status
Inputs: no named parameters.
list_allowedB
List all allowed recipients with their permissions (canSend, canRead)
Inputs: no named parameters.
list_chatsA
List all WhatsApp chats with their IDs and permissions. Use this to find chat IDs for config.json setup.
Inputs: limit, groupsOnly.
send_messageA
Send a WhatsApp message to an ALLOWED phone number or group. Will fail if recipient is not in the allowed list.
Inputs: to (required), message (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: delete_message removes messages, get_messages retrieves messages, get_status checks connection, list_allowed shows recipients, list_chats enumerates chats, and send_message sends messages. The descriptions reinforce these distinct roles, making misselection unlikely.
All tools follow a consistent verb_noun naming pattern (e.g., delete_message, get_messages, send_message). There are no deviations in style or convention, making the set predictable and easy to understand at a glance.
With 6 tools, the set is well-scoped for managing WhatsApp interactions, covering core operations like messaging, chat/recipient listing, status checks, and deletions. Each tool earns its place without feeling excessive or insufficient for the domain.
The tool surface covers essential CRUD-like operations for WhatsApp messaging (send, get, delete) and administrative tasks (list chats, list allowed recipients, check status). A minor gap exists in lacking update or permission modification tools, but agents can work around this for basic workflows.
Maintenance
Related MCP Connectors
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Free WhatsApp MCP server for ChatGPT and Claude: read and search chats, every send you approve.
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables sending WhatsApp messages through Claude Desktop and other MCP-compatible LLMs. Supports single and bulk messaging, phone number validation, and session management via the zapr.link service.MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to interact with WhatsApp for reading messages, sending replies, and searching contacts through the Model Context Protocol. It uses whatsapp-web.js to facilitate local connection management with QR code authentication and session persistence.4MIT
- AlicenseNot gradedqualityDmaintenanceGives Claude Desktop read-only access to your WhatsApp chats and message history via a local MCP server.4MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that lets Claude read and send WhatsApp messages using a genuine WhatsApp Web client behind a code-enforced human-behavior middleware for safety.-