AutomataGet Started

How to connect WhatsApp to Claude

Connect Claude.ai, Claude Desktop, and Claude Code to WhatsApp with a free, open-source MCP server. Pair your account, choose the chats Claude can see, and add the connector in five steps.

By , Founder & CEO, Operational Intelligence Inc.

Updated 7 min read

Claude cannot read WhatsApp on its own. To let it summarize a client thread, find an address someone sent you, or draft a reply, you connect it to your account through an MCP server. MCP (the Model Context Protocol) is the open standard Claude uses to talk to outside tools.

This guide uses Automata, a free, open-source WhatsApp MCP server. It pairs your WhatsApp account the same way WhatsApp Web does, then lets you decide which chats Claude can see and which actions it can take. By the end, Claude will be able to work with the chats you approve and nothing else.

Here is what that looks like in practice. Once a week, a scheduled Claude task reads a week of Slack, email, and WhatsApp and writes a recap of what you worked on:

A Claude conversation where a scheduled task summarizes a week of work from Slack, Zoho Mail, and WhatsApp, with a WhatsApp week digest step, and saves a weekly recap file
A scheduled Claude task using the WhatsApp MCP for a weekly recap. The sidebar is removed for privacy.

Can Claude read and send WhatsApp messages?

Not on its own. Claude.ai, Claude Desktop, and Claude Code have no built-in WhatsApp integration, and Anthropic does not run a WhatsApp bot you can message. Outside Europe, Meta's WhatsApp Business API terms have barred general-purpose AI assistants since January 2026, and the rules in the EEA are still changing, so an official Claude number is unlikely for now.

With an MCP server, Claude can work with your own WhatsApp account. Automata gives it these tools:

  • get-connection-status checks that your account is connected.
  • list-chats lists the chats and groups you allowed.
  • read-messages reads the history of one allowed chat.
  • search-messages searches across the allowed chats.
  • send-text-message sends a message to an allowed chat, if the token includes this tool.

Every tool is limited to the chats on the token, so Claude cannot read or message anyone else.

What you need

  • A WhatsApp account.
  • A Claude account on a plan that supports custom connectors. Anthropic changes plan availability over time, so check their current details.
  • Somewhere to run Automata. The easiest option is the hosted version at mcp.getautomata.app, which needs no server. To self-host instead, use the one-click Railway template or Docker.
  • About ten minutes.

How the connection works

Three pieces are involved, and only the middle one is new:

  1. Claude is the MCP client. It sends requests to a URL.
  2. Automata is the MCP server. It checks the connector token on every request, enforces which chats are allowed, and exposes only the WhatsApp tools the token allows.
  3. WhatsApp is paired to Automata as a linked device, so Claude never touches your phone or your account credentials.

Because the permission check happens in Automata and not in the prompt, Claude cannot talk its way into a chat you did not allow. Read more about how Automata enforces permissions.

Step 1: Choose hosted or self-hosted Automata

To self-host, deploy Automata somewhere Claude can reach. If you plan to use Claude.ai or Claude Desktop, the server needs a public HTTPS URL, because those apps connect from Anthropic's servers and cannot see localhost.

The fastest path is the Railway template, which provisions Automata, PostgreSQL, Redis, and the Evolution API service that handles WhatsApp. To run it yourself, follow the getting started guide.

Step 2: Pair WhatsApp

Open your Automata dashboard, create a WhatsApp account connection, and continue to the QR code. Tick Import full history first if you want older messages too: it is off by default, so only recent history is imported, and on the hosted Free plan it is locked. On your phone, go to WhatsApp → Settings → Linked devices → Link a device and scan it.

Scan within an hour: a WhatsApp connection that is never paired is deleted after one hour, and the pairing screen counts down the time left. After the scan, the page shows Importing your WhatsApp history with the message and chat counts climbing, then opens the dashboard once they settle.

Wait until the dashboard shows the connection as Connected before you move on. Sending fails while the account is disconnected.

Step 3: Choose the chats

Create a connector token for this connection. This is where Automata differs from most WhatsApp MCP servers: instead of exposing every conversation, each token has two settings.

SettingWhat it controls
ChatsWhich conversations the token can see: All chats or Only selected chats
ActionsWhich tools it can call: the read tools (get-connection-status, list-chats, read-messages, search-messages), and send-text-message to send

The two are independent, so a token that can send can send to any chat on its list. A new WhatsApp token starts with all chats and all actions, so narrow both: choose Only selected chats and pick one or two, then Only selected actions with just the read tools. To let Claude reply in one chat only, create a separate token for that chat with sending enabled.

Only the actions you allow are registered, so a read-only token cannot send anything. Automata shows the token once, and changes to its chats or actions apply on the next request.

Step 4: Add it to Claude

