
How to add WhatsApp MCP Server (lharries) to Claude Desktop
Connect your personal WhatsApp: search, read and send messages and media locally Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 15, 2026 ยท 5.7kโ ยท stdio ยท no auth
Claude Desktop config for WhatsApp MCP Server (lharries)
git clone https://github.com/lharries/whatsapp-mcp && cd whatsapp-mcp/whatsapp-bridge && go run main.go{
"mcpServers": {
"whatsapp-mcp-server-lharries": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
]
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the WhatsApp MCP Server (lharries) config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm WhatsApp MCP Server (lharries)'s tools appear under the ๐ tools menu.
Before you start
- Go (to build and run the WhatsApp bridge)
- Python 3.6+ and the uv package manager (for the MCP server)
- Claude Desktop or Cursor as the MCP client
- A phone with WhatsApp installed to scan the linking QR code (an available device-link slot)
- FFmpeg (optional) โ required only for sending audio as proper WhatsApp voice messages
What WhatsApp MCP Server (lharries) can do in Claude Desktop
search_contactsSearch your contacts by name or number
list_chatsList available chats with metadata
list_messagesRetrieve messages, with filters and context
get_chatGet metadata about a specific chat
get_direct_chat_by_contactFind a direct chat with a specific contact
get_contact_chatsList all chats involving a specific contact
get_last_interactionGet the most recent message with a contact
get_message_contextRetrieve messages around a given message
Security
Authenticates against your personal WhatsApp via the unofficial web multidevice API (QR pairing), which can risk account flags and stores your full chat history in a local unencrypted SQLite DB โ protect the data files and the host machine.
WhatsApp MCP Server (lharries) + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the WhatsApp MCP Server (lharries) config there under the "mcpServers" key and restart the client.
Is WhatsApp MCP Server (lharries) safe to use with Claude Desktop?
Authenticates against your personal WhatsApp via the unofficial web multidevice API (QR pairing), which can risk account flags and stores your full chat history in a local unencrypted SQLite DB โ protect the data files and the host machine.
Does this use the WhatsApp Business API?
No. It links to your personal account via WhatsApp's web multidevice API (the same mechanism as WhatsApp Web), using the whatsmeow Go library โ no Business API or paid cloud service.
Where are my messages stored?
Locally, in a SQLite database under whatsapp-bridge/store/. They're only sent to the LLM when a tool reads them.
Why do I have to re-link every few weeks?
WhatsApp's multidevice sessions expire roughly every 20 days, so you'll periodically re-scan the QR code to re-authenticate.