Skip to main content
Glama
WhatsApp MCP Server

WhatsApp MCP Server

by MAnasLatif

WhatsApp MCP Server

An open-source, self-hosted Model Context Protocol server that lets you manage several WhatsApp accounts from ChatGPT, Codex, Claude Code or any other MCP client.

IMPORTANT

Early development. The repository, requirements and startup configuration are in place. WhatsApp and MCP features are not implemented yet, so there is nothing to deploy. Progress is tracked in the issues.

Purpose

  • Your own server. You deploy it, and your data stays with you. The project runs no central service.

  • Many accounts. Connect personal, WhatsApp Business app and company numbers to one server.

  • Any MCP client. The server follows the MCP standard and contains no AI. Your client does the thinking.

  • Content passed through unchanged. Files and text reach the client exactly as WhatsApp delivered them.

  • Confirmation based on risk. Deletes, bulk sends and new recipients need your approval outside the conversation.

The full requirements are in docs/SRS.md.

WARNING

This project useswhatsapp-web.js, an unofficial library. It is not affiliated with or endorsed by WhatsApp or Meta, and WhatsApp may block a number that uses it. Do not test with a number you cannot afford to lose.

Related MCP server: wa-mcp

Stack

Part

Technology

Runtime

Node.js 26 and TypeScript

Configuration

Zod

Checks

Biome, Vitest, Lefthook and commitlint

Planned

MCP TypeScript SDK, whatsapp-web.js, Chromium, Cloudflare R2 and Docker

Structure

.github/               Issue forms, pull request template and workflows
docs/
  SRS.md               Requirements, rules and numbered decisions
  ARCHITECTURE.md      Design, deployment and recovery
  USERFLOW.md          Owner and client journeys
src/
  config/              Environment variables and their validation
  startup.ts           Startup checks
  main.ts              Entry point

Setup

You need Git, Node.js 26 and pnpm. pnpm switches to the version this project pins.

git clone https://github.com/MAnasLatif/wa-mcp.git
cd wa-mcp
pnpm install
cp .env.example .env

Fill in .env, then check it:

pnpm build
pnpm start

Commands

Task

Command

Set up

pnpm install

Format

pnpm format

Lint and check format

pnpm lint

Type check

pnpm typecheck

Test

pnpm test

Build

pnpm build

Check the configuration

pnpm start

Full verification

pnpm verify

Contributing

Read CONTRIBUTING.md before you start. Report security problems privately, as described in SECURITY.md. For help, see SUPPORT.md.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A self-hosted WhatsApp bridge with an AI agent enabling searchable context, message drafting, and approval workflow via MCP protocol for Claude Desktop and other MCP clients.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Self-hosted WhatsApp management over Model Context Protocol, exposing a streamable HTTP MCP endpoint with 30 tools for session/QR pairing, messaging, media storage, and optional on-CPU voice note transcription via whisper.cpp.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A secure, zero-setup WhatsApp MCP server that lets AI assistants read, search, summarize, and (with user confirmation) act on personal WhatsApp chats via a safety-focused toolset, built as a maintained successor to the abandoned whatsapp-mcp.
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Runs locally and pairs an existing WhatsApp account as a linked device, enabling Claude Code, Codex, and other MCP clients to read chats, retrieve media, draft replies, and send messages only after client-enforced human approval.
      MIT