whatsapp-mcp
whatsapp-mcp is an open-source Model Context Protocol (MCP) server created by Luke Harries that connects personal WhatsApp accounts directly to desktop AI coding assistants such as Anthropic Claude Desktop and Cursor.
The system employs a clean, decoupled two-tier architecture: a Go WhatsApp Bridge (powered by the battle-tested `whatsmeow` multidevice library) communicates directly with WhatsApp's multi-device web protocol, maintaining a local SQLite message index (`whatsapp-bridge/store/`). Operating on top of this storage layer is a Python MCP server (executed via `uv`) that exposes 10 standardized MCP tools—including contact search, contextual chat retrieval, direct messaging, and multimedia file attachments (images, video, documents, and Opus audio via FFmpeg).
Messages remain stored locally on the user's computer and are only surfaced to the model when an agent specifically invokes a tool call. Operators should take note of critical operational prerequisites: authentication requires scanning a terminal QR code with a mobile device (which periodically requires re-authentication after several weeks), and Windows users must configure CGO and a local C compiler (MinGW/MSYS2) to compile the SQLite driver. Most importantly, users must implement defensive system prompts to mitigate 'lethal trifecta' prompt injection attacks originating from untrusted incoming chats.