wa-memory-mcp
Provides read-only access to a local WhatsApp message archive, enabling search across messages and attachments, listing chats, reading conversations, viewing person details, identifying chats waiting on a reply, generating digests, and retrieving documents, pictures, and transcribed voice notes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wa-memory-mcp Search my WhatsApp for what my accountant sent about 2025 taxes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wa-memory
Your whole WhatsApp history in one local, searchable store on your computer, which Claude can read through a read-only MCP server. Your messages stay on your machine.
Whole history: wa-memory links itself as a WhatsApp device and keeps every new message, and can import years of older chats from an iPhone backup. The two are merged by message ID, with no duplicates.
Search that understands your language: "sedinta" finds "Ședința", "contract" finds "contractul".
Attachments: documents become searchable text; voice notes are transcribed on your computer (whisper.cpp); pictures are shown to Claude when it asks.
Read-only: there is no command or tool that sends, edits, deletes or marks anything as read in WhatsApp.
WhatsApp does not allow unofficial clients. wa-memory connects as a linked device using whatsmeow (through its Python bindings, neonize), the same protocol WhatsApp Web uses. WhatsApp can restrict or ban a number that uses unofficial software, even one that only reads. wa-memory never sends messages or read receipts and marks itself offline, but the risk is not zero and it is yours. Do not use it on a number you cannot afford to lose. This project is not affiliated with, endorsed by or connected to WhatsApp or Meta.
flowchart LR
P["Your phone"] -- "linked device (wa-memory run)" --> M[("~/.wa-memory/memory.db")]
P -- "iPhone backup (once)" --> B["ChatStorage.sqlite"] -- "wa-memory import-ios" --> M
M --> S["wa-memory-mcp (read-only)"] --> C["Claude Desktop / Claude Code"]Requirements
macOS (the background jobs use launchd; see Linux for what works elsewhere)
Python 3.11 or newer (macOS's built-in Python is 3.9: use uv, pipx with a Homebrew Python, or similar)
Optional, for voice notes:
brew install whisper-cpp ffmpegand a whisper model (see Voice notes)
Related MCP server: whatsapp-mcp-local
Install
uv tool install "wa-memory[pdf] @ git+https://github.com/corneliu10/wa-memory"
# or: pipx install "wa-memory[pdf] @ git+https://github.com/corneliu10/wa-memory"The pdf extra reads PDF documents; without it, PDFs are kept but not read.
1. Link WhatsApp
wa-memory link # shows a QR code in the terminal
wa-memory link --phone +40700000001 # or: a code you type on the phoneOn your phone: WhatsApp → Settings → Linked devices → Link a device, and scan the code (or choose "Link with
phone number instead" and type the code). The device shows on your phone as "wa-memory" (set
WA_MEMORY_DEVICE_NAME to change it). wa-memory asks the phone for as much history as it will send (up to
10 years / 2 GB; phones often send a few years).
On macOS it then starts two background jobs: one stays connected and writes new messages into the memory as
they arrive, the other reads new documents and voice notes every 5 minutes. Check them with
wa-memory service status; stop them with wa-memory service uninstall.
2. Import your whole history from an iPhone backup (optional)
The linked device only gets what the phone sends. An iPhone backup has everything.
Make an unencrypted backup in Finder (General → Back up all the data on your iPhone to this Mac). Encrypted backups are not supported yet.
Give your terminal Full Disk Access (System Settings → Privacy & Security), so it can read the backup folder.
Import it:
wa-memory import-ios ~/Library/Application\ Support/MobileSync/Backup/<backup folder>
wa-memory import-ios <path> --business # for WhatsApp BusinessThe backup is opened read-only and never changed.
3. Connect Claude
Claude Code:
claude mcp add --scope user wa-memory -- wa-memory-mcpClaude Desktop: add this to ~/Library/Application Support/Claude/claude_desktop_config.json, with the
full path that which wa-memory-mcp prints, then restart Claude Desktop:
{ "mcpServers": { "wa-memory": { "command": "/full/path/to/wa-memory-mcp" } } }Then ask, for example: "What did my accountant send me about the 2025 taxes?" or "Who is waiting for a reply from me?"
Tools Claude gets
Tool | What it does |
| Search all messages, document text and voice-note transcripts |
| Chats by last activity |
| A conversation in time order, page by page |
| Everything about one person: first and last contact, who wrote how much, the groups they write in, latest messages |
| Chats where the last message is someone else's |
| What happened since a time (default the last 24 hours) |
| Find files; show a picture, read a document, transcribe a voice note |
| What the memory holds, and whether the link is connected |
Every answer tells Claude that message text is other people's data, not instructions.
What the linked device does on the network
It talks to WhatsApp only: the WhatsApp Web servers, and WhatsApp's media servers when it downloads an attachment. wa-memory has no telemetry and contacts no other host. (neonize ships its compiled engine inside its macOS and Linux packages; only where a package lacks it does neonize download it once from neonize's own GitHub releases.)
It acknowledges delivery of messages (the second grey tick), as every linked device does. It never sends read receipts (blue ticks) and never sends messages. It marks itself offline so your phone keeps its notifications; WhatsApp accepts that once your account name has synced, which can take a few minutes after linking, and wa-memory retries until it does. Opening an attachment downloads it straight from WhatsApp's media servers; nobody is notified.
Privacy
Everything lives in
~/.wa-memory(folder 0700, files 0600):memory.db(the messages),session.db(the linked device's keys),media/andlogs/. Anyone with a copy ofsession.dbcan act as this linked device until you remove it on your phone; computer backups include it.Claude sees what you ask it about, under your Claude account's terms.
Keep chats out: list them in
~/.wa-memory/exclude.txt, one per line (a chat ID such as40700000001@s.whatsapp.net, or an exact chat or contact name). Within a minute (and whenever Claude starts wa-memory) they are removed from the memory and never stored again.Deletions are respected: a message its author deletes for everyone is removed from the memory (with its file), and a later history sync or backup import does not bring it back. Only the author's own deletions and edits are applied; nobody else can remove or rewrite a message in your memory.
Remove everything:
wa-memory service uninstall, delete~/.wa-memory, and remove the device on your phone (WhatsApp → Settings → Linked devices).
Command line
wa-memory link [--phone +NUMBER] link this computer as a WhatsApp device, then start the background jobs
wa-memory run stay connected and keep the memory up to date (what the background job runs)
wa-memory service [ACTION] install | uninstall | status (macOS)
wa-memory import-ios PATH import an iPhone backup
wa-memory fetch-media read new documents and voice notes now
wa-memory search WORDS... search (JSON)
wa-memory waiting [DAYS] chats waiting on your reply
wa-memory stats what the memory holdsSettings by environment variable: WA_MEMORY_HOME (default ~/.wa-memory), WA_MEMORY_DEVICE_NAME,
FFMPEG_BIN, WHISPER_BIN, WHISPER_MODEL.
Voice notes
Transcription runs on your computer with whisper.cpp. Install whisper-cpp and ffmpeg, download a model (for
example ggml-large-v3-turbo-q5_0.bin from the whisper.cpp model list) to ~/.wa-memory/models/, or point
WHISPER_MODEL at it. Voice notes that arrived before the model was there are transcribed once it is.
Linux
The link, the memory, the iPhone import, search and the MCP server are plain Python and should work; they are
not tested on Linux yet. Not built there: the background jobs (run wa-memory run as a systemd user service and
wa-memory fetch-media from a timer), and Word/RTF conversion and picture resizing (they use macOS's
textutil and sips).
Known limits
WhatsApp keeps attachment files on its servers for a few weeks only; older files need the phone or a backup.
Encrypted iPhone backups and Android backups are not supported yet.
Messages that arrived before wa-memory was linked are only as complete as the history the phone sends.
No meaning-based (semantic) search yet.
Development
python3 -m venv .venv && .venv/bin/pip install -e ".[pdf]"
.venv/bin/python -m unittest discover -s tests -vThe tests use made-up chats and files only, and never connect to WhatsApp. Never commit real message data:
*.db files are ignored.
License
MIT. See LICENSE. Uses neonize (Apache-2.0) and whatsmeow (MPL-2.0), which neonize bundles.
Available Tools
9 toolswhatsapp_digestARead-only
What happened since a time (default the last 24 hours): active chats, new message counts, latest lines from others, and who is waiting for a reply.
Inputs: hours, since, limit_chats.
whatsapp_get_attachmentARead-only
Open one attachment by msg_id: a picture is shown to you, a video as its first frame, a document's text is returned, a voice note is transcribed. Downloads it read-only from WhatsApp's servers (no read receipts); old files may have expired there.
Inputs: msg_id (required), chat.
whatsapp_list_attachmentsARead-only
List attachments (pictures, videos, documents, voice notes, stickers, locations), newest first, with captions and whether they were already downloaded. Filter by chat, type and dates.
Inputs: chat, after, limit, before, +1 more.
whatsapp_list_chatsARead-only
List chats (people and groups) with message counts and first/last activity, newest first. Optional name filter, kind (dm or group) and active_after date.
Inputs: kind, limit, query, active_after.
whatsapp_personBRead-only
Everything about one person: their direct chat stats (first/last contact, who wrote how much), groups they write in, and the latest direct messages.
Inputs: who (required), recent.
whatsapp_read_chatARead-only
Read a conversation in time order. By default the latest messages; use before/after to page, or around_msg_id to see the context of a search hit.
Inputs: chat (required), after, limit, before, +1 more.
whatsapp_searchARead-only
Full-text search across all WhatsApp messages. Words are ANDed and prefix-matched; use "quotes" for a phrase and OR between alternatives. Filter by chat, sender ('me' for the owner) and dates.
Inputs: query (required), chat, sort, after, +3 more.
whatsapp_statsARead-only
How much history the memory holds: totals, oldest and newest message per source (live link vs iPhone backup), last update, live sync activity.
Inputs: no named parameters.
whatsapp_waiting_on_meBRead-only
Chats where someone else wrote last and the owner has not replied yet, within the last N days.
Inputs: days, limit, include_groups.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct retrieval need (listing, reading, searching, digest, waiting-on-me, attachments, stats), and descriptions clarify the differences. Minor overlap exists: whatsapp_waiting_on_me largely duplicates the 'who is waiting for a reply' section of whatsapp_digest, and whatsapp_person overlaps with whatsapp_read_chat plus sender filtering.
All tools share a uniform whatsapp_ snake_case prefix, which makes the set easy to scan. However, the suffix convention is mixed: some are verb_noun (list_chats, read_chat, search, get_attachment) while others are bare nouns (person, digest, stats).
Nine tools is well within the sweet spot, and each one covers a genuinely different query pattern (browse, read, search, summarize, attachments, metadata). No obvious filler tools.
The read-only memory surface is well covered: chat listing, paging reads, search, attachment listing/fetching, per-person rollups, digests, and sync stats. Minor gaps remain — no participant/group-member listing and no way to enumerate senders or chat labels — but agents can work around these via search and person queries.
Maintenance
Related MCP Connectors
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Your WhatsApp history in Claude and ChatGPT: search years of chats, voice notes transcribed.
Your own WhatsApp in Claude, ChatGPT and other AI apps. Not affiliated with WhatsApp or Meta.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to read and search WhatsApp messages, transcribe voice notes, and analyze images locally through a read-only bridge.19MIT
- AlicenseNot gradedqualityBmaintenanceProvides Claude with read-only access to your WhatsApp chat history entirely on your local machine, enabling natural language search, summarization, and retrieval of messages without sending data to the cloud.14 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides Claude Code read-only access to WhatsApp chats by mirroring them into a local SQLite database, allowing search, message listing, media retrieval, and optional voice-note transcription without any send capability.MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read and search your WhatsApp chat history locally with no cloud or API keys, and optionally send audited messages.1MIT