# WhatsApp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/mcp-dir/whatsapp-mcp  
**GitHub Stars:** 0  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/whatsapp-2

## Description
Connect a personal/Business WhatsApp account via QR pairing (multi-device, like WhatsApp Web). Send

## Tools
Capabilities this server exposes over MCP:

- **whatsapp_list_accounts** — List WhatsApp accounts paired to this install — wa_jid, phone, label, proxy on/off, status.
- **whatsapp_sync** — Refresh this account's local data from WhatsApp — pulls recent messages and refreshes the groups/contacts lists into the local store. Call it BEFORE reading (chats/groups/messages/contacts/search) when results look stale or empty (e.g. right after connecting, or an account that hasn't synced recently). Connects live, so it may take ~20–60s. Returns { messages_stored }.
- **whatsapp_send_text** — Send a WhatsApp message (text or media).
Actions:
- text:  { to, text, reply_to? }
- media: { to, type ('image'|'video'|'audio'|'document'|'sticker'),
           media_url | media_base64, caption?, filename?, mimetype? }

`to` accepts either a JID ('5511999999999@s.whatsapp.net', '<id>@g.us') or
a plain phone (digits, country code included). For groups always use the
'<id>@g.us' JID — get it from whatsapp_groups.

Result: `sent:true` + `delivery:"accepted_by_server"` means WhatsApp's server
accepted the message (it has an id). It is NOT a read/delivery receipt from the
recipients' phones. If the message did not go out, the call fails with the reason.

