wa-mcp
Reads WhatsApp Desktop chats, contacts, messages, and call history via read-only SQLite; searches messages; sends approved messages; performs chat actions such as pin, archive, mute, and calls; optional companion linked-device mode adds real-time reading and group support.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wa is a CLI and MCP server that lets an AI agent read your WhatsApp on a Mac and send only what you approve.

It works with Grok Bot, Claude Code, Codex, Cursor, Gemini CLI, opencode and any other MCP client. Once it is connected, you can ask things like:
"What did I miss in the family group since yesterday?"
"Find the message where Alex sent the invoice."
"Draft a reply to Alex and show it to me." You read the draft, and it goes out only if you say yes.
"Pin this chat and archive that one."
"Every morning, summarize my unread chats." Run it on a schedule from your agent; wa does the reading.
There is also an optional voice agent that places a WhatsApp call and talks to the other person to reach a goal you set.
Install
You need macOS, the WhatsApp Desktop app signed in (the native one, not WhatsApp Web), Python 3.11 or later and uv.
git clone https://github.com/jxnxts/whatsapp-mac.git
cd whatsapp-mac
uv tool install . # puts `wa` and `wa-mcp` in ~/.local/bin
wa --versionThen give Full Disk Access to the app that runs wa (your terminal, or the agent app), in System Settings > Privacy & Security. Sending also needs Accessibility. Quit and reopen the app afterwards. The guide has the details.
Related MCP server: whatsapp-mcp
Try it
Every command prints JSON. Add --pretty to read it yourself.
wa chats --unread --limit 10 --pretty # chats with unread messages
wa messages --chat "Alex" --since 2d # the last two days of one chat
wa search "invoice" --since 30d # ignores case and accentsSending takes two steps. Without --confirm you get a draft and nothing is opened or clicked:
wa send --to "+1 415 555 0123" --text "Hi!"
WA_ALLOW_SEND=1 wa send --to "+1 415 555 0123" --text "Hi!" --confirmChat actions and calls follow the same pattern, each with its own switch:
WA_ALLOW_ACTIONS=1 wa chat-action --to "+1 415 555 0123" --action pin --confirm
WA_ALLOW_CALLS=1 wa call --to "+1 415 555 0123" --confirmTo test sending without bothering anyone, send to your own number. WhatsApp shows that chat as "You".
How it works
Reading. WhatsApp Desktop keeps chats, contacts and call history in SQLite files on your Mac.
waopens them read-only and never changes or copies them.Sending and actions. By default
wadrives the WhatsApp app: it opens the chat with your text, presses Return, and then checks the database for the sent message. Archive, pin, mute and calls go through the app's menu bar. The app comes to the front for a moment each time.Companion (experimental). Optionally, the Mac becomes a linked device, like WhatsApp Web, through GoWA. That path sends in the background, sends to groups, replies with a quote, manages chat lists and reads incoming messages in real time. Read the caveats before you turn it on.
Confirmation. Anything that changes state needs two things:
--confirmon the request (confirm=truein MCP) and the matchingWA_ALLOW_SEND,WA_ALLOW_ACTIONSorWA_ALLOW_CALLSin the environment. All three are off by default.wahas no command to block, delete or clear chats.
Connect an agent
wa-mcp is the same tool as an MCP server over stdio. Use the absolute path (which wa-mcp). For Claude Code:
claude mcp add --scope user whatsapp -- "$HOME/.local/bin/wa-mcp"For clients configured with JSON, such as Claude Desktop and Cursor:
{
"mcpServers": {
"whatsapp": {
"command": "/Users/YOUR_USER/.local/bin/wa-mcp",
"args": [],
"env": {}
}
}
}With an empty env the server can only read. Add "WA_ALLOW_SEND": "1" to let the agent send, and it still has to pass confirm=true each time. The guide lists where each client keeps its config.
Caveats
Not affiliated. This project is not affiliated with, authorized or endorsed by WhatsApp or Meta. You are responsible for how you use it, including the WhatsApp Terms of Service, data protection laws such as the GDPR or the LGPD, and the privacy of the people you talk to.
Your chats reach your model provider. Whatever the agent reads is sent to the provider of the model you use.
waitself has no telemetry, and reading or sending through the app opens no network connection of its own.Messages are untrusted input. Anyone who writes to you controls part of what the model reads. The tool descriptions tell the model to treat message text as data, which does not stop prompt injection. Keep the switches off and read the draft before you confirm.
The companion is an unofficial client. WhatsApp does not allow it and can suspend or ban your number without warning. Use a test number if you can, and never send in bulk. Its session folder,
~/.local/share/wa-mac/gowa/storages/, gives full access to your account until you unlink the device on your phone, so keep it out of backups, repositories and other computers.The voice agent speaks to other people for you. It introduces itself as an assistant and never claims to be you. The call audio goes through OpenAI. Tell the other person when you can.
macOS only, and language matters for some features. Chat actions and calls find menu items by title. Brazilian Portuguese is tested. The English titles come from the app's localization files and are untested. In other languages those commands stop with
action_failed. Reading and sending text work in any language.What has run on a real account. Reading, sending through the app, archive and pin (Portuguese UI), and companion pairing. Calls, mute, the voice agent and everything else in the companion have only run against simulators.
No warranty.
waclicks menus in a third-party app and reads a database schema that is not documented. It was tested with WhatsApp for Mac 26.46, and any release can break it.
More
docs/GUIDE.md is the full reference: every command and error code, permissions, the voice agent and the companion.
docs/DEVELOPMENT.md covers the tests, the source layout and notes on the WhatsApp database.
License
MIT © Jonatas Soares.
The wa logo in docs/img/brand/ belongs to this project and is under the same license. WhatsApp and the other product names and logos shown in this repository, including those in the animation, are trademarks of their owners and appear only to show compatibility.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Read, summarize and send your own WhatsApp messages from AI assistants (OAuth 2.1).
Read-only WhatsApp MCP for your AI agent: it reads the chats you choose. Try the public demo.
iMessage for AI agents, from your iPhone. No Mac needed, and you choose which chats they read.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with your personal WhatsApp account, allowing them to search messages and contacts, retrieve chat history, and send messages to individuals or groups. Uses WhatsApp Web API with local data storage for privacy and security.ISC
- AlicenseAqualityCmaintenanceMCP server that gives AI agents read and write access to WhatsApp on macOS, reading local chat history offline and sending messages via pre-filled drafts with explicit user confirmation.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents on macOS to search and summarize recent WhatsApp chats, draft replies, and send messages only after explicit confirmation, with scoped reads and constrained scheduled sends.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables local AI assistants on macOS to read only the WhatsApp chats a user explicitly allows, exposing permitted chat metadata and message text for search, summaries, catch-up, and reply suggestions without sending messages.MIT