Imagine telling Claude: “Reply ‘Running 10 minutes late’ to Sarah and attach that funny cat meme I just uploaded.”


Seconds later — done. No switching apps. No copy-pasting. Everything stays local, private, and scripted through natural language.

That’s exactly what whatsapp-mcp-go enables.

This lightweight, pure-Go project bridges your personal WhatsApp account to Claude Desktop (or Cursor) via the Model Context Protocol (MCP). Claude can read chats, search contacts, send messages (text, images, voice notes), and download media — all without ever leaving your AI chat window.

In this hands-on guide, I’ll walk you through exactly how to set it up — whether you prefer Docker (easiest) or a manual Go build.

Let’s dive in.

Prerequisites (5 minutes max)

That’s it. No Python virtualenvs, no heavy Anthropic SDKs.

If you want zero hassle:

  1. Clone the repo:
git clone https://github.com/iamatulsingh/whatsapp-mcp-go.git
cd whatsapp-mcp-go
  1. Start everything:

    docker compose up
    

Done. Keep this terminal open (or run detached with -d).


Option 2: Manual Setup (Full Control)

Want to build and understand the pieces?

Step 1: Launch the WhatsApp Bridge

This is the persistent connection to WhatsApp (using whatsmeow under the hood).

Step 2: Build the MCP Server

This exposes the tools Claude can call.

cd whatsapp-mcp-go/whatsapp-bridge
go run main.go

You now have a binary: ./whatsapp-mcp

Step 3: Tell Claude (or Cursor) Where It Lives

Claude Desktop (macOS example):

Edit (or create)

{
  "mcpServers": {
    "whatsapp-mcp": {
      "command": "/Users/yourname/path/to/whatsapp-mcp-go/whatsapp-mcp-server/whatsapp-mcp"
    }
  }
}

Cursor users: put similar content in ~/.cursor/mcp.json. Restart the app. Claude should now list “whatsapp-mcp” as an available tool source.

Now the Fun Part: Talking to WhatsApp via Claude

Once connected, just chat normally — Claude automatically discovers and calls the right tool when needed.

Here are real-world prompts that work beautifully:

Claude handles contact lookup, JID resolution, filtering — you just speak naturally.

Pro Tips for Best Results

Demo

Wrapping Up

With whatsapp-mcp-go, you’ve turned Claude into a WhatsApp co-pilot — reading history, sending replies, handling media — all locally and with zero context switching.

It’s especially powerful for:

Give it a spin — clone, scan once, and start prompting.

Found it useful? Star the repo ⭐ Got improvements or want SSE mode for n8n/Zapier? Open an issue or PR.

Happy (hands-free) messaging!

Link to repo → https://github.com/iamatulsingh/whatsapp-mcp-go