Official Meta API connection: free text/media only inside the 24-hour window
(24 h since the contact's last message); outside it the call fails with
error "outside_service_window" and you must use whatsapp_send_template. Media
goes by media_url (public HTTPS); groups are not supported there.

[Flattened action: text]
- **whatsapp_send_media** — Send a WhatsApp message (text or media).
Actions:
- text:  { to, text, reply_to? }
- media: { to, type ('image'|'video'|'audio'|'document'|'sticker'),
           media_url | media_base64, caption?, filename?, mimetype? }

`to` accepts either a JID ('5511999999999@s.whatsapp.net', '<id>@g.us') or
a plain phone (digits, country code included). For groups always use the
'<id>@g.us' JID — get it from whatsapp_groups.

Result: `sent:true` + `delivery:"accepted_by_server"` means WhatsApp's server
accepted the message (it has an id). It is NOT a read/delivery receipt from the
recipients' phones. If the message did not go out, the call fails with the reason.

Official Meta API connection: free text/media only inside the 24-hour window
(24 h since the contact's last message); outside it the call fails with
error "outside_service_window" and you must use whatsapp_send_template. Media
goes by media_url (public HTTPS); groups are not supported there.

[Flattened action: media]
- **whatsapp_chats** — List WhatsApp chats (individual + group). Sorted by most recent activity.
- **whatsapp_messages** — List messages in a chat from LOCAL history. Requires chat_jid (from whatsapp_chats). Paginate backwards by passing the oldest message's timestamp as `before` (ISO 8601); `after` pages forward; `order` sorts. NOTE: only messages already synced locally are returned — to see how far back the archive goes use whatsapp_history_coverage, and to pull OLDER messages from your phone use whatsapp_history_backfill.
- **whatsapp_get_media** — Get a short-lived (15 min) HTTPS link to the media of one message (photo, voice note, audio, video, document) from LOCAL history. Requires message_id and chat (the chat JID, from whatsapp_messages). Returns { url, mime, size, name, expires_at }. The file is copied as-is to private storage for 7 days; ask again for a fresh link. On failure returns { success:false, error }: not_found (no media for that message), media_expired (WhatsApp no longer has the file), too_large (> 16 MB), unsupported_type, unsupported.

Bulk support: accepts message_ids for batched execution.
- **whatsapp_transcribe_media** — Transcribe a WhatsApp audio / voice note to text (read-only: nothing is sent or changed on WhatsApp). Give message_id + chat (an audio received in this account, from whatsapp_messages) OR url (an audio file link from this platform's own media storage: the screen upload ref or a whatsapp_get_media url; other hosts are refused). Up to 10 minutes of audio (duration read from the file). Returns { success:true, text, duration_s, model, language }. On failure returns { success:false, error }: not_found, media_expired (WhatsApp no longer has the file), too_long (> 10 min or > 16 MB), unsupported (not an audio / format not accepted / url not ours), transcription_failed, rate_limited.

Bulk support: accepts message_ids for batched execution.
- **whatsapp_messages_write** — Mark messages as read in a chat. Requires chat_jid. Optional message_id (marks up to this message; omit to mark all unread).

Bulk support: accepts message_ids for batched execution.
- **whatsapp_contacts_list** — Read WhatsApp contacts.
Actions:
- list: search across contacts (query optional — substring on name/phone). Default limit 50.
- get: full contact info by JID.

[Flattened action: list]
- **whatsapp_contacts_get** — Read WhatsApp contacts.
Actions:
- list: search across contacts (query optional — substring on name/phone). Default limit 50.
- get: full contact info by JID.

[Flattened action: get]
- **whatsapp_contact_photo** — Get the WhatsApp profile photo of ONE contact as a short-lived (15 min) HTTPS link, for showing an avatar. Read-only, nothing is sent. Cached 7 days (also 'no photo'); live lookups are paced per number (1 every 20 s, at most 200 a day), so call it only for contacts someone is looking at, never to sweep the address book. Returns { success:true, url, mime, size, picture_id, fetched_at, expires_at, cached }. On failure { success:false, error }: no_photo (none, or hidden by the contact's privacy), rate_limited (with retry_after_s), not_connected, unsupported, bad_jid (groups and channels are not supported).
- **whatsapp_groups** — List WhatsApp groups the account belongs to — subject, jid, participants count, owner.
- **whatsapp_group_members** — List the members of a WhatsApp group (live). Returns each participant's JID, phone, and admin/super-admin flag. Requires group_jid (…@g.us, from whatsapp_groups).
- **whatsapp_group_participants_add** — Manage participants of a WhatsApp group (the connected account must be a group admin). action: 'remove' kicks members, 'promote' makes them admin, 'demote' removes admin, 'add' invites. Pass 1–50 phone numbers (+E164) or JIDs in `users`.

[Flattened action: add]
- **whatsapp_group_participants_remove** — Manage participants of a WhatsApp group (the connected account must be a group admin). action: 'remove' kicks members, 'promote' makes them admin, 'demote' removes admin, 'add' invites. Pass 1–50 phone numbers (+E164) or JIDs in `users`.

[Flattened action: remove]
- **whatsapp_group_participants_promote** — Manage participants of a WhatsApp group (the connected account must be a group admin). action: 'remove' kicks members, 'promote' makes them admin, 'demote' removes admin, 'add' invites. Pass 1–50 phone numbers (+E164) or JIDs in `users`.

[Flattened action: promote]
- **whatsapp_group_participants_demote** — Manage participants of a WhatsApp group (the connected account must be a group admin). action: 'remove' kicks members, 'promote' makes them admin, 'demote' removes admin, 'add' invites. Pass 1–50 phone numbers (+E164) or JIDs in `users`.

[Flattened action: demote]
- **whatsapp_react** — React to a message with an emoji (or remove your reaction by passing an empty emoji). Requires chat_jid + message_id.

Bulk support: accepts message_ids for batched execution.
- **whatsapp_send_presence** — Show or clear a presence indicator in a chat — sends NO message.
state: 'composing' = "typing…", 'recording' = "recording audio…", 'paused' = stop showing it.
WhatsApp clears it by itself after a few seconds; repeat at most every ~3 s while still typing, and send 'paused' when done.
Only visible while this account has a live connection (realtime inbox / inbound webhook on).
- **whatsapp_watch_presence** — Watch a contact's presence for `seconds` (30–300, default 120) so their "typing…/recording…" reaches the realtime inbox.
WhatsApp only delivers typing from contacts you subscribed to while you are "available", so this marks the account available while any watch is alive — and an available account stops push notifications on the paired phone. Renew (~every 60 s) only while someone has the conversation open; let it expire otherwise. Sends no message.
- **whatsapp_poll_create** — Send a poll or vote on one.
Actions:
- create: { to, name, options[] (2–12), selectable_count? }
- vote:   { chat_jid, message_id, options[] (the option texts to select) }

[Flattened action: create]

Bulk support: accepts message_ids for batched execution.
- **whatsapp_poll_vote** — Send a poll or vote on one.
Actions:
- create: { to, name, options[] (2–12), selectable_count? }
- vote:   { chat_jid, message_id, options[] (the option texts to select) }

[Flattened action: vote]

Bulk support: accepts message_ids for batched execution.
- **whatsapp_message_delete** — Manage a message you can act on.
Actions:
- delete:  { chat_jid, message_id, for_everyone? (default true) } — delete for everyone (your msg) or just for you
- forward: { chat_jid, message_id, to } — forward a stored message to another chat
- edit:    { chat_jid, message_id, text } — edit one of your recent text messages

[Flattened action: delete]

Bulk support: accepts message_ids for batched execution.
- **whatsapp_message_forward** — Manage a message you can act on.
Actions:
- delete:  { chat_jid, message_id, for_everyone? (default true) } — delete for everyone (your msg) or just for you
- forward: { chat_jid, message_id, to } — forward a stored message to another chat
- edit:    { chat_jid, message_id, text } — edit one of your recent text messages

[Flattened action: forward]

Bulk support: accepts message_ids for batched execution.
- **whatsapp_message_edit** — Manage a message you can act on.
Actions:
- delete:  { chat_jid, message_id, for_everyone? (default true) } — delete for everyone (your msg) or just for you
- forward: { chat_jid, message_id, to } — forward a stored message to another chat
- edit:    { chat_jid, message_id, text } — edit one of your recent text messages

[Flattened action: edit]

Bulk support: accepts message_ids for batched execution.
- **whatsapp_chat_metadata** — Get metadata for a single chat (subject/name, archived/pinned/muted state, unread count, timestamps). Requires chat_jid.
- **whatsapp_chat_archive** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: archive]
- **whatsapp_chat_unarchive** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: unarchive]
- **whatsapp_chat_pin** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: pin]
- **whatsapp_chat_unpin** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: unpin]
- **whatsapp_chat_mute** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: mute]
- **whatsapp_chat_unmute** — Change a chat's state. action: archive/unarchive, pin/unpin, mute/unmute. Requires chat_jid.

