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 连接状态,需要时获取二维码。在可选的 WhatsApp Web 桥接运行后,发送消息并接收新消息。
适用场景
当你希望助手帮你梳理未读 WhatsApp 聊天、搜索消息记录或起草并发送回复,且使用已安装并登录 WhatsApp 桌面版的 macOS 时适用。
运行要求
macOS,且已安装并登录 WhatsApp 桌面版。服务器通过 uvx 从 PyPI 包 whatsapp-mcp-macos 在本地运行,需要先安装 uv。发送消息还需 Node.js 18+ 并在本地启动单独的 WhatsApp 桥接,用手机扫描二维码连接 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 分