WhatsApp Web MCP Server
by github.com/mario-andreschak · v1.2.0 · updated Sep 5, 2026
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
WHATSAPP_BACKENDWhatsApp backend: webjs uses a persistent browser profile; baileys connects without a browser and requires separate pairing
BAILEYS_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 headless
WHATSAPP_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 code
FFMPEG_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 erroring
MCP_HTTP_PORTWhen set, additionally exposes the MCP endpoint at http://127.0.0.1:<port>/mcp (Streamable HTTP) from the same process
MCP_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
More from github.com/mario-andreschak
MCP VS Code
github.com/mario-andreschak
A self-hosted VS Code workbench embedded as an interactive MCP App.
MCP CAD Studio
github.com/mario-andreschak
A self-contained parametric CAD studio MCP server with an interactive MCP App.
MCP Audio Studio
github.com/mario-andreschak
A digital audio workstation MCP App with sequencing, mixing, effects, automation, and rendering.
Mcp Abap Abap Adt Api
github.com/mario-andreschak
MCP server wrapping abap-adt-api for ABAP ADT development workflows against SAP systems
Mcp Abap Adt
github.com/mario-andreschak
ABAP ADT MCP server for reading SAP objects (programs, classes, tables, CDS) via ADT
More MCP servers
locli
github.com/mariohahn
Find, add, push and pull an app's user-facing texts in locli (iOS, Android, web, backend).
Imgflip Mcp
github.com/mariokernich
Browse Imgflip meme templates and generate memes (caption images, AI memes) via the Imgflip API
Rundeck Mcp Server
github.com/mariomorenodev
50 tools to manage Rundeck jobs, executions, projects, nodes, and system via MCP
Apolo Cad
github.com/mariorojasmz
Agent-native parametric 3D CAD: model machines, validate them and emit shop drawings
ARV Estimator
github.com/mariov7757
Estimate a home's after-repair value from scored, gated sold comps, with the evidence.
LibrePass eSIM
github.com/mariusbolik
Read-only LibrePass eSIM catalogue: find countries, data plans in EUR and SIM registration rules.