whatsapp-triage
Provides tools for interacting with WhatsApp, including sending and scheduling messages, listing chats, fetching chat history, searching contacts, and managing auto-reply rules and urgent message triage.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@whatsapp-triagetriage my urgent WhatsApp messages"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π’ WhatsApp Model Context Protocol (MCP) Server & Command Center
Production-ready WhatsApp MCP Server featuring Two-Pass Hybrid LLM Triage, Auto-Responder Automation with Deduplication Cooldowns, Real-Time SSE Gateway, 9 Light-Mode NitroStudio Tool Widgets, and a Dedicated React 19 + Tailwind CSS Command Center Dashboard.
ποΈ Architecture Overview
The system operates on a dual-runtime architecture connecting AI agents (via STDIO Model Context Protocol) with a real-time web command center and background automation workers.
βββββββββββββββββββββββββββββββββββββββββββ
β CLIENT SURFACES β
β β’ Claude Desktop / Cursor IDE (STDIO) β
β β’ NitroStudio Visual Client β
β β’ Dedicated React Dashboard (Port 5173)β
β β’ Express Web Gateway (Port 3000) β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β DUAL-RUNTIME GATEWAY / BACKEND β
β β’ STDIO Model Context Protocol (MCP) β
β β’ Express REST API (CORS Enabled) β
β β’ SSE Real-Time Event Stream β
β β’ NitroStack Widget Dev Server (3001) β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
β
ββββββββββββββββββββββββ΄βββββββββββββββββββββββ
βΌ βΌ
βββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ
β WHATSAPP SESSION CORE β β HYBRID TRIAGE ENGINE β
β β’ whatsapp-web.js (LocalAuth) β β’ Pass 1: Fast-Path Regex β
β β’ Headless Chromium Engineβ β β’ Pass 2: Semantic LLM β
β β’ Event Bus (src/bus.ts) β β β’ Dynamic Context Window β
βββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββRelated MCP server: whatsapp-mcp-server
β‘ Key Capabilities
1. π§ Two-Pass Hybrid LLM & Fast-Path Triage Engine
Pass 1 (Fast-Path Regex): Instant $0\text{ms}$ detection for critical infrastructure outages, OTP authentication codes, and holiday broadcast noise.
Pass 2 (Semantic LLM Fallback): Evaluates sentiment (
distressed,urgent,frustrated,neutral,positive), intent classification, and urgency scoring ($0.0 - 1.0$).Dynamic Context Injection: Injects sliding chat history (last 5 messages) into the evaluation context to detect multi-message escalations (e.g. repeated unanswered inquiries).
Priority Tiers:
CRITICALβ Infrastructure down, OTP authentication, server/database failure, active disaster.URGENTβ High-stakes time limits ("today", "asap", "call me now", "deadline", repeated unanswered escalations).VIPβ C-suite executives, enterprise VIP clients, strategic partners (exempt from automated spam).NORMALβ Routine transactional queries, pricing requests, general conversation.NOISEβ Chain forwards, holiday greetings, broadcast promotions.
2. π‘οΈ Safety Filters & Deduplication
VIP Exemption: VIP contacts are protected from automated bot spam.
Group Filter: Automated replies are suppressed in
@g.usgroup chats.Cooldown Deduplication: Enforces per-sender cooldowns (e.g., 30β60 min) to eliminate reply loops.
Human-in-the-Loop (HITL) Staging: Outbound messages can be staged for manual 1-click review and approval before dispatch.
3. π Complete Model Context Protocol (MCP) Surface
9 MCP Tools:
send_messageβ Dispatch message with optional approval requirement.get_urgent_messagesβ Query recent high-priority messages with triage radar.list_recent_chatsβ Filter conversations by priority, groups, or direct chats.fetch_chat_historyβ Historical message timeline for a chat.search_contactsβ Search contacts, phone numbers, and VIP tiers.schedule_messageβ Queue future timestamped message dispatches.configure_auto_reply_ruleβ Create exact, contains, or regex automation rules.get_active_auto_repliesβ List active rules with match execution metrics.toggle_auto_responderβ Enable or pause specific automation rules dynamically.
4 MCP Resources:
whatsapp://connection/status,whatsapp://contacts/vip-list,whatsapp://rules/urgency-keywords, andwhatsapp://automation/auto-reply-rules.2 MCP Prompts:
urgency_triage_assistant(hybrid scoring) andauto_reply_rule_generator.
4. π¨ 9 Light-Mode NitroStudio Tool Widgets
Bundled interactive tool widgets optimized for NitroStudio:
send-messageβ Delivery receipt & approval bannerurgent-messagesβ Urgency Triage Radarrecent-chatsβ WhatsApp Inbox Feedchat-historyβ Conversation Timeline transcriptsearch-contactsβ Contact & VIP Directory cardsschedule-messageβ Scheduled Queue Managerconfigure-auto-replyβ Auto-Reply Rule Builderactive-auto-repliesβ Automation Rules Consoletoggle-responderβ Rule State Switcher
5. π» Dedicated React 19 Command Center Dashboard
Located in frontend/ (Vite + React 19 + TypeScript + Tailwind CSS v4):
3-Pane Split Viewport: Filterable chat feed (
All,Urgent,VIPs,Staged Approvals), chronological thread with badge indicators, and right-hand contact dossier inspector.HITL Staging Modal: 1-click Approve and Reject controls for staged messages.
Auto-Reply Rule Studio: Visual builder for regex and keyword matchers with cooldown sliders.
Live Audit Drawer: Terminal streaming raw MCP tool calls, triage scoring, and event bus telemetry in real time.
QR Authentication Modal: Visual QR code pairing overlay with mobile linking steps.
6. π¨ Automated Webhook Monitoring & Health Probes
Automated Webhooks: Sends Slack / Discord notifications on session drops (
status_change: DISCONNECTED) and incomingCRITICALmessages.Liveness Probe (
/healthz): Process uptime, memory metrics (heapUsedMB,rssMB), and runtime environment.Readiness Probe (
/readyz): WhatsApp engine state, Chromium process health, and Redis latency.
π Quick Start Guide
1. Prerequisites
Node.js 22+
npm 10+
2. Install Dependencies
# Install backend dependencies
npm install
# Install frontend dependencies
cd frontend && npm install && cd ..3. Run Offline Benchmark Suite
npm run evaluateRuns the offline triage and auto-reply benchmark suite without needing a live WhatsApp connection, verifying:
100% Triage classification accuracy across all 5 priority tiers.
100% Auto-reply pattern matching, group safety, VIP protection, and cooldown deduplication.
4. Start Local Development Servers
# Start backend MCP Server + Express REST/SSE Gateway (Port 3000)
npm run dev
# In a separate terminal, start the dedicated Vite React Frontend (Port 5173)
cd frontend
npm run dev5. Open in Browser
React Frontend: http://localhost:5173
Backend Live Dashboard: http://localhost:3000
NitroStudio Widgets Server: http://localhost:3001
π€ Claude Desktop & Cursor MCP Configuration
For Claude Desktop:
Add this configuration to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"whatsapp-triage": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/whatsapp/dist/index.js"
],
"env": {
"NODE_ENV": "production"
}
}
}
}For Cursor IDE:
A .cursor/mcp.json file is automatically provided in the root of the project:
{
"mcpServers": {
"whatsapp-triage": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}π³ Production Containerization (Docker Compose)
The project includes a multi-stage Dockerfile (Node 22 + Chromium + dumb-init), Redis 7 Alpine cache, and an Nginx reverse proxy with unbuffered Server-Sent Events (SSE).
# Build and launch all services in background
docker compose up --build -d
# View live backend logs and QR pairing code
docker compose logs -f whatsapp-backend
# Access production dashboard
http://localhostπ‘ REST API & Webhook Reference
Method | Endpoint | Description |
|
| Server-Sent Events (SSE) live bus event stream |
|
| Kubernetes Liveness Probe (Uptime, memory metrics) |
|
| Kubernetes Readiness Probe (WhatsApp state, Chromium health) |
|
| System health, connection status, and state snapshot |
|
| List message history with priority classifications |
|
| Send WhatsApp message with optional approval staging |
|
| List staged human-in-the-loop (HITL) approval messages |
|
| Approve and dispatch a staged message |
|
| Reject and cancel a staged message |
|
| List all auto-reply rules (active/paused) |
|
| Create or update an auto-reply rule |
|
| Toggle auto-reply rule state ( |
|
| Delete an auto-reply rule |
|
| View active Slack/Discord webhook configuration |
|
| Update alert webhook endpoints |
|
| Trigger a test alert to verify webhook delivery |
π§ͺ Benchmark Accuracy Metrics
========================================================================
π§ͺ WHATSAPP MCP HYBRID LLM TRIAGE EVALUATION BENCHMARK
========================================================================
β’ Hybrid Classification Accuracy : 100.0% (8/8) [β
PASS]
β’ Auto-Reply Decision Accuracy : 100.0% (8/8) [β
PASS]
β’ VIP Protection Filter : 100% [β
PASS]
β’ Group Chat Safety Filter : 100% [β
PASS]
β’ Cooldown Deduplication Engine : 100% [β
PASS]π License
MIT Β© Shreya Kumari
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Give your AI agents a real WhatsApp number to send and receive messages.
Run WhatsApp Business campaigns from any AI assistant: contacts, segments, and broadcasts.
WhatsApp CRM for AI agents: search contacts, read chats, manage the sales pipeline, send messages.
Drive your real WhatsApp inbox from Claude β send, reply, label, assign, and triage via TimelinesAI.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to send WhatsApp messages, templates, and retrieve media through the WhatsApp Cloud API. Provides webhook handling and seamless integration with Meta's WhatsApp Business platform.23
- AlicenseAqualityDmaintenanceConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without the risk of account bans.184723MIT
- AlicenseNot gradedqualityCmaintenanceIntegrates WhatsApp with AI agents, enabling message sending, chat search, media sharing, approval workflows, and activity summaries via any MCP client.1Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI assistants to manage WhatsApp business operations including chatbots, broadcasts, campaigns, and contacts through 120+ MCP tools.10055MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shreyakumari2006/whatsapp---Mcp-bot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server