WhatsApp MCP server for Claude Code — chat, send messages, and manage WhatsApp directly from your terminal
Server has 7 tools with basic schemas and descriptions, but significant gaps limit production readiness. All tools have descriptions (10-100 chars, mostly adequate), and most have Zod-validated input schemas. However, output schemas are undocumented, error messages lack recovery guidance, and several tools accept ambiguous parameters (e.g., 'to' in whatsapp_send_message accepts both names and phone numbers without clear resolution hints). No tool annotations (readOnlyHint, destructiveHint). File system tools (search_files, list_directory) lack input validation and path traversal protection. Team lookup is hardcoded, not scalable. Average tool score: 52/100.
List contents of a directory. Shows files and folders with sizes.
Search for files by name in a directory. Useful for finding PDFs, catalogs, price lists in NAS or local folders.
Look up a CNB team member by name or phone number. Returns their role and contact info.
List recent WhatsApp chats with unread counts and last message preview.
Search WhatsApp contacts by name or phone number.
Send a WhatsApp message to a person (by name or phone) with optional file attachment.
Check WhatsApp connection status, unread count, and account info.
Output schemas undocumented. Tools return JSON via helper functions (json(), err()) but no schema definitions exist for responses. LLMs cannot predict return structure or plan downstream calls.
Ambiguous parameter resolution. 'to' parameter in whatsapp_send_message accepts both contact names ('Pang') and phone numbers ('60123456789'). resolveContact() silently falls back to treating input as phone if not found in TEAM dict. No error if contact not found; LLM may send to wrong recipient.
Path traversal vulnerability in search_files and list_directory. No validation of 'directory' parameter. Attacker or confused LLM could pass '../../../etc/passwd' or absolute paths outside intended scope. fs.readdirSync() will follow any path.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
Error messages lack recovery guidance. err() helper returns bare error text with no actionable next steps. E.g., 'Dashboard not running' tells LLM to start dashboard, but 'HTTP 404' gives no hint. No error classification (retryable vs fatal).
Hardcoded team data. TEAM dict contains only 2 members. team_lookup() is not scalable and requires code changes to add users. Should load from external config or API.