lharries/whatsapp-mcp
Free用于搜索个人 WhatsApp 消息、联系人以及向个人或群组发送消息的 MCP 服务器。
About lharries/whatsapp-mcp
The WhatsApp MCP server is an open-source implementation of the Model Context Protocol (MCP) that enables AI assistants like Claude to interact with a user's personal WhatsApp account. It allows searching and reading WhatsApp messages (including text, images, videos, documents, and audio), searching contacts, and sending messages to individuals or groups. The server connects directly via the WhatsApp web multidevice API using the whatsmeow library, stores all messages locally in a SQLite database, and only exposes data to the LLM when explicitly accessed through tools. It requires Go, Python 3.6+, UV, and optionally FFmpeg for audio conversion. Users authenticate by scanning a QR code with the WhatsApp mobile app. The server is designed for integration with Claude Desktop or Cursor.
Key Features
Pros & Cons
- Open source and free to use
- Local storage of messages ensures privacy (data only sent to LLM when tools are called)
- Supports multiple media types (images, videos, documents, audio)
- Easy integration with popular AI tools like Claude Desktop and Cursor
- Active GitHub repository with regular updates
- Requires re-authentication every ~20 days
- Windows compatibility requires manual setup of CGO and a C compiler
- Project injection vulnerability could lead to private data exfiltration (as noted in the repository)
- Not an official WhatsApp Business API; limited to personal accounts
- Technical setup required (Go, Python, UV, FFmpeg optional)