Back to MCP Servers

WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts

To add WhatsApp Web MCP Server to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It declares 16 environment variables, listed below.

BrowserAIDevTools

Install

npx -y mcp-whatsapp-web@1.2.0

Environment variables

WHATSAPP_BACKENDSet in your MCP config
BAILEYS_SESSION_DIRSet in your MCP config
LOG_LEVELSet in your MCP config
LOG_STDERR_LEVELSet in your MCP config
WHATSAPP_HEADLESSSet in your MCP config
WHATSAPP_NO_SANDBOXSet in your MCP config
BROWSER_EXECUTABLE_PATHSet in your MCP config
WHATSAPP_SESSION_DIRSet in your MCP config
WHATSAPP_PAIRING_PHONE_NUMBERSet in your MCP config
FFMPEG_PATHSet in your MCP config
WA_WEB_VERSIONSet in your MCP config
HEALTH_CHECK_INTERVAL_MSSet in your MCP config
TOOL_READY_TIMEOUT_MSSet in your MCP config
MCP_HTTP_PORTSet in your MCP config
MCP_HTTP_HOSTSet in your MCP config
MCP_OAUTHSet in your MCP config

Set only if the maker requires them; this listing does not flag any of them as required.

Install with your client

Terminal
claude mcp add whatsapp-web --env WHATSAPP_BACKEND=<YOUR_WHATSAPP_BACKEND> --env BAILEYS_SESSION_DIR=<YOUR_BAILEYS_SESSION_DIR> --env LOG_LEVEL=<YOUR_LOG_LEVEL> --env LOG_STDERR_LEVEL=<YOUR_LOG_STDERR_LEVEL> --env WHATSAPP_HEADLESS=<YOUR_WHATSAPP_HEADLESS> --env WHATSAPP_NO_SANDBOX=<YOUR_WHATSAPP_NO_SANDBOX> --env BROWSER_EXECUTABLE_PATH=<YOUR_BROWSER_EXECUTABLE_PATH> --env WHATSAPP_SESSION_DIR=<YOUR_WHATSAPP_SESSION_DIR> --env WHATSAPP_PAIRING_PHONE_NUMBER=<YOUR_WHATSAPP_PAIRING_PHONE_NUMBER> --env FFMPEG_PATH=<YOUR_FFMPEG_PATH> --env WA_WEB_VERSION=<YOUR_WA_WEB_VERSION> --env HEALTH_CHECK_INTERVAL_MS=<YOUR_HEALTH_CHECK_INTERVAL_MS> --env TOOL_READY_TIMEOUT_MS=<YOUR_TOOL_READY_TIMEOUT_MS> --env MCP_HTTP_PORT=<YOUR_MCP_HTTP_PORT> --env MCP_HTTP_HOST=<YOUR_MCP_HTTP_HOST> --env MCP_OAUTH=<YOUR_MCP_OAUTH> -- npx -y mcp-whatsapp-web@1.2.0

Run this in a terminal to add the server to Claude Code.

What this does

WhatsApp Web MCP Server exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server declares the following environment variables. Set only the ones the maker requires for your setup; this listing does not flag any of them as required:

WHATSAPP_BACKEND
BAILEYS_SESSION_DIR
LOG_LEVEL
LOG_STDERR_LEVEL
WHATSAPP_HEADLESS
WHATSAPP_NO_SANDBOX
BROWSER_EXECUTABLE_PATH
WHATSAPP_SESSION_DIR
WHATSAPP_PAIRING_PHONE_NUMBER
FFMPEG_PATH
WA_WEB_VERSION
HEALTH_CHECK_INTERVAL_MS
TOOL_READY_TIMEOUT_MS
MCP_HTTP_PORT
MCP_HTTP_HOST
MCP_OAUTH

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install WhatsApp Web MCP Server?

Run the Claude Code command in the install section to add WhatsApp Web MCP Server to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with WhatsApp Web MCP Server?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to WhatsApp Web MCP Server as well.

Does WhatsApp Web MCP Server need an API key?

This listing does not flag an API key as required. The server can use these environment variables: WHATSAPP_BACKEND, BAILEYS_SESSION_DIR, LOG_LEVEL, LOG_STDERR_LEVEL, WHATSAPP_HEADLESS, WHATSAPP_NO_SANDBOX, BROWSER_EXECUTABLE_PATH, WHATSAPP_SESSION_DIR, WHATSAPP_PAIRING_PHONE_NUMBER, FFMPEG_PATH, WA_WEB_VERSION, HEALTH_CHECK_INTERVAL_MS, TOOL_READY_TIMEOUT_MS, MCP_HTTP_PORT, MCP_HTTP_HOST, MCP_OAUTH; the maker's docs say which of them your setup needs. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-mario-andreschak-mcp-whatsapp-web)](https://clauderules.net/mcp/io-github-mario-andreschak-mcp-whatsapp-web)
HTML
<a href="https://clauderules.net/mcp/io-github-mario-andreschak-mcp-whatsapp-web" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-mario-andreschak-mcp-whatsapp-web" alt="Listed on clauderules.net" /></a>