MCP Directory

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

  1. 1Open Claude Desktop โ†’ Settings โ†’ Developer โ†’ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
  2. 2Paste the WhatsApp MCP Server (lharries) config below under the top-level "mcpServers" key.
  3. 3Fill in any placeholder secrets (API keys, paths) in the snippet.
  4. 4Save the file, then fully quit and reopen Claude Desktop.
  5. 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_contacts

Search your contacts by name or number

list_chats

List available chats with metadata

list_messages

Retrieve messages, with filters and context

get_chat

Get metadata about a specific chat

get_direct_chat_by_contact

Find a direct chat with a specific contact

get_contact_chats

List all chats involving a specific contact

get_last_interaction

Get the most recent message with a contact

get_message_context

Retrieve 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.

View repo Full WhatsApp MCP Server (lharries) page