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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: GoWA 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Connect a personal/Business WhatsApp account via QR pairing (multi-device, like WhatsApp Web). Send
Send WhatsApp messages and templates, manage chats, contacts, broadcasts and AI agents.
Read, summarize and send your own WhatsApp messages from AI assistants (OAuth 2.1).
WhatsApp for AI agents — your own number or the official Cloud API: messages, media, templates.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to control WhatsApp, including sending messages and media, reading chats, managing groups and communities, with QR/pairing auth and session persistence.1416 npm2MIT

GoWA MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and tools to send and manage WhatsApp messages, media, statuses, and scheduled sends across multiple linked devices.MIT- AlicenseNot gradedqualityBmaintenanceWA MCP is a hosted WhatsApp MCP server. It connects your own WhatsApp number to Claude, Claude Code, ChatGPT, Grok Bot, Cursor or any MCP client. Free plan with no time limit, nothing to install.MIT
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants to the WhatsApp Business API, enabling them to list phone numbers, send messages and templates, check delivery status, and manage templates and webhook overrides.616 npmMIT