Copy the connector URL from the dashboard. Pick Hosted or Self-hosted above any code block on this page to match your setup. The endpoint looks like this:

https://mcp.getautomata.app/mcp/<connector-token>

Claude.ai and Claude Desktop

  1. Open Settings → Customize → Connectors.
  2. Click Add and choose Add custom connector.
  3. Enter a name such as WhatsApp and paste the connector URL.
  4. Click Continue, then enable the connector in a new chat.
Claude's Add custom connector dialog in dark mode, with the name WhatsApp and an Automata MCP server URL filled in, the connector token masked
Adding Automata as a custom connector in Claude. The token in the URL is masked.

Claude Code

Run one command, replacing <connector-token> with your token:

claude mcp add --transport http automata \
  https://mcp.getautomata.app/mcp/<connector-token>

If you run several Automata connections, give each a distinct name such as support-whatsapp. If your client supports custom headers, you can use the plain /mcp endpoint with an Authorization: Bearer header instead, which keeps the token out of URLs. The MCP clients docs cover both formats.

Step 5: Test it

Start with the safest possible request and confirm the connection works before asking for anything real. In a new chat with the connector enabled, ask:

Check the WhatsApp connection status.

Claude calls get-connection-status and should report the account as connected. Then try prompts that match the chats you allowed:

  • Summarize what Client A asked for in WhatsApp this week.
  • Find the address Maria sent in the Suppliers group.
  • List every open question in the Acme project chat since Monday.
  • Draft a reply in the Design team group confirming the new deadline.

Ask Claude about a chat you did not allow and it will not find it, and a direct request for it is refused. That is the permission layer working as intended.

Once the basics work, try a scheduled task like the weekly recap at the top of this guide, which combines WhatsApp with your other tools.

Keep it safe

  • Treat the connector URL like a password. Anyone with the token can use the chats it allows. If it leaks, revoke that one token and create a new one; your other clients keep working.
  • Prefer header authentication when your client supports it, since URLs often end up in logs.
  • Enable sending only on a token that needs it. Reading is low risk; sending messages on your behalf is not.

Troubleshooting

SymptomLikely cause and fix
Claude shows a 401 errorThe token is missing, invalid, expired, or revoked. Create a new connector token and update the URL.
Claude.ai cannot connectThe URL is not public. Claude.ai connects from Anthropic's servers, so use a deployed HTTPS URL, not localhost.
A chat is missing from the listIt is not allowed on this token, or it has no stored messages yet. Check the chat permissions and your history sync.
Older messages are missingThe connection was created without Import full history, which is off by default, so only recent history was imported; the read tools then return recentHistoryOnly: true. Press Import full history on the connection dashboard and scan the QR code again. On the hosted service this needs Pro.
429 errors with Retry-AfterA per-minute rate limit ran out: 120 requests per token, or 30 searches per connection. Wait and retry; the token keeps working.
The dashboard says Stuck, or sends fail while it says connectedThe WhatsApp session behind the connection has died. Self-hosted: restart the Evolution service; no QR scan is needed. On the hosted service the operator is alerted and restarts it.
Read tools return a missing-prerequisite responseThe Evolution database URL is not configured. See the WhatsApp setup notes.
Fewer tools than expectedThe token's Actions setting allows only some tools. Edit the token and add the tools you need, then reconnect the connector in Claude. (Chat choices don't change the tool count.)
Sending fails, or there is no send toolNo send tool: the token doesn't include send-text-message. "not scoped to": the recipient isn't on the token's chat list. "is not a WhatsApp account" or "is the digits of a WhatsApp LID": to reply in an existing chat, pass its full jid from list-chats, including an @lid ending; for a new number, use international format, digits only. "connection is down" or "could not verify the recipient": the account is disconnected; reconnect it from the dashboard. If the dashboard shows Unstable, Reconnect won't help: the Evolution service has to be restarted (on hosted Automata, the team is alerted and does it).

More fixes are in the troubleshooting guide.

Frequently asked questions

Is it free to connect Claude to WhatsApp?

Yes. Automata is MIT licensed and free to self-host, including the one-click Railway template. A hosted version is available at mcp.getautomata.app. You still need a Claude plan that supports custom connectors.

Does it work with WhatsApp Business?

It works with the WhatsApp Business app, because Automata pairs any WhatsApp account as a linked device, the same way WhatsApp Web does. It does not use the WhatsApp Business API, so no Meta business verification is needed.

Can Claude read WhatsApp group chats?

Yes. Groups appear alongside private chats, and you allow or block each group individually on the token.

Can Claude see photos and voice notes?

No. Claude sees the text of each message and the captions on media. Photos, voice notes, and files are not downloaded or sent to Claude.

Next steps

Comments

Questions, corrections, or your own setup? Join in below. Pick any name to post.