Show HN: WhatsApp MCP Server
149 comments
·March 31, 2025nzach
There is any reason why you choose to build a Python wrapper for a Golang binary?
I've been playing around with mcp-go[0] and it seems pretty good.
lharries
Mainly that I'm more familiar with Python — you're correct however that MCP Go would be a good way to go if I do a bigger refactor
lbeurerkellner
Please be aware that MCP has severe security risks associated: https://invariantlabs.ai/blog/mcp-security-notification-tool....
gabll
I don’t know if whatsmeow was intended for this use case: imagine a LLM performing multiple calls in a short period of time, could you risk to have your whatsapp account blocked by Meta?
d3m0t3p
Apparently this is the case: https://github.com/tulir/whatsmeow/discussions/199
kinduff
I've been running and using a puppeting bridge [1] for my Matrix instance for more than 4 years with 3 different numbers and no problem at all.
The controls they have in place are probably based on behavior, rather than on access.
vdfs
WhatsApp will ban you if it detect any kind of automation, if you use this or an other wrapper you will -very luckily- get banned, even without making calls. They want you to use their paid business API
jeroenhd
Good to know WhatsApp is at least somewhat proactive against scammers.
lharries
It saves the messages in a local SQLite database on load — so querying shouldn't be an issue as it doesn't contact the WhatsApp server. For sending, this does use the API however and needs more caution
rndmio
The why is because we can, but damn am I finding the tools being built with, or having tacked on, AI depressing. Is this a small glimpse of the future we're building for ourselves? Communication is valuable because thought and effort went into it, lowering the bar on producing content doesn't mean more choice, it means lower quality. Already I see a reaction against this amongst some peers when they find out something they were asked to review was AI generated, why should they put effort in if the other person didn't.
stavros
If we find the "thought and effort" part of communication valuable, we'll keep it. If not, we won't.
kevindamm
That would be a fine posture to take, very naturally-selective, but I find it discomforting because I've seen so many different ways that humans act that don't benefit them (individually or on the whole). It isn't always out of self-destruction or lack of self-preservation. More often than not, the choice was based on what's easiest -- a tendency towards the path of least resistance. This technology looks a lot like trading off intention, and attention, for quick and good-enough(?) results. Enough so that I can understand GP's concern for our communication skills as a society.
I think we could find ourselves losing the "thought and effort" in spite of it being more valuable, because many people find it easier. Or that even those who continue on with it, despite it not being easier, are broadly labeled as a bot because their writings failed the vibe check.
I have confidence that there will always be small communities that continue holding this as valuable, but that maintaining it in a community setting will become more strained as the general zeitgeist drifts in the direction of regarding output higher than effort.
sharmasachin98
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?
andrewmi
Looks interesting. It would be nice to see something like this for all the communication methods in Beeper unified together. That way all communication is covered rather then just 1 app of many.
astorphobis
Beeper is actually built on top of an open source protocol called Matrix, and they also open sourced all of the bridges, so you can host beeper yourself and connect the LLM to it. And even better - since the protocol is open source, you can also connect to the official Beeper server! You can even use alternative Matrix clients to connect to Beeper, I do this on my company laptop since Beeper is blocked. https://matrix.org/ecosystem/clients/
thegreathir
If this thing is connected to someone's WA and I ask "Who is your girlfriend?", the AI theoretically could list all the chats, read some messages in each chat, determine who could be the partner and return the name to me :)) I can go ahead and ask "What was the last fight about".
saberience
I think this is like the 7th or 8th WhatsApp MCP implementation.
I really have zero understanding why people think this is something crazy. It’s not. It’s importing the official MCP packages and wrapping basic API methods with an MCP tool decorator.
You can even ask Claude or ChatGPT to make your MCP tools for you and they will write this same code in 1 minute.
I can’t wait until the community realizes that MCP servers are literally just regular methods with a one line decorator and these posts just get downvoted for being incredibly low effort.
It’s basically the same as upvoting someone saying “hey guys, I wrote a method which connects to the WhatsApp API”, that’s it, really.
enoughalready
I've been struggling to understand the hype as well.
I think the excitement is more around seeing how MCP is being embraced, and the impact it can have. Rather than me having to wire up a bunch of tools by hand, I can now point to some configuration files and MCP servers.
I think it's fair for people to be excited, but ultimately, yes, your prediction is correct, and it won't be as exciting after MCP becomes a standard. This is similar to any new technology. e.g. years ago, Go programs and literature were popular on this site, but not so much any more.
soulofmischief
Yeah. I've written infrastructure for LLMs to use Twitter, Discord, WhatsApp and more since '22 before GPT 3.5 was even out. You can imagine my contempt for all of this right now.
That said, MCP might be here to stay for a while as a stopgap for reducing duplication of engineering work.
null
CarlitosHighway
You know why: MCPs are still a hot topic, and WhatsApp is ubiquitous (unfortunately).
samastur
Cool work, but I'm more fascinated by your claim "99% of your life is stored in WhatsApp...".
Not even remotely true for me even if it would encompass all messaging apps I use. I guess I'm just an old introvert, but it makes me wonder how life looks like for those for whom it is true.
CarlitosHighway
The way to absolute dominance of WhatsApp with the Normies has't been sufficiently analyzed, I reckon. Somehow, WhatsApp managed to become extremely popular and heavily used by people who have trouble switching on a desktop pc. Even senior citizens have no trouble using it.
Is it because they have a high motivation to use it? The UI / UX of WhatsApp surely isn't great, I'd even say it's quite bad. Where am I wrong? What am I not seeing?
rpastuszak
I don't use WhatsApp, I helped most of my family and many friends move away from it, and I feel like we (you and I) see WA in a similar way. IMO the main issue here is the network effect and vendor lock-in (for the lack of a better term -- I'm writing this from my phone in a rush).
> Where am I wrong? What am I not seeing?
English is my second language, so maybe I'm missing some context here, but every time I hear techies calling non-techies "Normies", it's used in a derogatory / condescending fashion. That's reductive (non-techies are not a homogenous group) and somewhat intellectually lazy.
To give you an example, WA users in the US and, say Portugal or Poland ended up using it for slightly different reasons and in a different technical context. WA used to be the best video chat app for quite some time in the UK, AT or PL (imo), and I know of many people who started using it for that specific reason (esp. important for large migrant communities). FaceTime wasn't that popular because Android market share in the EU was bigger than in the US.
gherkinnn
WhatsApp acts the phone's entry point for many.
Contacts aren't stored on the phone, messages act as contacts. Phone and video calls also on WhatsApp. Photos are shared via WhatsApp so that's where the gallery is. It even functions as a calendar of sorts – events are organised in WhatsApp groups so there you have directions and dates and who brings what. More and more businesses use WhatsApp to communicate with customers.
Why people like this, I do not know. But this is what I observe. Maybe software in general is too shit to use so people prefer to take a sub-optimal WhatsApp-based life over fighting their phones at every step. And I can't blame them.
gus_massa
> Where am I wrong? What am I not seeing?
The killer application are the group chats. Normies can't make an email group, or remember to reply to all, or even make a Yahoo! Group [dead] or Google Group [dead?].
It's very easy to setup a group in WhatsApp and keep the member list updated.
For bonus points, it's very difficult to Ctr-C the info in WhatsApp, it's easier to press the arrow and forward the message to another WhatsApp group.
Once you have all your groups in WhatsApp, it's easier to use it for everything.
PS: Also, a few eons ago in many countries SMS had a cost, and WhatsApp was free, it was so another good point to use it.
darkwater
> PS: Also, a few eons ago in many countries SMS had a cost, and WhatsApp was free, it was so another good point to use it.
That was the starting point for sure in many European countries.
vvillena
WhatsApp nailed the onboarding experience. In a time where other services asked you to create an account with an email and password, which is enough of a hurdle already, WhatsApp looked up your phone number and said "I'm sending you an SMS, enter the number you received to check we got it right". And then, it never asked for anything ever again.
xandrius
You're wrong that it's bad. Clearly it cannot be that bad if even your 80 yo grandma can get the gist of how to use it properly.
Can it be better? Probably. Does it need to be better? Clearly not.
ahtihn
WhatsApp was the first messaging app I remember that didn't require a user account.
People already had the phone numbers of people they knew so they just had to install the app and could immediately chat with any of their contacts.
Compared to chat apps with usernames where you started with an empty contact list, the barrier to start using it was very low. It was basically a drop-in replacement for SMS. Group chat and free messages were the reason to switch.
IshKebab
The UX is pretty good. At least as good as any competitor. There are no ads. It's cross-platform. It's secure. Group chats work.
WhatsApp gained dominance when the alternatives were still SMS and BBM! You don't have to resort to ego-boosting put-downs to explain why it is so popular.
abenga
Whatsapp has absolutely taken over communication in the world (aside from the US for some reason)? Funerals, trips, fund-raisers, even interacting with businesses is now done on WhatsApp in my country. When briefly I decided to try to de-Meta my life, I found that it was one service I absolutely cannot do without and still function as a member of my family and community.
berkes
It's really a demographic issue. I've found that in the US relatively few people use WA. Same for SEA. But in western Europe almost everything is done on WA.
From "neighborhoodwatch" via "the school information" to "colleagues". Hell, even governments and public transportation have "feel unsafe? message us on whatsapp 06..." In the Netherlands it's truly omnipresent, and without WA you will be left out socially.
I'm reluctant of WA, because I'm steering clear of Meta as much as possible, but I do use it to: keep in touch with at least 26 social groups - friends, family, colleagues, co-workers, business - keep in touch with my date/love, my mother, and father who lives across the world.
granted, there's a big move going towards signal lately - finally. But I'm not sure how big this really is, and how sticky it will prove. Nor if this is just my bubble or truly across the whole country.
jeroenhd
Even within the Netherlands there are pockets of Signal users, Telegram users, and in rare occasions even people using SMS or iMessage. Facebook Messenger also has a foothold in some circles.
That said, you'd be an outlier if you have a mobile phone but no WhatsApp. Everyone has WhatsApp, but fortunately not everyone is using it for everything. Unfortunately, that usually means using an even less secure and trustworthy messenger service.
mrweasel
Some people I know seems to be more split between Snapchat, Instagram and Facebook Messenger. I don't see anyone being 99% in one app, and certainly not WhatsApp. I think I know like three people who use WhatsApp privately.
I do know people working in sales and purchasing and I wouldn't be surprised if they had 25% or more of their professional lives in WhatsApp. Previously they used Skype heavily. So this could be interesting for them.
anonzzzies
I have 99% of my life is in Telegram; I like the choice between end to end encryption or not (for unimportant stuff) so I create private groups for everything and just toss everything in there. I have a (custom) LLM bot which does stuff depending what the group is about and what is posted. Telegram is very fast and convenient (yes, because it's not all encrypted, just the stuff you want to be).
joseda-hg
Certainly not the case for me, but I reckon I could do plenty via whatsapp
- Group Chat for the family (Immediate, Extended Mother Side, Extended Father Side)
- Chat with hole in the wall restaurant to order sometinhg to eat after work
- 2FA for local shop
- Customer Support for local bank
- Work Chat (Informally assigned tasks and general info)
- Chat with Taxi
- Delivery Tracking for local courier
- LLM wrapper
- Invoice/Receipt Sending
- Appointments for many services (Like barbers)
I could more or less do anything, from work related task management, to requesting a new credit card from inside whatsapp
lharries
For most people, their life isn't stored in neat Notion database.
Instead, if you have calendar + email + their main messaging apps (e.g. WhatsApp) you cover the majority of it. It's messy and unstructured — but luckily LLMs are great at that
Explore4526
WhatsApp is a mandatory app in India
cvladan
Exactly
linux_devil
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
ofirtwo
Why was Go necessary here? couldn't it just be a whole-python project?
lharries
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
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?
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.