WhatsApp MCP for macOS
macOS용 WhatsApp MCP
Claude를 WhatsApp에 연결하는 Model Context Protocol 서버입니다. 자연스러운 대화를 통해 메시지를 읽고, 연락처를 검색하고, 답장을 보낼 수 있습니다.
기능
연락처 검색 — 이름이나 전화번호로 누구든 찾기
메시지 읽기 — 날짜 필터링 및 검색을 통해 채팅 기록 가져오기
채팅 목록 확인 — 읽지 않은 메시지 수를 포함한 최근 대화 보기
메시지 보내기 — Claude를 통해 직접 답장하기 (QR 인증 필요)
실시간 수신 — 메시지 도착 시 즉시 확인
Related MCP server: whatsapp-mcp
요구 사항
macOS (WhatsApp 데스크톱 앱이 설치 및 로그인되어 있어야 함)
Python 3.10+
Node.js 18+ (메시지 전송용)
설치
pip 사용
pip install whatsapp-mcp-macos소스에서 설치
git clone https://github.com/kalki-kgp/whatsapp-mcp.git
cd whatsapp-mcp
pip install -e .Claude Desktop에 연결
설정 파일 열기:
open ~/Library/Application\ Support/Claude/claude_desktop_config.json파일이 없으면 생성하세요.
WhatsApp MCP 서버 추가:
{ "mcpServers": { "whatsapp": { "command": "python3", "args": ["-m", "whatsapp_mcp"] } } }Claude Desktop 재시작 (Cmd+Q 후 다시 열기)
채팅 입력창의 MCP 도구 아이콘(🔨)을 확인하고 클릭하여 "whatsapp"이 나열되어 있는지 확인하세요.
대화 시작:
"최근 WhatsApp 채팅 보여줘"
"저녁 약속 관련 메시지 검색해줘"
Cursor에 연결
프로젝트의 .cursor/mcp.json에 추가하세요:
{
"mcpServers": {
"whatsapp": {
"command": "python3",
"args": ["-m", "whatsapp_mcp"]
}
}
}Cursor를 재시작하고 AI 채팅에서 WhatsApp 도구를 사용하세요.
사용법
메시지 읽기 (즉시 사용 가능)
Claude에게 다음과 같이 요청하세요:
"최근 WhatsApp 채팅 보여줘"
"저녁 식사에 관한 메시지 검색해줘"
"어제 John이 뭐라고 했어?"
"읽지 않은 메시지 요약해줘"
메시지 보내기 (브리지 필요)
WhatsApp 브리지 시작:
cd bridge && npm install && npm startClaude에게 연결 상태 확인 요청:
"WhatsApp 상태 확인해줘"
QR 코드가 표시되면 브라우저에서 데이터 URL을 열고 휴대폰으로 스캔하세요.
연결되면 다음과 같이 보낼 수 있습니다:
"Mom에게 늦을 거라고 메시지 보내줘"
"John에게 '좋아요'라고 답장해줘"
도구
도구 | 설명 | 브리지 필요 |
| 연결 확인, 필요 시 QR 가져오기 | 아니요 |
| 이름/전화번호로 연락처 검색 | 아니요 |
| 최근 대화 목록 확인 | 아니요 |
| 채팅 메시지 가져오기 | 아니요 |
| 모든 채팅에서 메시지 검색 | 아니요 |
| 읽지 않은 메시지 요약 가져오기 | 아니요 |
| 메시지 보내기 | 예 |
| 실시간 수신 메시지 가져오기 | 예 |
작동 원리
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)읽기 작업은 로컬 WhatsApp 데이터베이스를 직접 쿼리하므로 빠르고 오프라인에서도 작동합니다.
보내기 작업은 Baileys를 사용하여 WhatsApp Web에 연결하는 브리지를 통해 수행됩니다.
개발
# 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개인정보 보호
모든 데이터는 로컬에 유지됩니다. 메시지는 사용자의 WhatsApp 데이터베이스에서 직접 읽습니다.
외부 서버로 데이터가 전송되지 않습니다 (메시지 전송 시 WhatsApp Web 제외).
MCP 서버는 사용자의 컴퓨터에서 로컬로 실행됩니다.
라이선스
MIT
Available Tools
8 toolswhatsapp_get_messagesARead-only
Get messages from a specific WhatsApp chat.
Args: chat_jid: JID of the chat (from whatsapp_search_contacts or whatsapp_list_chats). after: Only messages after this datetime (ISO 8601). Defaults to 24h ago. before: Only messages before this datetime (ISO 8601). Defaults to now. limit: Max messages to return (max 200). search_text: Optional text to filter messages.
Inputs: chat_jid (required), after, limit, before, +1 more. Returns: result
whatsapp_incomingARead-only
Get recent incoming WhatsApp messages from the live connection.
These are real-time messages, not from the local database. Useful for checking new messages that just arrived.
Args: since_minutes: Look back N minutes (default 5, max 60).
Inputs: since_minutes. Returns: result
whatsapp_list_chatsARead-only
List recent WhatsApp chats ordered by last message time.
Args: limit: Number of chats to return (max 50). chat_type: Filter by 'dm', 'group', or 'all'.
Inputs: limit, chat_type. Returns: result
whatsapp_search_contactsARead-only
Search WhatsApp contacts by name or phone number.
Returns matching contacts with their JID, display name, and phone number. Use this to find a contact before reading their messages or sending them a message.
Args: query: Name or phone number to search for (partial match supported).
Inputs: query (required). Returns: result
whatsapp_search_messagesARead-only
Search for messages containing specific text across all chats.
Args: query: Text to search for (case-insensitive). chat_jid: Optional - restrict search to a specific chat. limit: Max results (max 50).
Inputs: query (required), limit, chat_jid. Returns: result
whatsapp_sendA
Send a WhatsApp message.
IMPORTANT:
First use whatsapp_status to ensure WhatsApp is connected.
Use whatsapp_search_contacts to get the correct JID.
Always confirm with the user before sending.
Args: recipient_jid: The JID from whatsapp_search_contacts. message: The text message to send.
Inputs: message (required), recipient_jid (required). Returns: result
whatsapp_statusARead-only
Check WhatsApp connection status.
Returns current status: 'connected', 'qr_pending', 'disconnected', or 'bridge_offline'. If QR code is needed, returns a data URL you can open in a browser to scan.
Call this before sending messages to ensure WhatsApp is connected.
Inputs: no named parameters. Returns: result
whatsapp_unreadARead-only
Get a summary of all unread WhatsApp messages.
Returns chats with unread messages and recent message previews. Great for "catch me up" or "what did I miss" requests.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have distinct purposes, but whatsapp_get_messages and whatsapp_search_messages could cause confusion as both retrieve messages with text filtering. whatsapp_get_messages focuses on a specific chat with time filters, while whatsapp_search_messages searches across all chats, but the overlap in functionality might lead to misselection by agents.
All tools follow a consistent 'whatsapp_verb_noun' pattern with snake_case throughout. The naming is predictable and clear, making it easy for agents to understand the action and target resource without ambiguity.
With 8 tools, this server is well-scoped for managing WhatsApp interactions on macOS. It covers essential operations like checking status, listing chats, searching contacts, retrieving messages, and sending messages, which is appropriate for the domain without being overly complex or sparse.
The toolset provides good coverage for core WhatsApp workflows, including status checks, contact search, message retrieval, and sending. However, there are minor gaps such as the inability to delete messages or manage group settings, which agents might need to work around, but the surface supports most common use cases effectively.
Maintenance
Related MCP Connectors
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Your own WhatsApp in Claude, ChatGPT and other AI apps. Not affiliated with WhatsApp or Meta.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Claude to interact with WhatsApp: read chats, search messages, send messages with a mandatory confirmation step, and transcribe voice notes locally, all with encrypted storage and prompt-injection scrubbing.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read, search, and reply to your personal WhatsApp messages by linking as an extra device, with support for chat history, full-text search, media downloads, and sending messages or files.MIT
- AlicenseAqualityBmaintenanceEnables Claude Desktop to read, search, send, and broadcast WhatsApp messages and files, and manage groups and communities through a linked personal WhatsApp account.221MIT
- AlicenseAqualityBmaintenanceEnables Claude to read WhatsApp Desktop chats on a Mac, including messages, images, documents, and locally transcribed audio, through a local MCP server. Everything runs on the Mac with read-only access and no messages sent.64MIT