WhatsApp MCP for macOS
WhatsApp MCP für macOS
Ein Model Context Protocol-Server, der Claude mit deinem WhatsApp verbindet. Lies Nachrichten, durchsuche Kontakte, sende Antworten – alles durch natürliche Konversation.
Funktionen
Kontakte suchen — Finde jeden per Name oder Telefonnummer
Nachrichten lesen — Erhalte Chatverläufe mit Datumsfilter und Suche
Chats auflisten — Sieh dir aktuelle Konversationen mit ungelesenen Nachrichten an
Nachrichten senden — Antworte direkt über Claude (mit QR-Authentifizierung)
Echtzeit-Empfang — Erhalte Nachrichten, sobald sie ankommen
Related MCP server: whatsapp-mcp
Voraussetzungen
macOS mit installierter und angemeldeter WhatsApp-Desktop-App
Python 3.10+
Node.js 18+ (zum Senden von Nachrichten)
Installation
Mit pip
pip install whatsapp-mcp-macosAus dem Quellcode
git clone https://github.com/kalki-kgp/whatsapp-mcp.git
cd whatsapp-mcp
pip install -e .Mit Claude Desktop verbinden
Konfigurationsdatei öffnen:
open ~/Library/Application\ Support/Claude/claude_desktop_config.jsonFalls sie nicht existiert, erstelle sie.
Den WhatsApp MCP-Server hinzufügen:
{ "mcpServers": { "whatsapp": { "command": "python3", "args": ["-m", "whatsapp_mcp"] } } }Claude Desktop neu starten (Cmd+Q, dann erneut öffnen)
Suche nach dem MCP-Tools-Symbol (🔨) in der Chateingabe – klicke darauf, um zu überprüfen, ob "whatsapp" aufgelistet ist
Chatten beginnen:
"Zeige meine letzten WhatsApp-Chats"
"Suche in Nachrichten nach Plänen für das Abendessen"
Mit Cursor verbinden
Füge dies zu .cursor/mcp.json in deinem Projekt hinzu:
{
"mcpServers": {
"whatsapp": {
"command": "python3",
"args": ["-m", "whatsapp_mcp"]
}
}
}Starte Cursor neu und verwende WhatsApp-Tools im KI-Chat.
Verwendung
Nachrichten lesen (funktioniert sofort)
Frag einfach Claude:
"Zeige meine letzten WhatsApp-Chats"
"Suche nach Nachrichten über das Abendessen"
"Was hat John gestern gesagt?"
"Gib mir eine Zusammenfassung der ungelesenen Nachrichten"
Nachrichten senden (erfordert Bridge)
Starte die WhatsApp-Bridge:
cd bridge && npm install && npm startBitte Claude, die Verbindung zu prüfen:
"Überprüfe den WhatsApp-Status"
Wenn ein QR-Code angezeigt wird, öffne die Daten-URL in einem Browser und scanne sie mit deinem Telefon
Sobald die Verbindung steht, kannst du senden:
"Sende eine Nachricht an Mama, dass ich mich verspäte"
"Antworte John mit 'klingt gut'"
Tools
Tool | Beschreibung | Erfordert Bridge |
| Verbindung prüfen, QR-Code bei Bedarf abrufen | Nein |
| Kontakte nach Name/Telefonnummer suchen | Nein |
| Aktuelle Konversationen auflisten | Nein |
| Nachrichten aus einem Chat abrufen | Nein |
| Über alle Chats hinweg suchen | Nein |
| Zusammenfassung ungelesener Nachrichten abrufen | Nein |
| Eine Nachricht senden | Ja |
| Eingehende Nachrichten in Echtzeit abrufen | Ja |
Funktionsweise
Claude ──MCP──▶ WhatsApp MCP Server
│
├──▶ Local SQLite DBs (read messages)
│ ~/Library/Group Containers/group.net.whatsapp.WhatsApp.shared/
│
└──▶ WhatsApp Bridge (:3010) ──▶ WhatsApp Web
(for sending)Leseoperationen fragen die lokale WhatsApp-Datenbank direkt ab – schnell und offline verfügbar.
Sendeoperationen laufen über die Bridge, die sich mit WhatsApp Web unter Verwendung von Baileys verbindet.
Entwicklung
# Clone
git clone https://github.com/kalki-kgp/whatsapp-mcp.git
cd whatsapp-mcp
# Install in dev mode
pip install -e ".[dev]"
# Run server
python -m whatsapp_mcpDatenschutz
Alle Daten bleiben lokal – Nachrichten werden aus deiner eigenen WhatsApp-Datenbank gelesen
Es werden keine Daten an externe Server gesendet (außer an WhatsApp Web beim Senden)
Der MCP-Server läuft lokal auf deinem Rechner
Lizenz
MIT
Available Tools
8 toolswhatsapp_get_messagesARead-only
Get messages from a specific WhatsApp chat.
Args: chat_jid: JID of the chat (from whatsapp_search_contacts or whatsapp_list_chats). after: Only messages after this datetime (ISO 8601). Defaults to 24h ago. before: Only messages before this datetime (ISO 8601). Defaults to now. limit: Max messages to return (max 200). search_text: Optional text to filter messages.
Inputs: chat_jid (required), after, limit, before, +1 more. Returns: result
whatsapp_incomingARead-only
Get recent incoming WhatsApp messages from the live connection.
These are real-time messages, not from the local database. Useful for checking new messages that just arrived.
Args: since_minutes: Look back N minutes (default 5, max 60).
Inputs: since_minutes. Returns: result
whatsapp_list_chatsARead-only
List recent WhatsApp chats ordered by last message time.
Args: limit: Number of chats to return (max 50). chat_type: Filter by 'dm', 'group', or 'all'.
Inputs: limit, chat_type. Returns: result
whatsapp_search_contactsARead-only
Search WhatsApp contacts by name or phone number.
Returns matching contacts with their JID, display name, and phone number. Use this to find a contact before reading their messages or sending them a message.
Args: query: Name or phone number to search for (partial match supported).
Inputs: query (required). Returns: result
whatsapp_search_messagesARead-only
Search for messages containing specific text across all chats.
Args: query: Text to search for (case-insensitive). chat_jid: Optional - restrict search to a specific chat. limit: Max results (max 50).
Inputs: query (required), limit, chat_jid. Returns: result
whatsapp_sendA
Send a WhatsApp message.
IMPORTANT:
First use whatsapp_status to ensure WhatsApp is connected.
Use whatsapp_search_contacts to get the correct JID.
Always confirm with the user before sending.
Args: recipient_jid: The JID from whatsapp_search_contacts. message: The text message to send.
Inputs: message (required), recipient_jid (required). Returns: result
whatsapp_statusARead-only
Check WhatsApp connection status.
Returns current status: 'connected', 'qr_pending', 'disconnected', or 'bridge_offline'. If QR code is needed, returns a data URL you can open in a browser to scan.
Call this before sending messages to ensure WhatsApp is connected.
Inputs: no named parameters. Returns: result
whatsapp_unreadARead-only
Get a summary of all unread WhatsApp messages.
Returns chats with unread messages and recent message previews. Great for "catch me up" or "what did I miss" requests.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes, but whatsapp_get_messages and whatsapp_search_messages could cause confusion as both retrieve messages with text filtering. whatsapp_get_messages focuses on a specific chat with time filters, while whatsapp_search_messages searches across all chats, but the overlap in functionality might lead to misselection by agents.
All tools follow a consistent 'whatsapp_verb_noun' pattern with snake_case throughout. The naming is predictable and clear, making it easy for agents to understand the action and target resource without ambiguity.
With 8 tools, this server is well-scoped for managing WhatsApp interactions on macOS. It covers essential operations like checking status, listing chats, searching contacts, retrieving messages, and sending messages, which is appropriate for the domain without being overly complex or sparse.
The toolset provides good coverage for core WhatsApp workflows, including status checks, contact search, message retrieval, and sending. However, there are minor gaps such as the inability to delete messages or manage group settings, which agents might need to work around, but the surface supports most common use cases effectively.
Maintenance
Related MCP Connectors
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Your own WhatsApp in Claude, ChatGPT and other AI apps. Not affiliated with WhatsApp or Meta.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Claude to interact with WhatsApp: read chats, search messages, send messages with a mandatory confirmation step, and transcribe voice notes locally, all with encrypted storage and prompt-injection scrubbing.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, search, and reply to your personal WhatsApp messages by linking as an extra device, with support for chat history, full-text search, media downloads, and sending messages or files.MIT
- AlicenseAqualityBmaintenanceEnables Claude Desktop to read, search, send, and broadcast WhatsApp messages and files, and manage groups and communities through a linked personal WhatsApp account.221MIT
- AlicenseAqualityBmaintenanceEnables Claude to read WhatsApp Desktop chats on a Mac, including messages, images, documents, and locally transcribed audio, through a local MCP server. Everything runs on the Mac with read-only access and no messages sent.64MIT