
WhatsApp MCP 服务器 - 将 Claude 连接到 WhatsApp 以阅读和发送消息
概览
一个适用于 WhatsApp 的模型上下文协议(MCP)服务器,使 Claude 能够读取和发送 WhatsApp 消息。 最初由Luke Harries创建。由Very Good Plugins维护。 产品演示用Remotion生成,使用模拟数据。 - : 搜索并阅读个人WhatsApp消息(文本、图片、视频、文档、音频)- : 按姓名或电话号码(格式sender_display“Name(电话)”)搜索联系人 - : 向个人或群发送短信 - 发送和下载图片、视频、文档和语音消息 - : 将来电语音/视频通话截获到本地SQLite表(实时、1:1和群组) - : 转发到外部服务 - : 所有本地存储在SQLite的消息 - 仅在您允许时发送给Claude - Go 1.25+ - Python 3.11+ - uv 包管理器 - Claude Desktop 或 Cursor - FFmpeg(可选,用于语音消息转换) 首次启动时,桥接器会打印并存储本地的 REST API 令牌,地址为 whatsapp-bridge/store/.bridge-token。
概述(AI 翻译)
一个适用于 WhatsApp 的模型上下文协议(MCP)服务器,使 Claude 能够读取和发送 WhatsApp 消息。
最初由Luke Harries创建。由Very Good Plugins维护。
观看WhatsApp主控演示视频
产品演示用Remotion生成,使用模拟数据。
特色
- 消息管理:搜索和阅读个人WhatsApp消息(文本、图片、视频、文档、音频)
- 联系人搜索:按
sender_display格式(“姓名(电话)”)按姓名或电话号码搜索联系人 - 发送消息:向个人或团体发送短信
- 已读回执:明确标记所选消息为跨连接设备已读
- 媒体支持:发送和下载图片、视频、文档和语音消息
- 通话历史:将来电语音/视频通话捕获到本地SQLite表(实时、1:1和组)
- Webhook集成:将收到的消息转发到外部服务
- 本地存储:所有本地存储在 SQLite 中的消息——只有在你允许时才发送到 Claude
安装
先决条件
- Go 1.26+
- Python 3.11+
- UV包管理器
- Claude桌面或光标
- FFmpeg(可选,用于语音消息转换)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
WhatsApp MCP Server
A Model Context Protocol (MCP) server for WhatsApp, enabling Claude to read and send WhatsApp messages.
Originally created by Luke Harries. Maintained by Very Good Plugins.
Watch the WhatsApp MCP demo video
Product demo generated with Remotion using simulated data.
Features
- Message Management: Search and read personal WhatsApp messages (text, images, videos, documents, audio)
- Contact Search: Search contacts by name or phone number with
sender_displayformat (“Name (phone)”) - Send Messages: Send text messages to individuals or groups
- Read Receipts: Explicitly mark selected messages as read across linked devices
- Media Support: Send and download images, videos, documents, and voice messages
- Call History: Capture incoming voice/video calls into a local SQLite table (live, 1:1 and group)
- Webhook Integration: Forward incoming messages to external services
- Local Storage: All messages stored locally in SQLite - only sent to Claude when you allow it
Installation
Prerequisites
- Go 1.26+
- Python 3.11+
- uv package manager
- Claude Desktop or Cursor
- FFmpeg (optional, for voice message conversion)
Intel macOS: patched cryptography releases no longer provide Intel Mac
wheels, so installation may compile this dependency from source. Install the
Xcode Command Line Tools (xcode-select --install) and, with Homebrew,
brew install rust openssl@3 pkg-config. Then install the Python dependencies:
cd whatsapp-mcp-server
OPENSSL_DIR="$(brew --prefix openssl@3)" uv sync
Use a Rust toolchain supported by the installed cryptography release; see its
source-build instructions.
Keep the patched dependency rather than restoring the old vulnerable version pin.
Quick Start
-
Clone the repository
git clone https://github.com/verygoodplugins/whatsapp-mcp.git cd whatsapp-mcp -
Start the WhatsApp bridge
cd whatsapp-bridge go run .On first start, the bridge prints and stores a local REST API token at
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"whatsapp": {
"command": "uv",
"args": [
"--directory",
"/path/to/whatsapp-mcp/whatsapp-mcp-server",
"run",
"main.py"
]
}
}
}