Rich627/whatsapp-claude-plugin
A self-hosted MCP bridge for running Claude Code sessions from WhatsApp
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This TypeScript MCP server runs as a single Bun process with server.ts as the declared entrypoint. Baileys (@whiskeysockets/baileys) connects as a WhatsApp linked device; the optional Cloud API provider receives business DMs through an HTTPS webhook. Both paths apply the same inbound access gate before passing messages to Claude Code over stdio. The manifest includes @modelcontextprotocol/sdk, @inquirer/prompts, and zod alongside Baileys. Runtime state defaults to ~/.whatsapp-channel/ and can be relocated with WHATSAPP_STATE_DIR.
The stdio MCP tools are portable, but push delivery to the model is not: Claude Code wakes on the custom notifications/claude/channel notification. Codex CLI, Gemini CLI, and Cursor can run the server but must pull messages. wait_for_messages waits up to 40 seconds; the first call on a connection returns already-unreplied messages, while later calls return arrivals since the preceding call. Setup and access administration move to terminal scripts outside Claude Code.
Key Capabilities & Differentiators
The shared tools cover replies, reactions, attachment retrieval, status, and recovery of missed context through unreplied and catch_up. Long replies can be split or sent as a document above a configurable threshold. The linked-device provider supports group operations, mentions, typing indicators, read receipts, and polls with up to 12 options; votes return as session messages. Group config.md files can hold personality, conversation memory, and a ## Cron Jobs section for recurring tasks. The Cloud provider is DM-only and adds send_template rather than matching the linked-device toolset.
Access is governed by pairing codes, allowlists, and per-group policies. Pairing approval requires a specific code entered at the terminal and is not an MCP tool. The plugin can also relay Claude tool-permission decisions as WhatsApp emoji reactions. Incoming voice notes remain attachments unless transcription is configured. The Apple Silicon example uses mlx-whisper with mlx-community/whisper-large-v3-turbo; optional Groq and OpenAI routes upload audio to the chosen provider.
Trade-offs & Limitations
Baileys is the simpler choice for personal or group use: it needs no Meta API credentials and replies from the linked number, but its unofficial protocol can conflict with WhatsApp's terms and put the number at risk. Cloud API uses official transport and a business number, but this implementation is limited to DMs and still inherits Meta's service-window and template rules, policies, and applicable fees. Compared with a direct Cloud API integration, the plugin saves work on MCP tools and access controls; a direct integration gives you control over routing and the application lifecycle without depending on a Claude Code session.
The most important boundary is between chat and local tools. An allowlist limits who can send input, not what trusted senders can put in a message. Review the plugin before loading it as a development channel, keep the allowlist narrow, and retain tool-permission prompts; do not combine the channel with --dangerously-skip-permissions. Apache-2.0 covers the plugin code, not platform authorization. A self-hosted bridge still connects to WhatsApp, and cloud transcription adds a separate audio disclosure to the selected provider.
Hardware & Deployment Guide
The bridge needs Bun and a stdio MCP host, not Docker or a locally served language model. To get push delivery in Claude Code, install the marketplace plugin and launch it with --dangerously-load-development-channels plugin:whatsapp-channel@whatsapp-claude-plugin; the ordinary --channels flag does not accept it. Without that development flag, the tools load but incoming messages do not wake the session. Baileys setup pairs a phone by code or QR and needs no Meta API credentials. Cloud setup instead needs a Meta business number, token, app secret, verify token, and a public HTTPS webhook.
Budget separately for the Claude Code host, attachment handling, and any local transcription: the reference transcription setup adds Python, ffmpeg, and mlx-whisper on Apple Silicon. Keep only one process attached to a given linked-device auth state; a second connection can cause a 440 disconnect. A known Claude Code client issue (#37933) can also affect message delivery. No GitHub release is listed, so there is no tagged release history here for tracking provider changes.
wait_for_messages for up to 40 seconds.~/.whatsapp-channel/ by default; linked-device auth state supports only one active connection.Developers or small teams who want a trusted WhatsApp chat to drive an existing Claude Code session, with linked-device groups or official business DMs as distinct options.
You need official group integration, event-driven delivery to generic MCP clients, or a customer-facing service that runs independently of Claude Code.
Quick Start & Installation
bun scripts/access.ts status # policy, allowlist, pending codes, groups bun scripts/access.ts policy pairing # open the door bun scripts/access.ts pair <code> # approve someone who messaged you bun scripts/access.ts allow <jid> # add directly bun scripts/access.ts remove <jid> bun scripts/access.ts group add <groupJid> [--mention] [--allow jid1,jid2] bun scripts/access.ts set replyToMode first # ackReaction, textChunkLimit, chunkMode, mentionPatterns
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| whatsapp-claude-plugin ★ | 132 | +3 | TypeScript | Apache-2.0 | A self-hosted MCP bridge for running Claude Code sessions from WhatsApp |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Rich627/whatsapp-claude-plugin.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about whatsapp-claude-plugin
Can Codex CLI, Gemini CLI, or Cursor receive WhatsApp messages through this server?
notifications/claude/channel; call wait_for_messages, unreplied, or catch_up to retrieve inbound messages. Access administration uses bun scripts/access.ts rather than Claude Code skills.Does the server require a GPU, and what changes if I enable transcription?
Does Apache-2.0 make either provider safe to self-host for commercial use?
When should I use this plugin instead of integrating Meta Cloud API directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy