WhatsApp Web MCP
Provides tools for interacting with a linked WhatsApp account, including sending text messages and media to phone numbers or group JIDs, checking whether a phone number is registered on WhatsApp, and viewing connection status and linked phone details.
Click on "Deploy 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 Web MCPSend a WhatsApp message to +15551234567 saying 'Running late, be there in 10.'"
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 Web / Personal MCP (was-whatsapp-web-mcp)
A self-contained, cross-platform Model Context Protocol (MCP) server for personal and business WhatsApp accounts via terminal QR code pairing. Built on pure WebSockets via Baileys (zero Chromium/Puppeteer overhead). Exposes 4 tools allowing AI coding assistants (Claude Desktop, Cursor, Antigravity, VS Code, Zed, etc.) to send messages, forward media, verify phone numbers, and check status using your linked WhatsApp number. Built by Web Analytics Solution.
Prerequisites
Required | How to install | |
Node.js 18+ | running | Mac: |
Git | letting | Mac: |
WhatsApp on Phone | to scan QR code | Android or iPhone |
Terminal access | for pairing | Walked through below |
Related MCP server: whatsapp-mcp-server
Quick Start — 3 Steps
Step 1 — Pair via Terminal QR Code
Run the interactive authorization command in your terminal:
npx -y github:mnsmasum62786/was-whatsapp-web-mcp authA QR code will display directly in your terminal.
Open WhatsApp on your phone.
Tap Settings (or the 3 dots on Android) > Linked Devices > Link a Device.
Point your camera at the terminal QR code to scan it.
The session will be encrypted and saved locally at
~/.was-whatsapp-web-mcp/session/.
Step 2 — Add to Your AI Client
Add the following configuration to your AI client's MCP configuration JSON file:
{
"mcpServers": {
"WhatsApp Web MCP": {
"command": "npx",
"args": ["-y", "github:mnsmasum62786/was-whatsapp-web-mcp"]
}
}
}Configuration File Locations by Client:
Claude Desktop (Mac):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.jsonCursor:
~/.cursor/mcp.json(or via Cursor Settings -> MCP)Google Antigravity / Windsurf:
~/.gemini/antigravity/mcp.jsonor~/.codeium/windsurf/mcp_config.json
What You Can Ask the AI
Messaging & Notifications
"Send a WhatsApp message to
+15551234567saying: 'Hey, I am testing my AI agent on WhatsApp!'.""Send an image from
https://example.com/chart.pngto+15551234567with caption 'Monthly Report'.""Send a PDF contract from
https://example.com/contract.pdfto group120363024849202@g.us."
Validation & Status
"Check if
+15551234567is registered on WhatsApp.""Show my current WhatsApp connection status and linked phone number."
All Tools (4 Total)
Category | Tools | Description |
Messaging |
| Send a text message to any phone number or group JID. |
| Send image, video, audio, or document to a phone number or group JID via URL. | |
Verification |
| Check if a phone number exists on WhatsApp and get their verified JID. |
| View connection state and connected phone details. |
CLI Commands
You can run these commands directly via npx -y github:mnsmasum62786/was-whatsapp-web-mcp <command>:
auth— Display QR code in terminal and pair with your WhatsApp phone.status— Show whether your WhatsApp session is linked and file paths.logout— Delete the local session directory (~/.was-whatsapp-web-mcp/).help— Print command line usage.
Troubleshooting
1. "WhatsApp Web MCP — not configured yet"
Cause: The server was started before pairing your device.
Fix: Open your terminal and run
npx -y github:mnsmasum62786/was-whatsapp-web-mcp auth.
2. "WhatsApp connection timed out (15s)"
Cause: Your phone might be offline or disconnected from Wi-Fi/cellular data.
Fix: Open WhatsApp on your phone to refresh connection and retry.
3. Windows PowerShell Execution Policy Error
If you see an error like npx.ps1 cannot be loaded because running scripts is disabled:
Fix: Run the following command in PowerShell:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
4. Cache Issues after Updates
To force clear the npx cache and download the latest release:
Windows (PowerShell):
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache" -ErrorAction SilentlyContinue npm cache clean --forceMac / Linux:
rm -rf ~/.npm/_npx npm cache clean --force
License
MIT License. Built by Web Analytics Solution.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect a personal/Business WhatsApp account via QR pairing (multi-device, like WhatsApp Web). Send
WhatsApp for AI agents — your own number or the official Cloud API: messages, media, templates.
Drive WhatsApp from any MCP client: pair devices, send text and media, manage contacts and groups.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI assistants to interact with WhatsApp through the WSAPI service, supporting comprehensive messaging, contact management, group operations, and account management functionality. Allows sending various media types, managing chats, and controlling WhatsApp sessions through natural language.10114 npm3MIT
- AlicenseAqualityDmaintenanceConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without the risk of account bans.183 npm24MIT
- AlicenseBqualityDmaintenanceEnables AI agents to control WhatsApp, including sending messages and media, reading chats, managing groups and communities, with QR/pairing auth and session persistence.147 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables an assistant to send WhatsApp messages, images, documents, and voice alerts with delivery confirmations, read incoming messages for two-way interaction, and check connection status.3 npmMIT