
Developer guide
WhatsApp MCP: connect WhatsApp to an AI agent without running a server
A WhatsApp MCP server turns WhatsApp into tools an AI client can call. Unipile hosts two: one for the coding agent that builds WhatsApp into your product, one for the assistant where people use their own WhatsApp.
Show my users' WhatsApp chats in the CRM timeline.
unipileread endpointGET /v2/{account_id}/chatsschema loaded
Added the WhatsApp timeline and a reply box.3 files changed · tested on the Development app
Unipile
WhatsApp account linked by each user
Which WhatsApp chats still wait for my reply?
WhatsApplist unread chats9 chats
Two people wait for you: Lucas wants the revised quote, Sofia moved Friday's call.
Table of Contents
Short answer
A WhatsApp MCP server lets an AI client read and write WhatsApp through tools. Most are open-source projects you run on your own computer; Meta's official server (September 2026) only sets up WhatsApp Business Platform accounts.
Unipile hosts two MCP servers on the WhatsApp account each user connects: a developer MCP for coding agents and a user MCP for ChatGPT, Claude and Grok. Nothing to install.
The basics
What is a WhatsApp MCP server?
MCP (Model Context Protocol) is an open standard that lets an AI client call external tools. A WhatsApp MCP server exposes tools such as list chats or send a message, and runs them on a WhatsApp account.
1 · MCP client
AI client



