whatsapp-mcp
Provides tools for interacting with WhatsApp through a self-hosted Evolution API gateway, enabling AI agents to send and receive messages, manage chats, search contacts, and download media.
Click on "Install 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., "@whatsapp-mcplist my unread chats"
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.
WhatsApp MCP
An MCP server that gives Claude read and write access to WhatsApp, through a
self-hosted Evolution API
gateway. Dependency-free: one file, Node's built-in fetch, stdio transport.
Your number stays linked on your own machine. No third party sees the messages.
Tools
Tool | What it does |
| Is the number linked and online. |
| Recent chats, newest first, with JIDs and unread counts. |
| Messages in one chat. Each carries an |
| Download the attachment on a message. Images come back viewable inline. |
| Match contacts by name or number substring. |
| Is a phone number registered on WhatsApp. |
| Groups this number belongs to, with JIDs. |
| Send a text message. The only tool with an outbound side effect. |
| Returns a pairing QR when the link has dropped. |
| Bounce a stuck instance. Does not unlink the number. |
Related MCP server: Evolution API MCP Server
Requirements
A running Evolution API instance with a linked WhatsApp number. This server is only a client; it does not start or manage the gateway.
Configure
All configuration is environment variables:
Variable | Default | Meaning |
| (required) | Global API key, |
|
| Base URL of the Evolution API server. |
|
| Instance name for your number. |
|
| Where |
|
| Where |
Register it with Claude Code:
claude mcp add whatsapp -s user \
-e EVO_APIKEY=your-key \
-e EVO_URL=http://localhost:8080 \
-e EVO_INSTANCE=primary \
-- node /path/to/whatsapp-mcp/server.js
claude mcp list # expect: whatsapp ... ConnectedRestart Claude Code afterwards. Tool lists are read once at session start, so a newly added server (or a newly added tool) will not appear in a session that was already running.
Test
EVO_APIKEY=your-key npm testAn integration check against the live gateway, no mocks: it spawns a real server
process, finds a recent image on its own, and asserts get_media returns decoded
image bytes and writes them to disk. Pin a specific message with
WA_TEST_MESSAGE_ID if you would rather not have it search.
Notes
get_mediainlines images up to 3.5 MB; anything larger, and any non-image, is saved to disk and the path is returned instead.Downloads are pruned after 24 hours so a chat full of photos cannot quietly grow into a disk problem.
Media only downloads while it is still on WhatsApp's servers. Very old attachments can come back empty.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gyllesz/whatsapp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server