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/whatzmcpPrefer hosted? A hosted version is coming. Write to hi@whatzmcp.com.
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.
$ 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.
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.
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.
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.
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.
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.
Connect your own WhatsApp account to Claude and other AI assistants. Runs on your machine.
You decide how far it goes
Because it runs on your machine, every off switch is yours.
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.
# tools (door-contract 1.0)
# 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/whatzmcpOpen source, MIT, on your machine. Prefer hosted? A hosted version is coming. Write to hi@whatzmcp.com.