Purpose whatsapp-mcp provides AI agents with an MCP interface to access WhatsApp. It consists of two parts: the MCP server wa-mcp written in Rust, and the Go bridge wa-bridge based on whatsmeow. The two communicate with the MCP host via stdio, and message and session data are stored in a local SQLite database with full-text search support.
Key capabilities
- Provides 39 tools covering reading, searching, sending, replying, emoji reactions, editing, and deleting messages, as well as group and community management.
- Supports resources, prompts, and real-time notifications: after subscribing to whatsapp://{account}/chat/{chat}/messages, a notifications/resources/updated notification is received when a new message arrives in that chat.
- Supports multiple accounts, each using a separate alias and data directory.
- Supports full-text search and can hand media such as voice messages and images to the agent as raw files.
- Built-in prompts include catch_up, summarize_chat, draft_reply (drafts in the user's own writing style), daily_digest, and extract_actions.
- Chats or contacts can be specified by JID, international number, or name; name matching is case- and accent-insensitive; dates support 2026-09-30, 2026-09-30T08:00, today, yesterday, or duration forms such as 24h and 7d. Tool descriptions are in French.
Usage
- Installation: you can run the install script to download the prebuilt binary for the corresponding platform (macOS, Linux), verify it, and install wa-mcp and wa-bridge to ~/.local/bin (can be overridden with WA_MCP_INSTALL_DIR). The two binaries must be in the same directory, because wa-mcp launches wa-bridge from that directory. Archives for aarch64-apple-darwin, x86_64-apple-darwin, x86_64-unknown-linux-gnu, and aarch64-unknown-linux-gnu are also available from the releases page. Building from source requires Rust 1.94+, Go 1.25+, and protoc, using make build PROFILE=release.
- Verify: run wa-mcp doctor, which should show bridge … ok; if it reports a missing bridge program, you can place wa-bridge next to wa-mcp, or specify the path via --bridge.
- Pair: run wa-mcp pair <alias> --phone <international number>, then on your phone go to WhatsApp › Linked devices › Link with phone number and enter the 8-digit code shown in the terminal; keep the process running until history messages have been downloaded and indexed, then press Ctrl-C to stop. Without --phone, the terminal prints a QR code.
- Connect to an MCP host: configure it in Claude Desktop's claude_desktop_config.json, or run wa-mcp serve for any stdio MCP client; add --read-only to expose only read tools. You can also register it with claude mcp add whatsapp -- wa-mcp serve.
- Check: call the session_status tool; the status should be connected.
Use cases Suitable for users who want AI agents to read, search and organize WhatsApp chat history, draft replies, generate daily summaries, extract to-dos, or manage groups and communities.
Limitations and caveats
- Only one instance can run per account; a second wa-mcp for the same account will refuse to start due to the account lock; stop wa-mcp pair before starting the host serve.
- The WhatsApp session is only valid while wa-mcp serve is running; if the host stops the idle server, the connection drops. WhatsApp also unlinks the device if the phone is offline for about 14 days.
- All data is stored locally and no network ports are opened; session.db stores the WhatsApp encryption keys, so the data directory should be protected like a password.
- Agents with message reading, WhatsApp writing and other outbound channels face prompt injection risk; it is recommended to place write tools behind host approval, or use --read-only.
- Sending is rate-limited to 20 messages per account per minute; this is an unofficial client, and automated or bulk sending may get the number banned.
- The projectis licensed under MIT, and the bridge program links against whatsmeow under MPL-2.0; it is not affiliated with WhatsApp or Meta.