Set Up WhatsApp MCP

How to set up WhatsApp MCP in Claude, ChatGPT, Cursor and Codex (step by step)

Perisclaw Logo

Anjali Pandey

Anjali Pandey

Updated
Updated

Content Marketing Lead

Content Marketing Lead

You have Claude Code or Cursor open all day, and the WhatsApp MCP repo you found wants Go, Python, uv, a QR scan in your terminal and a JSON file with absolute paths.

The quickest route is a hosted server: add https://api.perisclaw.com/mcp/plugin to Claude Code, Codex, Cursor or Claude (in ChatGPT, install the Perisclaw plugin), approve the sign-in in your browser, and choose Read only or Read & write. If you'd rather run everything on your own machine, the open-source lharries/whatsapp-mcp takes 30 to 90 minutes. Exact steps for both are below.

What MCP is, in two sentences

MCP (Model Context Protocol) is an open standard that lets AI apps like Claude, ChatGPT, Cursor and Codex use tools and data outside the chat. A WhatsApp MCP server gives your AI tools such as "search messages", "read chat" and "send message", and your AI calls them when you ask.

There are three routes: hosted (Perisclaw), self-hosted (lharries/whatsapp-mcp and forks), and the WhatsApp Business API for company numbers. If you haven't picked yet, read our comparison of WhatsApp MCP servers first; this page is the how-to.

Hosted route: Perisclaw in any AI client

Perisclaw runs the WhatsApp connection for you, on your own number as a linked device, and every client uses the same address, https://api.perisclaw.com/mcp/plugin. It's also in the public MCP Registry as com.perisclaw/whatsapp. Sign-in is OAuth, so there's no API key to paste or leak.

If you don't have an account, the first sign-in window lets you create one and link WhatsApp there, by scanning a QR code or entering a pairing code on your phone.

The Perisclaw sign-up page that opens during your first MCP sign-in, with a Continue with Google button

Claude Code

Run this in your terminal (--scope user makes it available in every project):

claude mcp add --transport http --scope user perisclaw https://api.perisclaw.com/mcp/plugin

Then start Claude Code, type /mcp, pick perisclaw and authenticate in the browser window that opens.

Codex CLI

Run these two commands; the second opens the sign-in in your browser:

codex mcp add perisclaw --url https://api.perisclaw.com/mcp/plugin

codex mcp login perisclaw

Or add a [mcp_servers.perisclaw] section to ~/.codex/config.toml with the line url = "https://api.perisclaw.com/mcp/plugin", then run the login command.

Cursor

Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{ "mcpServers": { "perisclaw": { "url": "https://api.perisclaw.com/mcp/plugin" } } }

When Cursor first connects to the server it asks you to sign in; approve it in your browser. Cursor asks you to sign in again every 30 days.

Claude on the web, desktop and mobile

Our plugin for Claude's directory is waiting for Anthropic's approval, so for now you add a custom connector:

  1. In Claude, open Customize → Connectors (Settings → Connectors in older versions) and choose Add custom connector.

  2. Name it "Perisclaw" and paste https://api.perisclaw.com/mcp/plugin.

  3. Click Connect, sign in and choose your access level.

Claude's free plan allows one custom connector. On Team and Enterprise, an owner adds the connector in organization settings first, then you click Connect. A connector you add here also shows up in Claude Desktop; Claude Desktop's config file is only for servers that run on your computer.

ChatGPT

Perisclaw is a published plugin, so you don't need developer mode. Open Perisclaw in ChatGPT, choose Install plugin, then Connect, sign in, and pick your access level.

Optional: the Perisclaw workflow skill

In Claude Code or Cursor you can also add the free Perisclaw workflow skill, which tells your AI to check who it's messaging and ask before sending.

Test that it works

Start a new chat and try, in this order:

  1. "What needs my reply on WhatsApp today?"

  2. "Find the address Priya sent me last month."

  3. "Summarise the vendor group since Monday and list anything I need to decide."

  4. With write access: "Draft a message to Priya saying I'll call at 5." Your client asks before it uses the sending tool, so check the text and approve it.

If the first prompt returns your chats, you're done. Searching and reading don't mark anything as read, so nobody sees blue ticks.

Choose an access level

Access

What your AI can do

Read only

Search and read chats, contacts, groups and automations. It can't send or change anything.

Read & write

Everything above, plus send messages and files (up to 25 MB), react, and manage chats, groups, labels and contacts.

