RC RANDOM CHAOS

WhatsApp MCP: Open Source AI Agent Access to Your Chats

· via Hacker News

Original source

Show HN: WhatsApp MCP running free on Cloudflare

Hacker News →

WhatsApp MCP is an open source project that deploys a server on Cloudflare Workers, allowing AI agents like Claude Code to search and read your WhatsApp messages. You link your phone to it once, similar to WhatsApp Web, and then any MCP client can query your message history. The implementation uses Baileys, an open source library that mirrors the WhatsApp Web protocol, though this approach violates WhatsApp’s terms of service.

The server stores messages in SQLite within a Cloudflare Durable Object and syncs with WhatsApp either on-demand or once daily before disconnecting. Your phone remains the primary device and continues receiving notifications normally. The tool can search and read messages and save contact names, but cannot send anything. Setup requires a Cloudflare paid Workers plan, Node 20 or later, and your phone.

Media files appear as labels like [image] or [voice note 12s] without transcription or download. WhatsApp provides limited contact information to linked devices, so unnamed chats display as phone numbers—the agent can optionally look these up in your contacts. Each deployment is tied to a single WhatsApp account and owner. Initial message history import depends on what WhatsApp provides to new linked devices and may be incomplete.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.