
WhatsApp Web MCP Server
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.2.0
- Listing updated
- 4 days ago
About WhatsApp Web MCP Server
WhatsApp Web MCP Server is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
Install
Run in a terminal
claude mcp add mcp-whatsapp-web -- npx -y mcp-whatsapp-webAdd to claude_desktop_config.json
{
"mcpServers": {
"mcp-whatsapp-web": {
"command": "npx",
"args": [
"-y",
"mcp-whatsapp-web"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-whatsapp-web": {
"command": "npx",
"args": [
"-y",
"mcp-whatsapp-web"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mcp-whatsapp-web": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-whatsapp-web"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-whatsapp-web": {
"command": "npx",
"args": [
"-y",
"mcp-whatsapp-web"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-whatsapp-web": {
"command": "npx",
"args": [
"-y",
"mcp-whatsapp-web"
]
}
}
}Configuration
WHATSAPP_BACKENDWhatsApp backend: webjs uses a persistent browser profile; baileys connects without a browser and requires separate pairingBAILEYS_SESSION_DIRBaileys credentials and synchronized history directory (default: <working directory>/baileys-sessions). Use a private absolute path, owned by one server process.LOG_LEVELLog level for the log file (logs/mcp-whatsapp.log)LOG_STDERR_LEVELLog level for stderr (visible in most MCP client logs)WHATSAPP_HEADLESSwebjs only: set to false to show the browser window instead of running headlessWHATSAPP_NO_SANDBOXwebjs only: explicitly disable the browser sandbox for containers that require it. The sandbox is enabled by default.BROWSER_EXECUTABLE_PATHwebjs 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_DIRwebjs only: persistent browser profile directory (default: <working directory>/whatsapp-sessions)WHATSAPP_PAIRING_PHONE_NUMBERPhone 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 codeFFMPEG_PATHPath to an ffmpeg binary (only needed to override the ffmpeg installed automatically via the ffmpeg-static npm package)WA_WEB_VERSIONwebjs only: pin the WhatsApp Web version if a WhatsApp-side update breaks the client.HEALTH_CHECK_INTERVAL_MSwebjs only: connection health check interval in milliseconds (<=0 disables)TOOL_READY_TIMEOUT_MSHow long tool calls wait for the WhatsApp client to become ready before erroringMCP_HTTP_PORTWhen set, additionally exposes the MCP endpoint at http://127.0.0.1:<port>/mcp (Streamable HTTP) from the same processMCP_HTTP_HOSTBind address for the HTTP endpoint (do not expose publicly; the endpoint controls your personal WhatsApp account)MCP_OAUTHEnable OAuth for the HTTP endpoint: /mcp requires a bearer token and clients authenticate via a browser page showing the WhatsApp QR code / pairing form
Pricing
Open source
WhatsApp Web MCP Server FAQ
Is WhatsApp Web MCP Server free?
Yes. WhatsApp Web MCP Server is open source, so you can use and self-host it for free.
How do I add WhatsApp Web MCP Server to Claude Code?
Run this command in your terminal: claude mcp add mcp-whatsapp-web -- npx -y mcp-whatsapp-web
What are the best alternatives to WhatsApp Web MCP Server?
The closest alternatives to WhatsApp Web MCP Server are BoardAgent, Callout, nicemails, SOMMON Office and PostBaton.
Alternatives to WhatsApp Web MCP Server

BoardAgent
MCP serverRemote MCP server for a message board where only AI agents post, reply and vote
- 27 tools
- Remote
- Free
- Community directories

Callout
MCP serverLet an AI agent place real phone calls in Japanese or English and read the transcript
- 5 tools
- Remote
- Freemium
- Communication

nicemails
MCP serverGive each AI agent its own real mailbox to read, search and send email with your approval
- 8 tools
- Remote
- Freemium
- Communication

SOMMON Office
MCP serverSend real paper letters via Deutsche Post from an AI assistant, to 218 countries
Not checked yet- 14 tools
- Remote
- Paid
- Communication

PostBaton
MCP serverSchedule, edit and cancel social posts across networks from an AI assistant or REST API
Not checked yet- Remote
- Freemium
- Marketing and SEO

MeetBetr
MCP serverFind when friends are free and send them a plan after you confirm it
- Remote
- Free
- Productivity