Start with read only. To widen it later, connect the client again and choose read and write; approving the wider grant signs that client's older sessions out. The Perisclaw web app lists every connected client with its access level, and removing one cuts access straight away. Chats you block in Perisclaw stay hidden from every client.

Self-hosted route: lharries/whatsapp-mcp

This runs entirely on your computer and works with local clients such as Claude Desktop, Cursor and Claude Code, not with ChatGPT or Claude on the web.

  1. Install the tools: Go, Python 3.11 or newer, and uv (curl -LsSf https://astral.sh/uv/install.sh | sh). FFmpeg is optional, for sending voice notes.

  2. Clone and start the bridge: run git clone https://github.com/lharries/whatsapp-mcp.git, then cd whatsapp-mcp/whatsapp-bridge, then go run main.go. Scan the QR code it prints with WhatsApp on your phone (Settings → Linked Devices → Link a device), and leave it running.

  3. Point your client at the Python server: add a whatsapp server whose command is the output of which uv and whose arguments are --directory, the full path to whatsapp-mcp/whatsapp-mcp-server, run and main.py. Save it in ~/Library/Application Support/Claude/claude_desktop_config.json for Claude Desktop on a Mac, or ~/.cursor/mcp.json for Cursor.

  4. Restart the client: WhatsApp appears as a set of tools.

The client config from step 3 looks like this:

{ "mcpServers": { "whatsapp": { "command": "/full/path/to/uv", "args": ["--directory", "/full/path/to/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py"] } } }

Things that catch people out:

  • Re-pairing: the README says you may need to scan the QR code again after about 20 days.

  • Two processes: the Go bridge and the Python server both have to run; if your laptop sleeps, sync stops.

  • History takes time: after the first scan, messages can take several minutes to load.

  • Out of sync: stop the bridge, delete whatsapp-bridge/store/messages.db and whatsapp-bridge/store/whatsapp.db, and scan again.

  • Windows: run go env -w CGO_ENABLED=1 and install a C compiler such as MSYS2 first.

  • Open port: the bridge also starts a REST API on port 8080 that listens on all network interfaces with no password, so don't run it on a shared network without a firewall.

  • Maintenance: the repo's last commit was July 2025. verygoodplugins/whatsapp-mcp is a maintained project with the same design and an HTTP option.

Business API route, briefly

If you want an AI to message customers from a company number, you need Meta's WhatsApp Cloud API, usually through a provider like Twilio, plus an MCP server that calls it. Plan for a Meta Business portfolio, business verification that Twilio says can take several weeks, usually a dedicated number, and per-message fees. It can't read your personal chats.

Troubleshooting

The WhatsApp tools don't appear: restart the client after adding the server, and check the URL ends in /mcp/plugin. In Claude Code, run /mcp to see whether it says it needs authentication.

The sign-in window never opened: in Codex, run codex mcp login perisclaw; in Claude Code, use /mcp; in Cursor, open its MCP settings and sign in to the perisclaw server from there.

My AI says it can't send messages: you connected with read only. Connect again and choose read and write.

It worked yesterday and now it's disconnected: open WhatsApp → Settings → Linked Devices on your phone. If Perisclaw isn't there, choose Reconnect WhatsApp in the Perisclaw web app. WhatsApp allows four linked devices and logs them out if your phone goes unused for over 14 days.

Cursor asks me to sign in again: that's expected every 30 days.

FAQ

Can I use WhatsApp MCP in ChatGPT without developer mode?

Yes, with Perisclaw, because it's a published app you install from ChatGPT's directory. Adding your own MCP server in developer mode is limited to Business, Enterprise and Edu workspaces.

How can I let Cursor access my WhatsApp messages?

Add https://api.perisclaw.com/mcp/plugin to ~/.cursor/mcp.json, sign in, and choose read only. If you'd rather self-host, lharries/whatsapp-mcp also documents a Cursor config.

Can Claude read my WhatsApp groups?

Yes. Once connected, ask "Summarise the Launch group since Monday". With read and write access it can also manage group settings and members; your client asks before each change.

Do I connect each AI tool separately?

Yes. Each client signs in on its own and gets its own access level, so Claude Code can be read and write while ChatGPT stays read only. One Perisclaw subscription covers all of them.

Connect WhatsApp to Claude, Cursor, Codex or ChatGPT in a couple of minutes. Start your 7-day free trial →

Try Perisclaw free

Your personal AI assistant on WhatsApp. It reads the chats you allow and gets things done for you. 7-day free trial, no card needed.

Start for free