Whatsapp MCP logo

Whatsapp MCP

Connects an AI assistant to personal WhatsApp chats for search, summaries, drafting, messaging, and media sharing.

Install Whatsapp MCP

Run the project’s own setup commands, in order.

Setup steps from the project

whatsapp-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Run
    bash -s -- --service --codex
    
  2. 2. Configure
    cp .env.example .env            # set API_AUTH_TOKEN (openssl rand -hex 32)
    
  3. 3. Start the server
    docker compose up -d --build
    
  4. 4. Sign in
    docker compose logs -f bridge   # scan the QR, or open http://127.0.0.1:8080/qr
    
  5. 5. Install
    curl -fsSL https://raw.githubusercontent.com/rodrigopg/whatsapp-mcp/main/install.sh | bash -s -- --codex
    
  6. 6. Start the server
    args = ["--directory", "/path/to/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py"]
    

Overview

whatsapp-mcp MCP server connects an MCP-compatible assistant to a personal WhatsApp account through WhatsApp Web's multidevice API. It stores messages locally in SQLite and exposes tools for contact and chat search, message retrieval, action-focused summaries, matter tracking, draft approval, reactions, polls, and outbound messages or files. Reach for it when an agent needs to review conversations or help manage follow-ups without sending anything until explicitly approved. Read-only mode is available for safer remote access.

Use cases

  • Search WhatsApp conversations by contact or phone number
  • Review messages that require follow-up
  • Track promises and pending requests across chats
  • Draft and approve chase messages
  • Send replies, files, contact cards, and poll votes

Key features

  • LID-aware contact and chat resolution
  • Local SQLite message storage
  • Action-focused morning summaries
  • Matter and review-cursor tracking
  • Approval-based chase drafts
  • Read-only bridge mode

Tools44

What Whatsapp MCP lets your agent do. Expand a tool for its parameters.

Self-reported~1.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 34d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Tools exposed44Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Whatsapp MCP works

What whatsapp-mcp does

whatsapp-mcp connects an AI assistant to a personal WhatsApp account and makes selected conversation data and messaging actions available through MCP. It supports contact lookup, chat and message search, filtered message retrieval, message context, recent interactions, active-chat reports, and native contact-card sharing. Messages can include text, images, videos, documents, and audio; the project also supports audio transcription.

The server adds workflow tools for personal follow-up management. It can identify open matters and messages awaiting review, record or close commitments, reopen matters when a conversation resumes, and generate a morning summary limited to items requiring action. It can create chase drafts, list them, send only an explicitly approved draft, or discard a pending draft.

How it works

The bridge signs in to the user's WhatsApp account through the WhatsApp Web multidevice API, using the whatsmeow library. A QR code is used during pairing. WhatsApp data is retained in a local SQLite database, and the agent receives data when it calls the corresponding MCP tools.

Contact resolution handles both phone-based JIDs and WhatsApp's internal LID identifiers. The bridge normalizes contacts and merges corresponding chat records so searches and direct-chat lookups can use phone numbers more reliably. Sent text messages are persisted locally immediately, including on accounts where a multi-device echo is unavailable.

Some operations are asynchronous. For example, request_chat_history asks the online phone for older messages; use list_messages afterward to inspect the returned messages. The bridge also exposes local REST routes, including the backfill endpoint used for that operation.

Setup and configuration

Claude Code installation is available through the project's plugin marketplace:

text
/plugin marketplace add rodrigopg/claude-plugins
/plugin install whatsapp-mcp@rodrigopg
/whatsapp-mcp:setup

The setup flow installs the components, displays a QR code, and guides pairing from WhatsApp's linked-devices screen. A PNG QR fallback is stored in the bridge's store directory and is removed after pairing.

The REST API binds to loopback by default. BIND_ADDR can widen exposure, but a non-loopback address requires API_AUTH_TOKEN; requests then use a Bearer token. MCP_READONLY switches the bridge to a mode that rejects API operations that send or change WhatsApp data. MEDIA_ALLOWED_ROOTS can replace the default permitted locations for files sent by path. Local settings and stored message data are protected with restrictive filesystem permissions.

Tools and capabilities

  • Search contacts with name, phone-number, and LID-aware matching.
  • List chats and messages with filters, pagination, and surrounding context.
  • Request older chat history from the paired phone.
  • Summarize daily actions and manage favorites.
  • Track matters, review unprocessed messages, and advance the review cursor.
  • Draft, approve, send, or discard follow-up messages.
  • Send text, files, native contact cards, reactions, poll votes, and quoted replies.
  • Retrieve direct chats, contact-related chats, last interactions, and activity by time period.

Limitations and notes

The project is independent and is not affiliated with WhatsApp or Meta. Agents can encounter prompt injection in message content, so remote deployments should be treated as access to private data and account actions. Read-only mode reduces the available write surface but does not change the sensitivity of messages exposed to the agent.

Sending files by path is restricted to approved locations by default, including Downloads, temporary storage, and downloaded media. Files must be regular files no larger than 100 MB, and session and message databases remain outside the permitted media roots. Deleting another group member's message requires both stored author information and group-admin permission. Reacting to another member's message likewise requires that member to exist in the bridge's local history.

Favorites suggestions are proposals only, while chase drafts do not send until approved. A requested history backfill wakes the paired phone and returns results asynchronously.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Whatsapp MCP

whatsapp-mcp is an MCP server that connects an AI assistant to a personal WhatsApp account through the WhatsApp Web multidevice API. Its main tools search contacts, read chats and messages, summarize pending actions, track matters, draft replies, and send approved messages or files.

Install it through the Claude Code plugin marketplace, then run its setup command. Add the rodrigopg marketplace, install whatsapp-mcp@rodrigopg, and run /whatsapp-mcp:setup; the flow installs the components and guides QR-code pairing.

whatsapp-mcp stores messages locally in SQLite on the computer running the bridge. Data is supplied to the AI only when an agent accesses it through MCP tools, and the project applies restrictive permissions to its store directory and files.

Set MCP_READONLY to enable read-only operation. In that mode, the bridge refuses API routes that send messages or otherwise change WhatsApp data, which is intended to reduce risk when the service is accessed remotely.

whatsapp-mcp resolves phone-number and LID identifiers together for contact searches and direct-chat lookups. It normalizes LID records to phone-based identifiers when writing data and merges existing LID chat rows during startup.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWhatsapp MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/whatsapp-mcp-2?style=directory)](https://allmcps.com/mcp/whatsapp-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/whatsapp-mcp-2"><img src="https://allmcps.com/api/badge/whatsapp-mcp-2?style=directory" alt="Whatsapp MCP on AllMCPs" /></a>