whatsapp-mcp
by verygoodplugins·★ 49·综合分 45
WhatsApp MCP 服务器使 Claude 能够读取和发送 WhatsApp 消息,支持完整的媒体功能。
概述
这个 MCP 服务器提供全面的 WhatsApp 集成,允许 Claude 搜索联系人、读取和发送消息(文本、图片、视频、文档和音频)、管理聊天记录和下载媒体。它包含两个组件:连接到 WhatsApp 的 Go 桥接器和将功能暴露给 Claude 的 Python MCP 服务器。所有消息都存储在本地 SQLite 中,仅在明确请求时才会与 Claude 共享。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要将 WhatsApp 功能与 Claude 集成以实现自动化消息、归档或 AI 驱动的通信工作流时,选择此服务器。
什么时候不要选它
如果您需要超越本地存储的端到端加密保证,或者寻找具有多用户支持的企业级解决方案,请避免使用此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具search_contactsquery: stringSearch contacts by name or phone number
get_contactidentifier: stringResolve a WhatsApp contact name from a phone number, LID, or full JID
list_messageschat_jid?: string, limit?: number, before_date?: string, after_date?: string, sort_by?: 'newest' | 'oldest'Get messages with filters, date ranges, and sorting
send_messagerecipient: string, message: stringSend a text message to a contact or group
send_filerecipient: string, file_path: string, caption?: stringSend a media file (image, video, document)
send_audio_messagerecipient: string, file_path: stringSend a voice message (automatically converts to Opus .ogg format)
download_mediamessage_id: string, chat_jid: stringDownload media from a received message
list_chatslimit?: numberList all chats with metadata
get_chatjid: stringGet specific chat metadata by JID
get_direct_chat_by_contactphone: stringFind a direct message chat with a contact
get_message_contextmessage_id: string, chat_jid: string, before?: number, after?: numberGet messages around a specific message for context
get_last_interactionphone: stringGet the last message exchanged with a contact
可对比工具
安装
安装步骤
- **克隆仓库**
``bash git clone https://github.com/verygoodplugins/whatsapp-mcp.git cd whatsapp-mcp ``
- **启动 WhatsApp 桥接器**
``bash cd whatsapp-bridge go run . `` 用手机上的 WhatsApp 扫描二维码进行身份验证。
- **配置 Claude Desktop**
在 ~/Library/Application Support/Claude/claude_desktop_config.json 中添加: ``json { "mcpServers": { "whatsapp": { "command": "uv", "args": [ "--directory", "/path/to/whatsapp-mcp/whatsapp-mcp-server", "run", "main.py" ] } } } ``
FAQ
- 我可以读取和发送哪些类型的消息?
- 您可以读取和发送文本消息、图片、视频、文档和音频消息。服务器还支持自动转换为 Opus .ogg 格式的语音消息。
- 消息如何存储和保障安全?
- 所有消息都存储在本地 SQLite 数据库中。桥接器使用令牌身份验证进行 API 调用,并将媒体文件访问限制在指定目录。消息仅在您明确允许时才会发送给 Claude。
whatsapp-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。