
WhatsApp Web MCP Server
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
WhatsApp Web MCP Server scores 73 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 17 tools. Filed under Communication, Web scraping. GitHub shows 31 stars. Package registries report about 90 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
73 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
70/100 for listing completeness. Lost points: no README, short summary.
How quality is graded
Where the 73 comes from
22 + 20 + 8 + 10 + 10 + 3 = 73. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mario-andreschak-mcp-whatsapp-web": { "command": "npx", "args": [ "-y", "mcp-whatsapp-web@1.5.0" ], "env": { "WHATSAPP_BACKEND": "webjs", "BAILEYS_SESSION_DIR": "", "LOG_LEVEL": "info", "LOG_STDERR_LEVEL": "warn", "WHATSAPP_HEADLESS": "", "WHATSAPP_NO_SANDBOX": "false", "BROWSER_EXECUTABLE_PATH": "", "WHATSAPP_SESSION_DIR": "", "WHATSAPP_ALLOWED_CHATS": "", "WHATSAPP_PAIRING_PHONE_NUMBER": "", "FFMPEG_PATH": "", "WA_WEB_VERSION": "", "HEALTH_CHECK_INTERVAL_MS": "60000", "TOOL_READY_TIMEOUT_MS": "45000", "MCP_HTTP_PORT": "", "MCP_HTTP_HOST": "127.0.0.1", "MCP_OAUTH": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
WHATSAPP_BACKEND | Optional | WhatsApp backend: webjs uses a persistent browser profile; baileys connects without a browser and requires separate pairing |
BAILEYS_SESSION_DIR | Optional | Baileys sign-in and synchronized history folder (default: a fixed per-user place, e.g. %LOCALAPPDATA%\mcp-whatsapp-web\baileys-sessions on Windows; an existing <working directory>/baileys-sessions keeps being used). One running server owns a folder; give a second program its own folder. |
LOG_LEVEL | Optional | Log level for the log file (logs/mcp-whatsapp.log) |
LOG_STDERR_LEVEL | Optional | Log level for stderr (visible in most MCP client logs) |
WHATSAPP_HEADLESS | Optional | webjs only: set to false to show the browser window instead of running headless |
WHATSAPP_NO_SANDBOX | Optional | webjs only: explicitly disable the browser sandbox for containers that require it. The sandbox is enabled by default. |
BROWSER_EXECUTABLE_PATH | Optional | webjs only: browser executable. Chrome and Edge are auto-detected; set this to use a specific browser. Chrome/Edge is required for sending videos and GIFs. |
WHATSAPP_SESSION_DIR | Optional | webjs only: persistent browser profile folder (default: a fixed per-user place, e.g. %LOCALAPPDATA%\mcp-whatsapp-web\whatsapp-sessions on Windows; an existing <working directory>/whatsapp-sessions keeps being used) |
WHATSAPP_ALLOWED_CHATS | Optional | Limit the server to these chats: phone numbers with country code and/or chat IDs (@c.us, @s.whatsapp.net, @g.us, @lid), comma-separated. Every other chat is refused for sending, reading, listing and webhooks. A mistake or an empty value stops the server; leave it out to allow every chat. |
WHATSAPP_PAIRING_PHONE_NUMBER | Optional | Phone number pairing: when set (international, symbol-free format, e.g. 4915112345678), an 8-character pairing code is logged to stderr on startup instead of relying on the QR code |
FFMPEG_PATH | Optional | Path to an ffmpeg binary (only needed to override the ffmpeg installed automatically via the ffmpeg-static npm package) |
WA_WEB_VERSION | Optional | webjs only: pin the WhatsApp Web version if a WhatsApp-side update breaks the client. |
HEALTH_CHECK_INTERVAL_MS | Optional | webjs only: connection health check interval in milliseconds (<=0 disables) |
TOOL_READY_TIMEOUT_MS | Optional | How long tool calls wait for the WhatsApp client to become ready before erroring |
MCP_HTTP_PORT | Optional | When set, additionally exposes the MCP endpoint at http://127.0.0.1:<port>/mcp (Streamable HTTP) from the same process |
MCP_HTTP_HOST | Optional | Bind address for the HTTP endpoint (do not expose publicly; the endpoint controls your personal WhatsApp account) |
MCP_OAUTH | Optional | Enable OAuth for the HTTP endpoint: /mcp requires a bearer token and clients authenticate via a browser page showing the WhatsApp QR code / pairing form |
Tools17Tool docs quality grade C
All capabilitiescall.endedtoolthat call stopped ringing. reason says how: missed (nobody answered), rejected (declined on one of your devices or with rejectcall), answeredelsewhere (picked up on another device) or ended (the caller hung up, or the server l
call.receivedtoola voice or video call is ringing right now.
Check if you're currently authenticated with WhatsApp
download_mediatoolDownload media from a message
get_chattoolGet information about a specific chat
get_contacttoolGet information about a specific contact
Find a direct chat with a specific contact
get_messagetoolGet a specific message by ID
get_qr_codetoolGet the QR code for WhatsApp Web authentication
list_chatstoolList available chats with metadata
list_messagestoolRetrieve messages with optional filters; transcribevoicenotes: true adds the text of voice notes
reject_calltoolDecline a call that is ringing right now, by the callId from a call.received event (Baileys backend only; fails once the call stopped ringing)
About
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
Frequently asked questions
What is WhatsApp Web MCP Server?
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
How do I install WhatsApp Web MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. WhatsApp Web MCP Server runs locally from the npm package mcp-whatsapp-web with the command npx -y mcp-whatsapp-web@1.5.0.
Is WhatsApp Web MCP Server free and open source?
Yes. WhatsApp Web MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does WhatsApp Web MCP Server support remote (HTTP) connections?
No remote endpoint is listed for WhatsApp Web MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does WhatsApp Web MCP Server provide?
WhatsApp Web MCP Server provides 17 tools, including call.ended, call.received, check_auth_status, and download_media. See the full tool list for descriptions and parameters.
How is WhatsApp Web MCP Server's trust score calculated?
WhatsApp Web MCP Server scores 73 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.