WhatsApp for Claude Code
Add WhatSync with one command and Claude Code can read your WhatsApp chats, check Business templates and send messages you approve.
How do you connect WhatsApp to Claude Code?
Run claude mcp add --transport http whatsync https://whatsync.app/api/mcp, then run /mcp inside Claude Code and sign in. Link your WhatsApp from the dashboard, and Claude Code can read your chats and send messages you approve.
- Works in
- Claude Code in your terminal and editor
- You need
- Claude Code. WhatsApp on your phone, or a WhatsApp Business API number.
- WhatSync server
- Hosted for you. Nothing to run yourself.
What Claude Code can do with your WhatsApp
Bug reports from the source
Pull the exact message, screenshot name and steps a user sent on WhatsApp.
Scripts that use WhatsApp
Ask Claude Code to write a script or scheduled job that uses the WhatSync CLI.
Build on WhatsApp
Test your own WhatsApp bot or campaign flow with real tools, without writing an API client.
Add WhatSync to Claude Code
You sign in to WhatSync once. No API keys to paste. Check what you need above first.
Add the server
Run this in your terminal. Add
--scope userto use WhatSync in every project.claude mcp add --transport http whatsync https://whatsync.app/api/mcpSign in
Start Claude Code, run
/mcp, pick whatsync and sign in with Google or your email./mcpLink your WhatsApp
Open your WhatSync dashboard and link your personal WhatsApp from Linked devices on your phone, or connect the WhatsApp Business API. If you ask your agent something first, it replies with a sign-in link that works for 15 minutes.
Choose what it can see
In Settings, under What's saved, choose which chats your agent can see. On every plan every group is included by default; untick any group or hide any person. On the free trial, group messages stop once it has saved 250 of its 500, so one-on-one chats keep the rest. WhatSync brings in your older chats when you link. The free trial, Plus and Pro show your newest 1,000 older messages (500 from one-on-one chats, 500 from groups), and Max shows everything your phone sends.
Or use the CLI
Prefer a command to an MCP server? Run npx whatsync login once to sign in, then tell Claude Code it can run npx whatsync. Every command prints JSON when Claude Code runs it, so it reads the results directly.
npx whatsync login
npx whatsync unansweredThings to ask Claude Code
Copy one, change the names, and try it.
Use WhatSync to find the checkout bug Rahul described on WhatsApp yesterday, then find it in this repo.
Read the last 20 messages in the Dev team group and list open questions about the API.
When the tests pass, draft a short WhatsApp to the QA group saying the fix is on staging.
List our WhatsApp Business templates and check which ones Meta approved.
Good to know
You choose which chats are saved, and you can unlink WhatsApp from your phone at any time. How we handle your data.
- Claude Code asks before each tool call unless you allow it. Do not auto-allow the send tools.
- Use
--scope userto keep the server out of a shared project's .mcp.json. - Sends are real WhatsApp messages. Set the send tool to ask you every time in your AI app's settings. Telling the agent "ask me first" in a chat is not the same thing.
- Messaging many customers? Use the Business API, and only message people who agreed to hear from you. Bulk messages from a personal number can get it restricted by WhatsApp.
- Search looks at message text, file names and captions. On Pro and up it also covers voice notes turned into text and the words in photos and scanned documents.
- Groups only work on a personal WhatsApp linked from your phone. The Business API covers customer chats, templates and campaigns.
- "Waiting on you" means the last message in a chat came from the other person. It's a hint to check, not a to-do list.
Questions
Something else? Ask us.
How do I add a WhatsApp MCP server to Claude Code?
claude mcp add --transport http whatsync https://whatsync.app/api/mcp, then /mcp to sign in. No local install, no Python, no Go.Do I need to keep anything running?
Can I use it in headless mode or CI?
Do I need to install anything?
Does it work with the WhatsApp Business API?
Is WhatSync made by Anthropic?
How much does it cost?
Personal WhatsApp or the Business API
Claude Code can tell which one you have and uses the right tools for it.
Your personal WhatsApp
- Link the WhatsApp you already use
- Chats, groups, files, polls and reactions
- For normal one-to-one use, not bulk sending
WhatsApp Business API
- Templates and campaigns your agent can send
- Meta reviews templates and charges per message
- Only for customers who opted in
Sources
We checked these steps against Claude Code's own docs on October 13, 2026. Menus change, so a screen may look a little different. WhatSync is not made or endorsed by Anthropic.
Use it in your other AI apps too
One WhatSync account works in all of them. Each guide says what you need.
Add WhatSync to Claude Code
Your WhatsApp keeps working on your phone as normal. Unlink it whenever you like.