WhatsApp MCP for macOS
Enables Claude to interact with WhatsApp on macOS through the Model Context Protocol. It allows reading messages, searching contacts, listing chats, and sending replies via natural conversation.
README
WhatsApp MCP for macOS
<!-- mcp-name: io.github.kalki-kgp/whatsapp-macos -->
A Model Context Protocol server that connects Claude to your WhatsApp. Read messages, search contacts, send replies — all through natural conversation.
<p align="center"> <img src="https://img.shields.io/badge/platform-macOS-blue" alt="macOS"> <img src="https://img.shields.io/badge/MCP-1.0-green" alt="MCP 1.0"> <img src="https://img.shields.io/badge/license-MIT-lightgrey" alt="MIT License"> </p>
Features
- Search contacts — Find anyone by name or phone number
- Read messages — Get chat history with date filtering and search
- List chats — See recent conversations with unread counts
- Send messages — Reply directly through Claude (with QR authentication)
- Real-time incoming — Get messages as they arrive
Requirements
- macOS with WhatsApp desktop app installed and logged in
- Python 3.10+
- Node.js 18+ (for sending messages)
Installation
Using pip
pip install whatsapp-mcp-macos
From source
git clone https://github.com/kalki-kgp/whatsapp-mcp.git
cd whatsapp-mcp
pip install -e .
Connect to Claude Desktop
-
Open config file:
open ~/Library/Application\ Support/Claude/claude_desktop_config.jsonIf it doesn't exist, create it.
-
Add the WhatsApp MCP server:
{ "mcpServers": { "whatsapp": { "command": "python3", "args": ["-m", "whatsapp_mcp"] } } } -
Restart Claude Desktop (Cmd+Q, then reopen)
-
Look for the MCP tools icon (🔨) in the chat input — click it to verify "whatsapp" is listed
-
Start chatting:
- "Show my recent WhatsApp chats"
- "Search messages for dinner plans"
Connect to Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"whatsapp": {
"command": "python3",
"args": ["-m", "whatsapp_mcp"]
}
}
}
Restart Cursor and use WhatsApp tools in the AI chat.
Usage
Reading messages (works immediately)
Just ask Claude:
- "Show my recent WhatsApp chats"
- "Search for messages about dinner"
- "What did John say yesterday?"
- "Catch me up on unread messages"
Sending messages (requires bridge)
-
Start the WhatsApp bridge:
cd bridge && npm install && npm start -
Ask Claude to check connection:
- "Check WhatsApp status"
-
If it shows a QR code, open the data URL in a browser and scan with your phone
-
Once connected, you can send:
- "Send a message to Mom saying I'll be late"
- "Reply to John with 'sounds good'"
Tools
| Tool | Description | Requires Bridge |
|---|---|---|
whatsapp_status |
Check connection, get QR if needed | No |
whatsapp_search_contacts |
Search contacts by name/phone | No |
whatsapp_list_chats |
List recent conversations | No |
whatsapp_get_messages |
Get messages from a chat | No |
whatsapp_search_messages |
Search across all chats | No |
whatsapp_unread |
Get unread message summary | No |
whatsapp_send |
Send a message | Yes |
whatsapp_incoming |
Get real-time incoming messages | Yes |
How it works
Claude ──MCP──▶ WhatsApp MCP Server
│
├──▶ Local SQLite DBs (read messages)
│ ~/Library/Group Containers/group.net.whatsapp.WhatsApp.shared/
│
└──▶ WhatsApp Bridge (:3010) ──▶ WhatsApp Web
(for sending)
Read operations query the local WhatsApp database directly — fast and works offline.
Send operations go through the bridge, which connects to WhatsApp Web using Baileys.
Development
# Clone
git clone https://github.com/kalki-kgp/whatsapp-mcp.git
cd whatsapp-mcp
# Install in dev mode
pip install -e ".[dev]"
# Run server
python -m whatsapp_mcp
Privacy
- All data stays local — messages are read from your own WhatsApp database
- No data is sent to external servers (except WhatsApp Web when sending)
- The MCP server runs locally on your machine
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。