An MCP server that connects Claude and other LLM clients to WhatsApp via the Baileys library. Enables sending and receiving messages, listing chats, downloading media, and more.
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find.
Install from
M8ven verifies MCPs across every public registry — install directly from whichever one you prefer.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
Baileys has message upsert / hist sync spoofing and app state corruption when using maliciously crafted protocolMessage payload
Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
process.env. You'll be asked to provide them before it can run.WHATSAPP_AUTH_DIR— ~/.whatsapp-mcp/auth Directory for session persistenceWHATSAPP_DEVICE_NAME— (unset) Optional linked-device label shown in WhatsApp ("Linked devices"), e.g. WHATSAPP_DEVICE_NAME=MyAgent-1 (will show like MyAgent-1 (Mac OS) or ... (Ubuntu)).WHATSAPP_EXIT_AFTER_PAIR— auto If a QR code was shown in this run, exit automatically after successful pairing. Defaults to enabled only for interactive terminal runs (TTY).WHATSAPP_HTTP_HOST— WHATSAPP_MCP_TRANSPORT=http =127.0.0.1 WHATSAPP_HTTP_PORT=8787 WHATSAPP_HTTP_PATH=/mcp node dist/index.jsWHATSAPP_HTTP_PATH— WHATSAPP_MCP_TRANSPORT=http WHATSAPP_HTTP_HOST=127.0.0.1 WHATSAPP_HTTP_PORT=8787 =/mcp node dist/index.jsWHATSAPP_HTTP_PORT— WHATSAPP_MCP_TRANSPORT=http WHATSAPP_HTTP_HOST=127.0.0.1 =8787 WHATSAPP_HTTP_PATH=/mcp node dist/index.jsWHATSAPP_MAX_MESSAGES_PER_CHAT— 200 Retention limit per chat for the local message store.WHATSAPP_MAX_MESSAGES_TOTAL— 2000 Global retention limit for the local message store.WHATSAPP_MCP_TRANSPORT— http WHATSAPP_HTTP_HOST=127.0.0.1 WHATSAPP_HTTP_PORT=8787 WHATSAPP_HTTP_PATH=/mcp node dist/index.jsWHATSAPP_PERSIST_MESSAGES— false Persist the local message store to disk (message-store.json).WHATSAPP_RELINK— (unset) Force re-linking in non-interactive environments. Use backup (or 1/true) to move the existing auth dir aside, or delete to remove it.WHATSAPP_SIGNAL_ERROR_THRESHOLDWHATSAPP_SIGNAL_ERROR_WINDOW_MSWHATSAPP_UPLOAD_DIR— /tmp/whatsapp-uploads Directory for uploaded files (HTTP mode).WHATSAPP_UPLOAD_MAX_SIZE— 52428800 Max upload file size in bytes (default: 50 MB).[](https://m8ven.ai/mcp/ydmw74-whatsapp-mcp-server-oolj85)