
WhatsApp Web MCP Server
WhatsApp MCP via web.js or browserless Baileys: messages, media, chats, groups and contacts
25 stars40 downloads/wk
Reviews
Write oneNobody has reviewed WhatsApp Web MCP Server yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
WhatsApp Web MCP Server tools (1)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
ping
Public scan report
scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it
- Code scan43 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 3 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
What the publisher says
From the WhatsApp Web MCP Server repository's README, as published. We do not edit it. Read it on GitHub
Very Important
Automation of Whatsapp Messages without Meta (Business-)API is against WhatsApp' Terms of Service! You take full responsibility for everything you do with this MCP-Server. It is possible that your account will be flagged/restricted.
MCP WhatsApp Web (TypeScript)
A Model Context Protocol (MCP) server for WhatsApp Web, implemented in TypeScript. This project is a TypeScript port of the original whatsapp-mcp repository.
With this MCP server, you can:
- Search and read your personal WhatsApp messages (including media)
- Search your contacts
- Send messages to individuals or groups
- Send and receive media files (images, videos, documents, audio)
Features
- TypeScript Implementation: Fully typed codebase for better developer experience and code reliability
- Selectable WhatsApp Backend: Uses whatsapp-web.js by default, with an optional Baileys backend that runs without a browser
- MCP Server: Implements the Model Context Protocol for seamless integration with AI assistants
- Media Support: Send and receive images, videos, documents, and audio messages
- Multiple Transport Options: Supports stdio and Streamable HTTP transports — even both at once from a single process (start with stdio and set MCPHTTPPORT to additionally expose http://127.0.0.1:/mcp, or run HTTP-only with --http)
- Flexible Authentication: QR code (as an MCP image tool), pairing code (requestpairingcode tool, or automatically printed to stderr at startup via WHATSAPPPAIRINGPHONENUMBER), and an optional OAuth flow for HTTP clients (MCPOAUTH=true) where the browser authorization page shows the WhatsApp QR code — unlinking WhatsApp revokes tokens so clients automatically re-authenticate
Architecture
This MCP server consists of:
- TypeScript MCP Server: Implements the Model Context Protocol to provide standardized tools for AI assistants to interact with WhatsApp
- WhatsApp Backend: A shared service interface selects web.js/Puppeteer or Baileys/WebSocket, handles authentication, and manages message sending/receiving
- Tool Implementations: Provides various tools for contacts, chats, messages, media, and authentication
Prerequisites
- Node.js >= 22.0.0 (Node 22 or 24 recommended for the Baileys SQLite dependency)
- npm or yarn
- For the default webjs backend: Google Chrome or Microsoft Edge (auto-detected; needed for video/GIF codec support; other operations can use Puppeteer's bundled Chromium)
- For baileys: install optional dependencies, including the native better-sqlite3 module. No Chrome, Edge, or Chromium is needed at runtime.
FFmpeg is bundled automatically via the ffmpeg-static npm package — no manual installation needed. You can point the FFMPEG_PATH environment variable at your own binary to override it.
Installation
npx
npx mcp-whatsapp-webManual Installation
- Clone this repository
git clone https://github.com/mario-andreschak/mcp-whatsapp-web.git
cd mcp-whatsapp-web- Install dependencies
npm install- Build the project
npm run build- Configure environment variables (optional)
Copy the example environment file and modify as needed:
cp .env.example .envShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y mcp-whatsapp-web on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-whatsapp-web -- npx -y mcp-whatsapp-web
WhatsApp Web MCP Server: common questions
- Is WhatsApp Web MCP Server safe?
- Yes, by our scan: it is graded A (92/100). Read the WhatsApp Web MCP Server safety report
- How do I install WhatsApp Web MCP Server?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does WhatsApp Web MCP Server need an API key?
- No secret keys are declared. It reads 16 settings from the environment.
- Is WhatsApp Web MCP Server maintained?
- The last commit was 4 days ago (2026-09-17). The latest release is v1.2.0.