Reads the request and picks a tool.
2 · MCP server
Tools
list chatsread messagessend message
Describes what the agent can do.
3 · API
REST endpoints
GET/v2/{account_id}/chats
Runs the call with the right auth.
4 · Account
WhatsApp
Linked by QR code, like any linked device.
Where the WhatsApp session lives
A self-hosted server keeps the WhatsApp session on your computer and stops with it. A hosted MCP server keeps the session on its side.
What the AI can reach
Only what the linked account already sees: its chats, groups and contacts, on behalf of the authenticated user.
Official server
Is there an official WhatsApp MCP server?
Yes for setup, not for your chats. Meta released WhatsApp Business Tools MCP on September 15, 2026. It lets a coding agent configure WhatsApp Business Platform accounts; it does not read the conversations on your own account.
Meta built it for development and testing workflows, not for production sending at scale, with sign-in through Facebook Login for Business. Details in Meta's announcement.
WhatsApp Business Tools MCP
Built for
- Creating a WhatsApp Business account
- Registering a phone number for the Cloud API
- Message templates, webhooks and test messages
Not built for
- Reading the chats of your own WhatsApp account
- Production sending at scale
Compare
Self-hosted, Business API or hosted: which WhatsApp MCP fits?
Open-source servers run on your machine and store the session locally. Business API servers work on a business number with templates. Unipile hosts the server on the account each user linked. More on the Business Platform in the WhatsApp API guide.
| Self-hostedOpen-source project | Business APIProviders and Meta's server | Unipile hostedDeveloper MCP and user MCP | |
|---|---|---|---|
| What you connect | Self-hostedYour own WhatsApp, linked as a device by QR code | Business APIA business phone number on the WhatsApp Business Platform | Unipile hostedEach user's WhatsApp, linked by QR code |
| Where it runs | Self-hostedOn your computer, which stores the session | Business APIOn the provider's side, through the Cloud API | Unipile hostedOn Unipile, which keeps and reconnects sessions |
| Authentication | Self-hostedAccess to the machine that runs it | Business APIA Meta app, tokens or a provider API key | Unipile hostedOAuth for assistants, an API key for coding agents |
| Team access | Self-hostedOne person, one machine | Business APIA shared business number | Unipile hostedAn admin sets who and which accounts (Scope) |
| What the AI can reach | Self-hostedThe chats of the linked account | Business APIBusiness conversations and templates, not personal chats | Unipile hostedThe chats, groups and contacts of the accounts in Scope |
| Best for | Self-hostedTrying MCP on your own account | Business APICustomer messaging on a business number | Unipile hostedTeams and products using the accounts people already have |
WhatsApp's own terms and limits apply to every option.
Unipile MCP
Two Unipile WhatsApp MCP servers: one to build, one to use
The developer MCP helps a coding agent build WhatsApp into your product. The user MCP brings your own WhatsApp into an assistant.
Developer MCPFor developers building a product
Coding agentClaude Code, Cursor, Codex
API keyAccount API Key, Development app first
Your users' accountsLinked by QR code through Hosted Auth
Your productCode that calls the REST API
User MCPFor people using an assistant
AI assistantChatGPT, Claude, Grok
OAuth sign-inNo API key in the client
ScopeSet by an Owner or Admin
Your own WhatsAppUsed in your chats
Unipile platform
One API, the same linked accounts
Personal and Business app accounts
Build WhatsApp into your product
Developer MCP
Your coding agent reads the Unipile API reference, writes the chat list, the send route and a message.new webhook, and tests them on your Development application. In production, your code calls the REST API.
Use your own WhatsApp in an assistant
User MCP
An Owner or Admin grants MCP Access and picks the Scope. Each person adds Unipile to ChatGPT, Claude, Grok or any remote MCP client (Streamable HTTP with OAuth), with no API key. Consent is per client, up to 30 days, revocable.
Setup
How to connect WhatsApp to an AI agent, step by step
Three steps on each path.
Building a productDeveloper MCP, then the REST API
Get a Unipile API key
Create an Account API Key in your Development application.
Development appAccount API Key
Add the developer MCP to your coding agent
Paste the configuration into Claude Code, Cursor or Codex. See the Claude Code setup page.
Let your users link WhatsApp
Through Hosted Auth, each user scans a QR code, as for a linked device, and your app stores the account ID.
Account linked
account_id
Using your own accountUser MCP in ChatGPT, Claude or Grok
An admin grants MCP Access
An Owner or Admin picks the person and their Scope of accounts.
MCP AccessScope: Support team
Link your WhatsApp
Scan the QR code in My MCP accounts.
My MCP accountsLink WhatsApp
Capabilities
What an AI agent can do on WhatsApp through Unipile
Both MCP servers sit on the same WhatsApp API, for personal and Business app accounts. Each action runs on behalf of the authenticated user.
| Feature family | What the agent can do |
|---|---|
| Chats and messages | List chats, read, send and reply |
| Groups | Read and reply in groups, see the WhatsApp Group API |
| Attachments | Images, documents and voice notes |
| Contacts | Contacts with phone numbers and profile pictures |
| Webhooks | New messages, reactions, read receipts and account status changes |
Developer MCP
In a coding agent: a WhatsApp feature, written and tested
The agent reads the exact schema, tests on your Development app and writes the code.
Show my users' WhatsApp chats in the CRM timeline and let them reply from the contact page.
unipileread endpointGET /v2/{account_id}/chatsschema loaded
unipileread endpointPOST /v2/{account_id}/chats/{chat_id}/messages/sendschema loaded
unipileread endpointPOST /v2/webhooks/endpoints/message.new
// src/whatsapp/timeline.ts export async function syncChats(accountId) { const chats = await api.get( `/v2/${accountId}/chats` ); return chats.items.map(toTimelineEvent); }
WhatsApp timeline and a Reply box added to the CRM.3 files changed · tested on the Development app
User MCP
What you can ask your assistant about WhatsApp
Pick a chat to see the request, the Unipile calls the assistant makes on your WhatsApp account, and the answer. Anything it writes stays a draft until you confirm.
New chat
Recent
Sum up my unread WhatsApp chats.
Unipile2 calls
WhatsApplist unread chats9 chats
WhatsAppread messages23 messages
Three chats need you today:
- Lucas Moreau wants the revised quote before Friday.
- Site team moved the delivery to 9 am tomorrow.
- Sofia Ricci confirmed the visit on Thursday.
Draft a reply to LucasOpen the Site team group
What did the Site team group decide today? Who said what?
Unipile2 calls
WhatsAppfind groupSite team
WhatsAppread group messages41 messages
Today in Site team:
- Karim: the concrete delivery moves to 9 am.
- Elena: the crane is booked for Monday.
- Tom: needs your OK on the window order.
Draft a reply to TomWhat changed since Monday?
Lucas has not answered about the quote. Draft a friendly follow-up.
Unipile2 calls
WhatsAppread chatLucas Moreau
WhatsAppprepare messageDraft ready
No reply from Lucas since you sent the quote on Monday. A short follow-up:
Draft to Lucas Moreau
Hi Lucas, did you get a chance to look at the quote? Happy to adjust the dates if needed.
ReviewNot nowNothing is sent until you confirm.
Find the PDF quote Sofia sent me last month.
Unipile2 calls
WhatsAppsearch messagesSofia Ricci
WhatsAppget attachment1 PDF
Here it is, in your chat with Sofia Ricci:
Quote_kitchen_v2.pdfSent by Sofia Ricci on 14 OctoberOpen
She asked for your answer before the end of the month.
Sum up the quoteDraft a reply to Sofia
Give me a recap of my WhatsApp week.
Unipile2 calls
WhatsApplist chats32 chats
WhatsAppread messagesThis week
Your week on WhatsApp:
- Quotes: three asked for, two sent.
- Site team: crane on Monday, visit on Thursday.
- Still open: Lucas and Nadia wait for your reply.
Draft both repliesShow only client chats
Prepare my Thursday site visit with Sofia.
Unipile2 calls
Google Calendarlist eventsThu 10 am
WhatsAppread chatSofia Ricci
Thursday at 10 am, one hour on site. Sofia asked for tile samples. A confirmation for her:
Draft to Sofia Ricci
Hi Sofia, all set for Thursday at 10 am. I will bring the tile samples.
ReviewNot nowNothing is sent until you confirm.
Ask anything
Unipile
Use it in your assistant
- 1An Owner or Admin gives you MCP Access and picks the accounts in your Scope.
- 2Link your WhatsApp account once in Unipile.
- 3Add Unipile as a custom connector in ChatGPT or Claude and approve with OAuth.
Set it up in ChatGPTSet it up in ClaudeHow the User MCP works
Good practice
How Unipile handles WhatsApp data and limits
An AI agent sees and does what the linked account can do in WhatsApp, nothing more.
Data handling
Every call runs on behalf of the authenticated user, inside the Scope an admin set, and can be revoked.
How Unipile operates
Unipile is an independent technical intermediary. It is not affiliated with, endorsed by, or sponsored by Meta or WhatsApp.
Platform limits
WhatsApp's own terms and limits apply whichever server you use. Unipile acts on behalf of the authenticated user, reports account status changes, and leaves message volume and content to the customer.
Build WhatsApp into your product with an AI agent
Start with the developer MCP, then ship on the REST API, which also covers LinkedIn, Instagram, Telegram and email. Same setup on LinkedIn: the LinkedIn MCP guide.
WhatsApp MCP: FAQ
Quick answers on WhatsApp MCP servers and Unipile.
For setup only. Meta's WhatsApp Business Tools MCP (September 2026) configures WhatsApp Business Platform accounts for development and testing. To bring your own chats into an assistant, you need a server that connects the account, such as the Unipile user MCP.
Yes. Once your admin grants you MCP Access, link your WhatsApp in My MCP accounts with a QR code, then add Unipile to your assistant and approve it with OAuth.
No. Unipile hosts both MCP servers and keeps the WhatsApp session on its side. If a session drops, Unipile reports the status change so the user can scan the QR code again.
Yes. An Owner or Admin grants MCP Access to each person and picks the Scope of accounts they can use. Each person authorizes each assistant for up to 30 days and can revoke it.
The customer. Each action runs on behalf of the authenticated user, within WhatsApp's own terms and limits. Message volume and content are the customer's responsibility.
No. Unipile is not affiliated with, endorsed by, or sponsored by Meta or WhatsApp. Every call runs on behalf of the authenticated user who linked their own WhatsApp account.
No. Unipile is not affiliated with, endorsed by, or sponsored by LinkedIn. It is an independent technical intermediary acting on behalf of each authenticated user.
Still have questions? Our team is here to help.
Talk to an expert
