pnizer/wweb-mcp 是从 https://github.com/pnizer/wweb-mcp. 导入的 MCP 服务器候选
概览
pnizer/wweb-mcp 是从 https://github.com/pnizer/wweb-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个Node.js应用,通过模型上下文协议(MCP)将WhatsApp网页与AI模型连接起来。该项目为与WhatsApp的程序化交互提供了标准化界面,支持通过AI驱动的工作流程实现自动消息发送、联系人管理和群聊功能。
概述
WhatsApp Web MCP 通过以下方式实现了 WhatsApp Web 与 AI 模型之间的无缝集成:
- 通过模型上下文协议(MCP)创建标准化接口
- 为 MCP 服务器提供 WhatsApp 功能的访问
- 通过SSE或命令模式提供灵活的部署选项
- 支持直接的 WhatsApp 客户端集成和基于 API 的连接
免责声明
重要提示:本工具仅供测试用途,不应在生产环境中使用。
WhatsApp 网页项目免责声明:
本项目与WhatsApp及其任何子公司或关联公司均未关联、授权、认可或以任何官方方式关联。官方WhatsApp网站可见于 whatsapp.com。“WhatsApp”及相关名称、标志、标志和图片均为其各自所有者的注册商标。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
WhatsApp Web MCP
A Node.js application that connects WhatsApp Web with AI models through the Model Context Protocol (MCP). This project provides a standardized interface for programmatic interaction with WhatsApp, enabling automated messaging, contact management, and group chat functionality through AI-driven workflows.
Overview
WhatsApp Web MCP provides a seamless integration between WhatsApp Web and AI models by:
- Creating a standardized interface through the Model Context Protocol (MCP)
- Offering MCP Server access to WhatsApp functionality
- Providing flexible deployment options through SSE or Command modes
- Supporting both direct WhatsApp client integration and API-based connectivity
Disclaimer
IMPORTANT: This tool is for testing purposes only and should not be used in production environments.
Disclaimer from WhatsApp Web project:
This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at whatsapp.com. “WhatsApp” as well as related names, marks, emblems and images are registered trademarks of their respective owners. Also it is not guaranteed you will not be blocked by using this method. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn’t be considered totally safe.
Learning Resources
To learn more about using WhatsApp Web MCP in real-world scenarios, check out these articles:
- Integrating WhatsApp with AI: Guide to Setting Up a WhatsApp MCP server
- Integrating OpenAI Agents Python SDK with Anthropic’s MCP
Installation
-
Clone the repository:
git clone https://github.com/pnizer/wweb-mcp.git cd wweb-mcp -
Install globally or use with npx:
# Install globally npm install -g . # Or use with npx directly npx . -
Build with Docker:
docker build . -t wweb-mcp:latest
Configuration
Command Line Options
| Option | Alias | Description | Choices | Default |
|---|---|---|---|---|
--mode |
-m |
Run mode | mcp, whatsapp-api |
mcp |
--mcp-mode |
-c |
MCP connection mode | standalone, api |
standalone |
--transport |
-t |
MCP transport mode | sse, command |
sse |
--sse-port |
-p |
Port for SSE server | - | 3002 |
--api-port |
- | Port for WhatsApp API server | - | 3001 |
--auth-data-path |
-a |
Path to store authentication data | - | .wwebjs_auth |
安装
npx wweb-mcp -m mcp -s local -c api -t command --api-base-url http://localhost:3001/api --api-key 1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef配置
{
"mcpServers": {
"whatsapp": {
"command": "npx",
"args": [
"wweb-mcp",
"-m", "mcp",
"-s", "local",
"-c", "api",
"-t", "command",
"--api-base-url", "http://localhost:3001/api",
"--api-key", "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
]
}
}
}