Open source · MIT licence

A WhatsApp MCP server on your own number

whatzmcp is an open source WhatsApp MCP server. Claude or another AI assistant reads, searches and sends WhatsApp messages from the number you already use, and it runs on your machine.

  • Open source, MITFree to run yourself
  • Runs on your machineTalks only to WhatsApp
  • Your own numberA linked device, like WhatsApp Web
  • Any MCP clientClaude Code, Claude Desktop, Cursor
npx -y github:whatzmcp/whatzmcp login
claude mcp add whatzmcp -- npx -y github:whatzmcp/whatzmcp

Prefer hosted? A hosted version is coming. Write to hi@whatzmcp.com.

✳ Your agent, drafting a reply
From now on you answer the WhatsApp on workshop days. The notes say which bikes are ready for pickup. Custom builds and their prices go to me first, not to the customer.
Waited for new messages1 from Marcus, 10:41
Replied to Marcus from your number10:42
Waiting for the next message

Built for agents that speak MCP

MCP is the standard way AI agents plug into outside tools. whatzmcp is a WhatsApp MCP server, so it is meant for that kind of agent.

  • Claude Code
  • Claude Desktop
  • Cursor
  • OpenClaw

The README has a ready config block for each of these, a stdio entry for any other MCP client, and a local HTTP mode that only listens on 127.0.0.1.

How setup works

Three steps, done once, all on your own machine. You need Node.js 20 or newer and a phone with WhatsApp. No account with us, no key from us.

bike-shop · zsh · 80×24
$ npx -y github:whatzmcp/whatzmcp login
# scan the QR code: WhatsApp, Settings, Linked devices, Link a device
$ claude mcp add whatzmcp -- npx -y github:whatzmcp/whatzmcp

# step 3, in your agent

> From now on you answer the WhatsApp on workshop days. The notes say which bikes are ready for pickup. Custom builds and their prices go to me first, not to the customer.
Understood. Waiting for new messages.  Friday 09:58

Config blocks for Claude Desktop, Cursor, OpenClaw and Docker are in the README.

1

Link the number you already use

Run the login command and scan the QR code: on your phone open WhatsApp, Settings, Linked devices, Link a device. Prefer a code? Add --pair-code with your number and type the 8 character code on the phone.

2

Add it to your agent

One line for Claude Code. For Claude Desktop, Cursor and OpenClaw the README has the config block to paste. Restart the client after.

3

Tell your agent what to do, in plain words

Ask it to run get_whatsapp_status first; it should say connected. Then ask it to read today's chats, find an old message, or answer someone who just wrote. Your agent decides what to say. The server only sends and receives.

What a WhatsApp MCP server does for your agent

It is the bridge between your agent and your WhatsApp. The thinking stays with the agent you already use.

Your agent decides what to writeThe server does not write or send a message on its own.
It uses the number you already haveNot a new business number.
It runs where you run itYour laptop, a home server, a box you rent. It talks only to WhatsApp.
You stop it by stopping the processOn your machine, whenever you want.
You unlink it from your phone at any timeUnder Linked devices.
13 tools to read, search, wait for and send messagesEvery send goes to one recipient. Groups included.
Example chat. Sofia is made up, not a customer.

Read this before you link a number

Running it yourself costs nothing, but your WhatsApp number is the thing at risk. whatzmcp starts slow and builds up, the way a person getting started would.

Unofficial protocolwhatzmcp uses the WhatsApp Web protocol, which is unofficial and can change. It is not the WhatsApp Business API, and WhatsApp decides bans based on how an account behaves.
Answer people who wrote to youMessaging people who know you and replying to people who wrote first keeps you in the safest place. On day 1 and day 2 you can reply to anyone who wrote to you, but you cannot start new conversations.
Keep your phone online now and thenIf the phone stays offline for a long time, WhatsApp signs out linked devices and you link again.
Built in limitsA random 45 to 120 second wait between new contacts, a typing indicator before each message, one recipient per send. When a limit is reached nothing is sent, and all sending stops if WhatsApp refuses the session.

The code is on GitHub

whatzmcp is open source under the MIT licence. Read the code before you link your number, open an issue, or send a pull request.

Prefer hosted? A hosted version is coming. Write to hi@whatzmcp.com.

No invite, no account with us. Anyone can run it.

whatzmcp / whatzmcpgithub.comPublic
The open source WhatsApp MCP server

Connect your own WhatsApp account to Claude and other AI assistants. Runs on your machine.

LicenceMIT
NeedsNode.js 20 or newer, or Docker
ClientsClaude Desktop, Claude Code, Cursor, OpenClaw
Your data~/.whatzmcp on your machine
From the README on github.com/whatzmcp/whatzmcp.
Example agent session. Kofi is made up, not a customer.
✳ Your agentFriday 11:23
From now on you answer the WhatsApp on workshop days. The notes say which bikes are ready for pickup. Custom builds and their prices go to me first, not to the customer.
Waited for new messages1 from Kofi, 11:20
Kofi asks what a custom gravel build on his own steel frame would cost. Your brief says custom builds and prices go to you first. What should I tell him?
tell him I will call after 2
Replied to Kofi from your number11:23
Read by Kofi11:24
Waiting for the next message

You decide how far it goes

Because it runs on your machine, every off switch is yours.

