Use when reading WhatsApp messages, searching conversations, sending messages, listing chats, or interacting with WhatsApp workspaces
What this skill does
# WhatsApp
Interact with WhatsApp via the whatsapp-mcp server. Use `skill_mcp(mcp_name="whatsapp", ...)` to invoke tools.
## Setup
The WhatsApp MCP runs as a persistent HTTP server. It's configured in your environment:
- `WHATSAPP_MCP_URL` — URL of the WhatsApp MCP server (e.g., `http://ghost-wispr.tailb86685.ts.net:3456/mcp`)
- `WHATSAPP_MCP_SECRET` — Bearer token for authentication
For first-time setup of the daemon, see the [deployment docs](~/.dotfiles/whatsapp/).
### Local Development (stdio mode)
For local development or testing, you can run the server directly in stdio mode:
```bash
npx --yes @sjawhar/whatsapp-mcp
```
First run requires QR code pairing — run the command in a terminal, scan with WhatsApp > Linked Devices.
## Tools
| Tool | Purpose |
| ------------------------ | ---------------------------------------------------- |
| `list_chats` | List chats sorted by last activity |
| `get_chat` | Get chat details with recent messages |
| `list_messages` | Get messages from a chat (most recent first) |
| `search_messages` | Substring search across messages |
| `search_contacts` | Find contacts by name or phone number |
| `get_message_context` | Get messages surrounding a specific message |
| `get_my_profile` | Get authenticated user's phone number and JID |
| `update_contact` | Set display name for a contact |
| `sync_contacts` | Import phone contacts from VCF file or string |
| `send_message` | Send text message (requires `confirmed: true`) |
| `send_file` | Send file (requires `confirmed: true`, path restricted to uploads dir) |
| `delete_message` | Delete a message (requires `confirmed: true`) |
| `delete_chat` | Delete entire chat (requires `confirmed: true`) |
| `download_media` | Download media from a message to local disk |
| `transcribe_voice_note` | Transcribe voice note via Whisper API |
| `resolve_contacts` | Resolve unknown LID contacts to phone numbers + sync names |
## Confirmation Flow
Destructive tools (`send_message`, `send_file`, `delete_message`, `delete_chat`) require a two-step confirmation:
1. Call with `confirmed: false` (default) → returns preview
2. Call with `confirmed: true` → executes the action
## Usage Examples
```
skill_mcp(mcp_name="whatsapp", tool_name="list_chats", arguments='{"limit": 10}')
skill_mcp(mcp_name="whatsapp", tool_name="search_messages", arguments='{"query": "meeting tomorrow"}')
skill_mcp(mcp_name="whatsapp", tool_name="send_message", arguments='{"jid": "[email protected]", "text": "Hello!", "confirmed": false}')
skill_mcp(mcp_name="whatsapp", tool_name="download_media", arguments='{"jid": "[email protected]", "messageId": "ABC123"}')
```
## JID Format
- Individual: `[email protected]` (phone number without +)
- Group: `[email protected]`
- Use `search_contacts` to find JIDs by name
## Resolving Unknown Contacts
If contacts show as phone numbers instead of names, sync them from Google Contacts:
1. Load the `google-workspace` skill
2. Export Google Contacts as VCF using `gws contacts export`
3. Pass the VCF content to `sync_contacts` via the `vcf_content` parameter:
```
skill_mcp(mcp_name="whatsapp", tool_name="sync_contacts", arguments='{"vcf_content": "<vcard data>"}')
```
4. Review results — the tool reports `exactMatches`, `fuzzyMatches`, and `totalUpdated`
## Security Notes
- `send_file` only allows files within the configured uploads directory
- `download_media` sanitizes filenames to prevent path traversal
- Rate limiting is active on outbound messages (3s minimum interval + jitter)
- Voice transcription requires `WHISPER_API_URL` and `WHISPER_API_KEY` env vars
## ⚠️ Burner Number Warning
This uses the unofficial WhatsApp Web API (Baileys). WhatsApp may ban accounts using unofficial clients. Use a dedicated number you can afford to lose.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.