[Flattened action: unmute]
- **whatsapp_group_manage_create** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: create]
- **whatsapp_group_manage_leave** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: leave]
- **whatsapp_group_manage_update** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: update]
- **whatsapp_group_manage_invite_link** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: invite_link]
- **whatsapp_group_manage_join** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: join]
- **whatsapp_group_manage_requests** — Group lifecycle/admin (the connected account must be a group admin for most actions).
Actions:
- create:      { name, participants[] }
- leave:       { group_jid }
- update:      { group_jid, name?, description? }
- invite_link: { group_jid, link_action: 'get'|'revoke' }
- join:        { invite }  (invite code or full invite link)
- requests:    { group_jid, req_action: 'list'|'approve'|'reject', users? }

[Flattened action: requests]
- **whatsapp_search** — Full-text search across all stored messages (SQLite FTS5). Optional chat_jid to scope. Returns matches with context.
- **whatsapp_history_coverage** — Show how far back the LOCAL message archive reaches per chat (oldest_ts, newest_ts, message_count, status). Use it to find pagination boundaries for whatsapp_messages and to decide whether to pull more with whatsapp_history_backfill. Optional query (filter by name/JID), kind, limit, or a single chat_jid.
- **whatsapp_history_backfill** — Request OLDER messages for a chat from your phone (on-demand history sync), extending what whatsapp_messages can read. Returns { status, messages_added }:
- "done"/"partial": it pulled messages_added new messages — read them via whatsapp_messages (paginate with `before`). "partial" means WhatsApp stopped early; wait and retry for more.
- "cooldown": you requested this chat <60s ago (retry_after_s tells you when). WhatsApp THROTTLES back-to-back requests — DO NOT retry in a loop; wait, then try once.
- "timeout": the phone didn't deliver in time (offline or throttled) — already-synced history is still readable; retry later.
BEST-EFFORT (gated by WhatsApp): one call usually pulls a batch (~50–70 msgs); pulling much deeper repeatedly often won't work. Connects live, may take up to ~1 minute. The initial sync already loaded deep history for most chats — check whatsapp_history_coverage first; only backfill when a chat's oldest_ts isn't far enough back.
- **whatsapp_send_template** — Send an APPROVED WhatsApp template message (official Meta API connection only).
This is the ONLY way to message a contact outside the 24-hour customer service
window (24 h since the contact's last message to you); whatsapp_send fails there.
Get the exact template name, language and variables from whatsapp_templates.
`components` follows Meta's format, e.g.
[{ "type": "body", "parameters": [{ "type": "text", "text": "Maria" }] }].
Result: { sent:true, id, delivery:"accepted_by_server" }; follow delivery with
whatsapp_message_status. Meta bills template conversations to the account owner.
- **whatsapp_templates** — List the message templates of this WhatsApp Business account (official Meta API connection only): name, language, status (APPROVED / PENDING / REJECTED…), category and components with their {{variables}}. Only APPROVED templates can be sent with whatsapp_send_template. Paginate with `after` = next_cursor.
- **whatsapp_message_status** — Delivery status of messages sent through the official Meta API connection, for one or more message ids (the `id` returned by whatsapp_send / whatsapp_send_template). Status goes accepted → sent → delivered → read, or failed (with Meta's error). Returns { results: [{ message_id, found, status, status_at, history, errors }] }.
- **whatsapp_webhook_get** — Show this WhatsApp install's outbound webhook: the current URL, the subscribed events (empty = all), include_result, and the catalog of subscribable events (available_events — e.g. whatsapp.message, whatsapp.reaction, and the whatsapp.* wildcard). Owner/admin only.
- **whatsapp_webhook_set** — Set (or remove) this WhatsApp install's outbound webhook. Owner/admin only.
- To set: pass `url` (https only, not localhost). `events` is the list of subscribed events ("permissions") — e.g. ["whatsapp.message"], or ["whatsapp.*"] for every WhatsApp event, or [] / omit for ALL events. See available_events from whatsapp_webhook_get. `include_result` (default true) controls whether the tool result is included in tool.call payloads. `secret` is optional (reserved).
- Subscribing to any whatsapp.* event makes the daemon hold a live connection per number and forward inbound messages to your URL.
- Late messages (older than 15 min, or replayed from the offline queue after a reconnect) are NOT delivered by default, so a bot never answers old messages; pass `deliver_late: true` to receive them (payload carries `offline` and `age_seconds`).
- To remove the webhook: pass `remove: true` (or an empty url).
- **whatsapp_config_get** — Show this install's editable-after-connect settings per connected number — currently the proxy (proxy_url): whether it's set and a masked preview (the raw value is never returned). Owner/admin or the connection owner.
- **whatsapp_config_set** — Change an editable-after-connect setting on a connected number WITHOUT re-pairing. Today the only field is `proxy_url` — the SOCKS5/HTTPS proxy WhatsApp connects through (recommended to avoid IP bans). Owner/admin or the connection owner.
- `account`: which number (id/wa_jid, phone, or label; omit if only one is connected).
- `values`: e.g. { "proxy_url": "socks5://user:pass@host:port" }. An empty string CLEARS the field (e.g. { "proxy_url": "" } connects with no proxy); omit the key to keep the current value.
The new value applies on the next (re)connection; the live session cache is invalidated so the next tool call uses it.
- **show_version** — Show the current MCP platform and adapter versions.
- **report_bug** — Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.
- **connect** — Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.
- **toolkit_info** — Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.
- **marketplace** — The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.
- **authenticate** — MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "whatsapp": {
    "url": "https://api.mcp.ai/p_whatsapp"
  }
}
```

## Documentation

## What WhatsApp does

WhatsApp MCP server connects an existing personal or Business WhatsApp account using multi-device QR pairing, similar to WhatsApp Web. Once paired, an MCP client can inspect chats, contacts, groups, and locally stored messages, then perform selected write operations such as sending messages, marking messages read, reacting, editing, forwarding, and deleting.

The server also covers group workflows. Agents can list members, add or remove participants, change administrator status, create or leave groups, update group details, manage invite links, join through an invite, and handle membership requests. Most participant and group administration actions require the connected account to have the necessary administrator rights.

## How it works

The hosted MCP endpoint is `https://api.mcp.ai/p_whatsapp`, and it accepts MCP over HTTP connections. Pairing associates one or more WhatsApp accounts with the installation; account listing reports identifiers, phone numbers, labels, proxy state, and connection status.

WhatsApp data is maintained in a local store used by the read tools. Call the sync operation after connecting or whenever chats, contacts, groups, or messages appear empty or outdated. Synchronization connects to WhatsApp and may take roughly 20–60 seconds. Message queries read from the local archive, while history coverage reports the available range and a backfill operation requests older messages from the phone.

Send operations accept either a WhatsApp JID or a phone number containing the country code. Group messages should use the group JID obtained from the groups listing. A successful send result with `accepted_by_server` confirms acceptance by WhatsApp's server, not delivery or read status on recipients' devices.

## Setup and configuration

Add the hosted endpoint to an MCP client that supports MCP over HTTP, then pair the WhatsApp account through the QR flow. The project provides installation links for Claude, Cursor, and VS Code, and lists compatibility with other MCP clients.

A SOCKS5 or HTTPS proxy can be configured per connection. The configuration tools expose whether a proxy is set and a masked preview, and allow the setting to be changed after pairing without reconnecting the account. The raw proxy value is not returned.

The installation can also be configured with an outbound webhook. Webhook tools show or change its URL, subscribed events, and result-inclusion setting. Pricing is based on active connections. Data returned by tools is sent to the selected LLM host, so the host's data-handling and training settings matter for message content.

## Tools and capabilities

- List paired accounts and refresh locally stored WhatsApp data.
- Browse chats, messages, contacts, groups, group members, and chat metadata.
- Search stored messages with SQLite FTS5 and inspect archive coverage.
- Request older chat history from the connected phone.
- Send text, images, video, audio, documents, and stickers; reply to messages; create polls and vote.
- Mark messages read, react, edit, forward, or delete them where WhatsApp permits.
- Archive, unarchive, pin, unpin, mute, and unmute chats.
- Create, update, join, leave, and administer groups, including invite links and membership requests.

Bulk execution is supported for several message-oriented operations through message ID lists.

## Limitations and notes

Message reads reflect the locally synchronized archive rather than an unrestricted copy of the account history. Use coverage and backfill operations when older content is needed. Group participant changes depend on administrator permissions, and message editing or deletion is limited by WhatsApp's own rules.

The server hosted at the MCP endpoint is proprietary, while the public wrapper, manifests, documentation, and skills repository is released under MIT. Tool results may contain private conversations and are passed to the LLM host selected by the user.

_Full upstream README: https://allmcps.com/mcp/whatsapp-2/readme_