Check firstTell your agent to show you each reply before it goes out, and keep it that way until you trust what it sends. Your agent follows that like any other instruction.
Unlink any timeRemove the device under Linked devices on your phone and the link is gone.
Stop the processShut the server down on your machine and nothing more is sent or received. There is no server of ours that keeps going without you.
Nothing on its ownThe server only sends and receives. Every message starts with your agent.

What people ask about a WhatsApp MCP

The questions people search before they link a number, answered in a line or two. The same list feeds the FAQ data on this page.

What is a WhatsApp MCP server?

It is a small program that lets an AI assistant such as Claude use WhatsApp as a tool, through MCP, the standard assistants use to plug into outside tools. whatzmcp is an open source one: it runs on your machine as a linked device, so your assistant can read your chats, search your message history and send messages for you. It is free and MIT licensed.

How do I connect Claude to my WhatsApp?

Run npx -y github:whatzmcp/whatzmcp login and scan the QR code with WhatsApp on your phone (Settings, Linked devices, Link a device). Add it to Claude Code with claude mcp add whatzmcp -- npx -y github:whatzmcp/whatzmcp, or put the same command in the Claude Desktop config, and restart. Then ask Claude to run get_whatsapp_status. It should say connected.

Is there an open source, self hosted WhatsApp MCP server that works with my own number?

Yes. whatzmcp is open source under the MIT licence and runs on your own machine. It links to the WhatsApp or WhatsApp Business app you already use as a linked device, the same way WhatsApp on a computer does. The code is on GitHub at github.com/whatzmcp/whatzmcp.

Does my WhatsApp data leave my machine?

No. Messages go between your machine and WhatsApp only and are stored in a SQLite file in your data folder, ~/.whatzmcp. There is no telemetry, no analytics, no update check and no hosted API. Your MCP client sees the messages your assistant reads, so the client's own data handling applies to those.

Will WhatsApp ban my number if an AI assistant uses it?

WhatsApp decides that, based on how an account behaves. whatzmcp is built to behave like a careful person: a warm up ramp that starts at 50 messages and no new contacts on day 1, a random wait between new contacts, a typing indicator before each message, one recipient per send, and a full stop if WhatsApp refuses the session. Messaging people who know you and replying to people who wrote first keeps you in the safest place.

Does it need the WhatsApp Business API?

No. It links to your normal WhatsApp or WhatsApp Business app as a linked device, the same way WhatsApp on a computer does. No Meta developer account, templates or API fees.

Can it send bulk messages?

No. There is no bulk tool, and send_message takes exactly one recipient per call. Lists and comma separated numbers are rejected.

Does it work with WhatsApp groups?

Yes. Groups show up in list_chats with type group, their messages are stored and searchable, each message names the member who sent it, and you can reply in a group by passing its chat_id.

Does it work with Cursor, Claude Desktop or OpenClaw?

Yes. The README has a config block for Claude Desktop, Claude Code, Cursor and OpenClaw, a stdio entry for any other MCP client, and a local HTTP mode that only listens on 127.0.0.1.

Can I run it in Docker?

Yes. Run docker run -it --rm -v whatzmcp-data:/data ghcr.io/whatzmcp/whatzmcp login once, then use docker run -i --rm -v whatzmcp-data:/data ghcr.io/whatzmcp/whatzmcp as the command in your MCP client.

How do I unlink it?

Run npx -y github:whatzmcp/whatzmcp logout, or ask your assistant to call disconnect_whatsapp. You can also remove it on your phone under Settings, Linked devices. Delete ~/.whatzmcp to remove the stored messages too.

Is the most popular WhatsApp MCP repo still maintained?

Check the last commit date and the open issues on GitHub before you link your number to any repo, ours included. The whatzmcp history and issues are public at github.com/whatzmcp/whatzmcp.

Is there a hosted WhatsApp MCP if I do not want to run it myself?

A hosted version of whatzmcp is coming. Write to hi@whatzmcp.com if you want it.

whatzmcp · README.md
# tools (door-contract 1.0)
get_whatsapp_statusstatus, sends, caps, warm up day connect_whatsappQR code or 8 character code list_chatsmost recent first, by type list_messagesnewest first, paged search_messagesfull text, stored messages wait_for_messagesup to 55 seconds send_messageone recipient, optional media mark_readread receipts get_usagetoday's sends and caps
# plus get_whatsapp_qr, disconnect_whatsapp, list_accounts, get_message

Tool names and fields follow door-contract 1.0 and stay stable within a major version.

What is in the repo

Everything here is from the README on GitHub.

  • Where it runsOn your machine, with Node.js 20 or newer, or the Docker image ghcr.io/whatzmcp/whatzmcp.
  • Who it talks toOnly WhatsApp. No telemetry, no analytics, no update check, no hosted API.
  • Your data~/.whatzmcp: the linked device session, a SQLite database of chats and messages, and config.json with your limits.
  • LicenceMIT. Free to run yourself.
  • AccountsOne per data directory. A second process on the same session refuses to start.
  • Not supportedCalls, status updates, polls and reactions. Received media is listed by type, not downloaded.

Your agent, behind your own WhatsApp number

npx -y github:whatzmcp/whatzmcp login
claude mcp add whatzmcp -- npx -y github:whatzmcp/whatzmcp

Open source, MIT, on your machine. Prefer hosted? A hosted version is coming. Write to hi@whatzmcp.com.

Example messages, not real customers.
Great, I will come by at 510:42
See you at 5, Marcus.10:42
10:42sent by your agent, from your number