Whatsapp Macos

io.github.kalki-kgp由 GitHub 帳號 kalki-kgp 發布v0.1.1更新於 Oct 24, 2026

WhatsApp MCP for macOS - Read messages from local DB, send via WhatsApp Web.

已驗證STDIO僅桌面檔案與儲存溝通與協作

概覽

AI 產生的概覽

一個僅限 macOS 的 MCP 伺服器,讓助理讀取本機 WhatsApp 聊天、搜尋訊息與聯絡人,並可選擇透過 WhatsApp Web 傳送回覆。

可以做什麼
依姓名或電話號碼搜尋聯絡人,列出最近對話與未讀數量,資料來自 macOS 本機 WhatsApp 資料庫,可離線使用且不需橋接。依日期篩選讀取聊天記錄,跨所有聊天搜尋訊息,並彙整未讀訊息。檢查 WhatsApp 連線狀態,需要時取得 QR 碼。在選用的 WhatsApp Web 橋接執行後,傳送訊息並接收新訊息。
適用情境
當你希望助理幫你整理未讀 WhatsApp 聊天、搜尋訊息記錄或草擬並傳送回覆,且使用已安裝並登入 WhatsApp 桌面版的 macOS 時適用。
執行需求
macOS,且已安裝並登入 WhatsApp 桌面版。伺服器透過 uvx 從 PyPI 套件 whatsapp-mcp-macos 在本機執行,需先安裝 uv。傳送訊息另需 Node.js 18+ 並在本機啟動獨立的 WhatsApp 橋接,用手機掃描 QR 碼連接 WhatsApp Web。
安裝前請注意
伺服器會讀取你的個人 WhatsApp 訊息資料庫,助理因此能看到私密對話。傳送訊息需要橋接,橋接會連接 WhatsApp Web 並可能以你的身分傳送訊息,允許傳送前請先確認。除傳送時經 WhatsApp Web 外,資料保留在本機。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Whatsapp Macos,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Check it out on https://mcp.paperknife.app/

WhatsApp MCP for macOS

A Model Context Protocol server that connects Claude to your WhatsApp. Ask Claude to catch you up on unread chats, search your message history, or send a reply.

Reading works in about a minute with no QR scan and no Node.js. Sending is optional and needs one extra step.

[macOS] [MCP 1.0] [MIT License]

Features

Search contacts by name or phone number. Read chat history with date filtering. List recent conversations with unread counts. Summarize everything you haven't read yet. Send replies and receive incoming messages once the bridge is connected.

Requirements

  • macOS with the WhatsApp desktop app installed and logged in
  • Node.js 18+, only if you want to send messages

You don't need to install Python. uvx fetches a suitable version on its own.

Installation

Install uv if you don't have it:

bash
curl -LsSf https://astral.sh/uv/install.sh | sh

That's the whole install. uvx downloads the server on first launch, so there's no virtualenv to create and no pip install step. Go to the next section to point Claude at it.

From source

bash
git clone https://github.com/kalki-kgp/whatsapp-mcp.gitcd whatsapp-mcpuv venv && uv pip install -e .

Connect to Claude Desktop

  1. Open config file:

    bash
    open ~/Library/Application\ Support/Claude/claude_desktop_config.json

    If it doesn't exist, create it.

  2. Find the full path to uvx:

    bash
    which uvx
  3. Add the WhatsApp MCP server, pasting that path as the command:

    json
    {  "mcpServers": {    "whatsapp": {      "command": "/Users/YOU/.local/bin/uvx",      "args": ["whatsapp-mcp-macos"]    }  }}

    Use the absolute path, not bare uvx. Claude Desktop starts with a minimal PATH that doesn't include ~/.local/bin, so a bare command name is the most common reason the server never appears.

  4. Restart Claude Desktop with Cmd+Q, then reopen. Closing the window is not enough.

  5. Click the MCP tools icon in the chat input and check that "whatsapp" is listed.

  6. Start chatting:

    • "Show my recent WhatsApp chats"
    • "Search messages for dinner plans"

Connect to Cursor

Add to .cursor/mcp.json in your project:

json
{  "mcpServers": {    "whatsapp": {      "command": "/Users/YOU/.local/bin/uvx",      "args": ["whatsapp-mcp-macos"]    }  }}

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)

  1. Start the WhatsApp bridge:

    bash
    cd bridge && npm install && npm start
  2. Ask Claude to check connection:

    • "Check WhatsApp status"
  3. If it shows a QR code, open the data URL in a browser and scan with your phone

  4. Once connected, you can send:

    • "Send a message to Mom saying I'll be late"
    • "Reply to John with 'sounds good'"

Tools

ToolDescriptionRequires Bridge
whatsapp_statusCheck connection, get QR if neededNo
whatsapp_search_contactsSearch contacts by name/phoneNo
whatsapp_list_chatsList recent conversationsNo
whatsapp_get_messagesGet messages from a chatNo
whatsapp_search_messagesSearch across all chatsNo
whatsapp_unreadGet unread message summaryNo
whatsapp_sendSend a messageYes
whatsapp_incomingGet real-time incoming messagesYes

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, so they work offline and need no bridge.

Send operations go through the bridge, which connects to WhatsApp Web using Baileys.

Development

bash
# Clonegit clone https://github.com/kalki-kgp/whatsapp-mcp.gitcd whatsapp-mcp
# Install in dev modepip install -e ".[dev]"
# Run serverpython -m whatsapp_mcp

Privacy

  • All data stays local. The server reads messages 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

來源:README.md,提交 c1f372d

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分