Top
Best
New

Posted by lharries 3/31/2025

Show HN: WhatsApp MCP Server(github.com)
Hi HN – I built an open-source, self-hosted Model Context Protocol (MCP) server for WhatsApp: https://github.com/lharries/whatsapp-mcp

It connects to your personal WhatsApp account via the WhatsApp Web multi-device API (using whatsmeow from the Beeper team), and doesn't rely on third-party APIs. All messages are stored locally in SQLite. Nothing is sent to the cloud unless you explicitly allow your LLM to access the data via tools – so you maintain full control and privacy.

The MCP server can:

- Search your messages, contacts, and groups

- Send WhatsApp messages to individuals or groups

Why build this?

99% of your life is stored in WhatsApp, by connecting an LLM to WhatsApp you get all this context. And your AI agent can execute tasks on your behalf by sending messages.

229 points | 138 commentspage 2
linux_devil 3/31/2025|
I am not sure about how other Whatsapp MCP servers build , but I like the design here : Go server to integrate with Whatsapp , scan the QR etc which acts like a bridge and lightsql to store some data APP MCP server : To interact with the data , app and LLM
Mystery-Machine 3/31/2025||
Thank you! I live in Latin America and here WhatsApp group chats are through the roof. I easily receive several hundreds of messages across various group chats. It's not possible nor healthy to read every single message. It would be great if the tool could summarize all the unread messages from the given group chat. I played around a bit with the MCP server and it was having problems to even get the correct group chat. The group chat name could be stored together with the ID in SQLite and, if matched, it should immediately query for messages from that group chat, skipping the need to listing chats and trying to find the correct group chat and, worst of all, failing.
ofirtwo 3/31/2025||
Why was Go necessary here? couldn't it just be a whole-python project?
lharries 3/31/2025|
whatsmeow is in Go. Potentially I could have used a gopy instead and done it all in python (or just done it all in Go)
sunshine-o 3/31/2025||
By the way, I was just searching for a way not to have the WhatsApp app on my phone while limiting the risk of third party software and/or have my number banned.

Is there a way to login on WhatsApp Web on a server and then proxy or scrape the messages to send them to my phone?

sharmasachin98 4/1/2025||
Really cool project, the privacy-first angle and self-hosted design are a huge plus. Curious: have you run into any rate limits or session issues with the whatsmeow API, especially when used continuously by agents?
tobyhinloopen 3/31/2025||
This is incredibly cool, thank you
ocBuilder 3/31/2025||
what I'm most shocked about is that people choose whatsapp and the like for "end to end encryption" then open a window to small companies like OpenAI and Anthropic.
siva7 3/31/2025||
So lovely. Thanks. Now i can answer all my friends and spouse immediately instead of ghosting them for days.
esafak 3/31/2025|
Is it possible to augment WhatsApp's SQLite installation with an extension?
More comments...