Skip to main content
Glama
WhatsApp Bridge MCP Server

WhatsApp Bridge MCP Server

💬 WhatsApp Bridge MCP Server

License: MIT MCP Standard Claude Ready Python 3.10+

Official Model Context Protocol (MCP 2.0) server enabling Claude Desktop, Claude Code, and autonomous AI agents to dispatch direct WhatsApp messages, documents, media, urgent build alerts, and report summaries to personal or team phones.


💡 The Problem

AI agents can manipulate files, browse the web, and run terminal commands, but they lack a seamless way to ping developers on WhatsApp when a 3-hour build finishes, a production error fires, or human approval is needed. Traditional solutions rely on expensive third-party enterprise providers (Twilio / MessageBird) with heavy monthly fees.

Related MCP server: WAHA WhatsApp MCP Server

🚀 The Solution

mcp-whatsapp-bridge gives Claude native tools to route text, rich alerts, and documents directly through any local WhatsApp session (Baileys / Puppeteer / self-hosted gateway) or direct webhook endpoints.


🛠️ Available MCP Tools

Tool

Parameters

Description

send_whatsapp_message

phone_number, message

Sends a direct message to any international phone number.

send_whatsapp_media

phone_number, media_url, caption, media_type

Dispatches an image, PDF document, or audio file with optional caption.

send_whatsapp_alert

alert_title, details, urgency

Sends an emergency formatted notification to the admin phone.

check_gateway_health

(None)

Probes gateway health endpoint and reports latency in milliseconds.


📦 Setup & Configuration

Environment Variables

Variable

Description

Default

WHATSAPP_GATEWAY_URL

URL of the WhatsApp bridge gateway

http://localhost:3001/send

WHATSAPP_DEFAULT_PHONE

Default administrator phone for alerts

(Optional)

WHATSAPP_API_KEY

Bearer authorization token

(Optional)

1. Claude Desktop Integration

Add the server to your claude_desktop_config.json:

{
  "mcpServers": {
    "whatsapp-bridge": {
      "command": "python3",
      "args": ["/path/to/mcp-whatsapp-bridge/server.py"],
      "env": {
        "WHATSAPP_GATEWAY_URL": "http://localhost:3001/send",
        "WHATSAPP_DEFAULT_PHONE": "+6281234567890",
        "WHATSAPP_API_KEY": "optional_bearer_token"
      }
    }
  }
}

2. Claude Code CLI Integration

claude mcp add whatsapp-bridge -- python3 /path/to/server.py

3. CLI Diagnostics Mode

Test connection to your gateway without launching the full MCP loop:

python3 server.py --test
python3 server.py --test --json

🧪 Running Tests

python3 tests/test_server.py

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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
      D
      maintenance
      Enables sending WhatsApp messages through Claude Desktop and other MCP-compatible LLMs. Supports single and bulk messaging, phone number validation, and session management via the zapr.link service.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude to interact with WhatsApp through a unified backend API, providing 20 tools for messaging, media, groups, contacts, and chat management.
      22
      22 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables Claude or other MCP clients to interact with WhatsApp through the WAHA HTTP API, supporting messaging, group management, and contact operations.
      21
      8 npm
      MIT