zaileys-mcp
Provides tools for AI agents to interact with WhatsApp, including sending messages, media, polls, and locations; reading chats and history; managing groups, communities, newsletters, contacts, presence, and profile.
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., "@zaileys-mcp Send a WhatsApp to +1 555 1234 that the build passed"
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.
Quick start • Why zaileys-mcp • Install • What you can build • Configuration • Docs
This README is ahigh-level overview. The complete guides, tool catalog, and configuration reference live in the documentation site at https://zeative.github.io/zaileys-mcp/.
This drives areal WhatsApp account through the unofficial Web API (via Zaileys/Baileys). WhatsApp may suspend numbers that use unofficial automation, and an AI agent with these tools can message anyone in your account. Use read-only or an allowlist when you don't need full access, and never point it at an account you can't afford to lose.
Quick start
Add it to your MCP client — npx fetches it on demand. First launch prints a QR to scan in WhatsApp → Linked Devices; the session persists.
{
"mcpServers": {
"whatsapp": {
"command": "npx",
"args": ["-y", "zaileys-mcp"],
"env": { "ZAILEYS_SESSION": "my-wa" }
}
}
}That's it. Restart your client, then ask your agent:
"Send a WhatsApp to +62 812 3456 7890 that the deploy is done ✅"
"Summarize my last 20 messages in the family group."
Works with Claude Desktop, Cursor, and any MCP client that speaks stdio.
Related MCP server: whatsapp-hermes
Why zaileys-mcp
Full 1:1 with Zaileys — 60+ tools covering messaging, chats, groups, communities, newsletters, privacy, profile, presence, contacts, and business. Anything Zaileys can do, an agent can do.
Smart tool strategy — all 60+ tools exist, but only a small core stays in the agent's context; the rest are revealed on demand via a
find_toolsmeta-tool. Full capability, small context — no bloating every request.Zero-config auth — Zaileys handles the WhatsApp connection. First run prints a QR; the session persists, restarts connect silently.
Embeddable — already run a Zaileys bot? Expose it to AI agents in one line; it reuses your live session, no second login.
Safe by design —
read-onlymode and recipient allowlists for when an agent shouldn't have full reach.Clean transport — stdio JSON-RPC stays uncorrupted; QR and logs go to stderr. Custom HTTP/SSE transport supported.
Install
No install needed for the standalone server — npx handles it:
npx -y zaileys-mcpTo embed it in your own bot, add it as a dependency:
npm i zaileys-mcp zaileys # or: pnpm add • yarn add • bun addRequires Node.js v20+. Peer dependency: zaileys >= 4.7.
What you can build
Drive WhatsApp from your agent
60+ tools, 1:1 with the Zaileys API — every to / chat / jid accepts a phone number or a JID interchangeably.
Agent: "add +62 811 111 111 to the Weekend group and make them admin"
→ find_tools("add member to group") → enables group_add, group_promote, …
→ group_add({ group, participants })
→ group_promote({ group, participants })Messaging —
send_text,send_media,send_location,send_poll,send_contact,send_sticker,react,edit_message,delete_message,forward_message,pin_message,unpin_messageChats —
list_chats,get_messages,chat_archive/unarchive/pin/unpin/mute/unmute/mark_read/mark_unread/delete/clear,set_disappearingAccount & contacts —
me,check_number,get_profile,save_contact,remove_contactPresence —
send_typing,send_recording,set_presenceGroups —
group_metadata/list/create/add/remove/promote/demote/update_subject/update_description/leave/invite_code/invite_revoke/invite_info/invite_accept/join_requests/approve_join/reject_join/setting/join_approval/member_add_mode/toggle_ephemeralCommunities —
community_metadata/list/subgroups/create/link_group/unlink_group/leaveNewsletters —
newsletter_metadata/messages/create/follow/unfollow/mute/unmute/reactPrivacy —
privacy_get,blocklist,block,unblockProfile —
set_profile_name/status/picture,remove_profile_pictureBusiness —
business_profile,business_catalog,business_collections
Smart tool strategy
60+ tools is a lot to inject into an agent's context on every request. zaileys-mcp uses progressive tool disclosure (the default): only a small core (~13 tools) stays active, and the rest are revealed on demand via a find_tools meta-tool that enables matches and fires MCP's tools/list_changed.
ZAILEYS_TOOLS=progressive # ~13 core active, rest via find_tools (default)
ZAILEYS_TOOLS=full # all 60+ active
ZAILEYS_TOOLS=core # ~12 core, no discovery
ZAILEYS_TOOLS=send_text,get_messages # a hand-picked set (+ find_tools)Embed in your own bot
Already run a Zaileys client? Expose it to AI agents in one line — it reuses your live session:
import { Client } from 'zaileys'
import { serveMcp } from 'zaileys-mcp'
const client = new Client()
await serveMcp(client) // AI agents can now drive this WhatsApp over stdioRead-only, allowlist, or a custom transport:
import { createMcpServer, serveMcp } from 'zaileys-mcp'
await serveMcp(client, { readOnly: true, allowlist: ['62812xxxxxxx'] })
const server = createMcpServer(client) // bring your own HTTP/SSE transport
await server.connect(myHttpTransport)Configuration
Standalone (env vars) — programmatic options mirror these one-to-one:
Variable | Default | Description |
|
| Session id (auth persists under |
|
|
|
| — | Phone number (E.164 digits) for pairing-code login |
|
|
|
| — | Comma-separated numbers/JIDs; restricts outbound tools |
|
|
|
Two guardrails, usable in any mode: readOnly (write tools never registered) and allowlist (outbound tools refuse other recipients). Recommended: readOnly for summarizers/monitors, allowlist for personal/team notifiers, a dedicated number for full automation.
Documentation
🌐 zeative.github.io/zaileys-mcp — full documentation: getting started, tools, tool strategy, safety
⚙️ zeative.github.io/zaileys — the WhatsApp engine underneath
🔌 Model Context Protocol — the MCP standard
Issues & feedback
Hit a problem or have a feature request? Open an issue.
⭐ Star the repo on GitHub
License
Distributed under the MIT License. See LICENSE for details.
Available Tools
14 toolschat_mark_readB
Mark a chat as read (blue ticks).
Inputs: chat (required).
check_numberB
Check whether phone numbers are registered on WhatsApp.
Inputs: numbers (required).
connection_statusA
Get the WhatsApp connection state (connected/connecting/disconnected) and the active account.
Inputs: no named parameters.
find_toolsA
Discover more WhatsApp tools that are not currently active. Call this FIRST whenever you need an action or data that the visible tools do not cover (managing groups, communities, newsletters, privacy, profile, business, deleting/forwarding/pinning messages, etc.) — this account has many more capabilities than the tools shown right now. Pass a short description of what you need (or a category: messaging, chat, group, community, newsletter, presence, profile, contact, privacy, business, account); matching tools become callable immediately after.
Inputs: query (required).
get_messagesB
Fetch recent messages for a chat from the store, newest first.
Inputs: chat (required), limit.
get_profileB
Fetch a contact/group profile picture URL and status text.
Inputs: target (required).
group_metadataB
Get a group subject, description, and participants (with admin flags).
Inputs: group (required).
list_chatsC
List recent chats from the store.
Inputs: limit.
meA
Return the connected WhatsApp account (jid, number, name).
Inputs: no named parameters.
reactC
React to a message (empty emoji removes the reaction).
Inputs: chat (required), emoji (required), messageId (required), fromMe.
send_locationC
Send a location pin.
Inputs: to (required), latitude (required), longitude (required), name, +1 more.
send_mediaB
Send image/video/audio/document by URL or base64.
Inputs: to (required), type (required), url, base64, +2 more.
send_textB
Send a text message. Supports bold, italic, strike, code.
Inputs: to (required), text (required).
send_typingC
Show the typing indicator in a chat.
Inputs: chat (required), ms.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool has a clearly distinct purpose, covering different actions like sending various message types, reacting, checking status, and managing chats. There is no overlap or ambiguity.
Most tools follow a verb_noun pattern (e.g., send_media, list_chats), but 'me' and 'react' deviate, and 'group_metadata' uses noun_noun. Overall, the pattern is mostly consistent.
14 tools is well-scoped for a WhatsApp integration, covering messaging, media, reactions, typing, group info, account status, and more. Not too few or too many.
The static set lacks some common operations like group creation or message deletion, but the find_tools mechanism can dynamically activate missing tools. Therefore, notable gaps exist but are mitigable.
Maintenance
Related MCP Connectors
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
WhatsApp for your AI agent, sent from your own number. Source-available (Elastic License 2.0).
WhatsApp for AI agents — your own number or the official Cloud API: messages, media, templates.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send WhatsApp messages, templates, and retrieve media through the WhatsApp Cloud API. Provides webhook handling and seamless integration with Meta's WhatsApp Business platform.23ISC
- AlicenseAqualityDmaintenanceConnects AI agents to WhatsApp via the Baileys library using QR code pairing, enabling sending and receiving messages without the Meta Business API. Supports persistent sessions, access control, and message buffering.51MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to send and manage WhatsApp messages, groups, and media using Baileys, with QR pairing and risk controls.21 npm3MIT

GoWA MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and tools to send and manage WhatsApp messages, media, statuses, and scheduled sends across multiple linked devices.MIT