Whatsapp MCP Server

WhatsApp MCP server (stdio) backed by Baileys + SQLite

Local serverstdio

What is the Whatsapp MCP server?

Whatsapp MCP server exists for a simple reason — assistants are far more useful when they can act on Whatsapp directly instead of describing what you should do. WhatsApp MCP server (stdio) backed by Baileys + SQLite.

What you get

Single-user, local, no cloud dependencies. Once you scan the QR code once, your session is saved and you don't have to scan again.

Configuration and credentials

  • Node.js 18+ (this project uses ESM and modern Node APIs) - A WhatsApp account on your phone (you'll scan a QR code once) - A C/C++ toolchain for better-sqlite3 native build: - macOS: Xcode Command Line Tools (xcode-select --install) - Linux: build-essential + python3 - Windows: Visual Studio Build Tools with the "Desktop development with C++" workload

Setting it up

Installation goes through your MCP client rather than a global install: point it at @muhammadmustafa18/whatsapp-mcp-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the team communication options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by muhammadmustafa18; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the whatsapp mcp server does with a few real requests.

How to install the Whatsapp MCP server

{
  "mcpServers": {
    "whatsapp-2": {
      "command": "npx",
      "args": ["-y", "@muhammadmustafa18/whatsapp-mcp-server"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18+ (this project uses ESM and modern Node APIs) - A WhatsApp account on your phone (you'll scan a QR code once) - A C/C++ toolchain for better-sqlite3 native build: - macOS: Xcode Command Line Tools (xcode-select --install) - Linux: build-essential + python3 - Windows: Visual Studio Build Tools with the "Desktop development with C++" workload

Frequently asked questions

It connects Whatsapp to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Whatsapp directly.