↓ Skip to main content
  1. Posts/

Search Your WhatsApp Messages With MCP

··217 words·2 mins·

💬 What if you could ask an agent to find an old message in your chats? This project connects WhatsApp to MCP-compatible clients and lets them list conversations, read messages, and search their text. It can also save names for phone numbers that are not identified.

The server runs in your own Cloudflare account. Messages are stored in a SQLite database inside a Durable Object; your phone keeps working and receiving notifications. It is read-only and cannot send messages. The author notes that importing large histories requires the paid Workers plan.

⚠️ This is not an official integration: it uses a library implementing WhatsApp Web’s protocol, which may violate the service’s terms. The risk is not zero; use it only with your own account and understand where your messages are stored.

💡 Explanation in a nutshell
#

MCP lets an agent use external tools. Here, one such tool searches and reads your stored messages, but cannot reply on your behalf.

More information at the link 👇

Also published on LinkedIn.

Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano