A powerful Node.js CLI tool and MCP Server for analyzing and extracting local WhatsApp data on macOS.
This tool works with the local data stored by the WhatsApp for macOS Desktop app.
- Node.js (v18 or higher)
- Full Disk Access: You must grant Full Disk Access to your terminal (Terminal.app, iTerm2, etc.) in System Settings > Privacy & Security > Full Disk Access.
Start a rich TUI experience to navigate through your chats, contacts, and calls:
npx whatsapp-cli exploreIntegrate your WhatsApp data directly with AI models like Claude.
Configuration for Claude Desktop:
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"whatsapp": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/whatsapp-cli/dist/index.js", "mcp"]
}
}
}explore: Start the interactive TUI.check: Verify database local paths and permissions.chats: List recent chat sessions.messages <jid>: Show messages from a specific contact/group.contacts: List contacts from address book.calls: Recent call history.info: General overview and statistics.
-
Install dependencies:
npm install
-
Run in development:
npm run dev -- explore
-
Run MCP Server (Dev):
npm run mcp
-
Build:
npm run build
See docs/WHATSAPP.md for detailed database schema and storage architecture details.