whatsapp-chatgpt-mcp
WhatsApp → ChatGPT(通过 MCP)
将 WhatsApp 连接到 ChatGPT:每个客户/机构都会变成 ChatGPT 中的一个项目,支持每日报告(通过定时任务)以及针对对话内容的自由提问。零成本——全部开源/自托管。
WhatsApp ←QR code→ Evolution API ←→ servidor MCP ←→ ChatGPT (Modo de desenvolvedor)
↓
Postgres (sessão + mensagens)结构
文件 | 说明 |
| 一条命令在 VPS 上完成全部安装(Postgres + Ebolition + MCP + HTTPS) |
| 需要填写的变量(密码、实例号码、屏蔽列表、域名) |
| ChatGP 访问的连接器(Node,4 个工具:列出对话、查找联系人、某个对话的消息、最近的消息) |
| 备用方案:如果没有 VPS,就部署到 Render free + 外部免费 Postgres |
Related MCP server: WhatsApp Cloud API MCP Server
部署指南
1. 基础设施(~15 分钟,在装有 Docker 的 Ubuntu VPS 上)
git clone https://github.com/rafaelacoelhob/whatsapp-chatgpt-mcp.git
cd whatsapp-chatgpt-mcp
cp .env.example .env
nano .env # preencher senhas e domínio (instruções no próprio arquivo)
docker compose up -d要求:一个指向 VPS IP 的域名/子域名(A 记录)——Caddy 会自动签发 HTTPS 证书。
2. 连接 WhatsApp(2 分钟,仅需一次)
访问 Ebolition 面板:
http://<servidor>:8080/manager(登录 =EVOLUTION_API_KEY)使用
EVOLUTION_INSTANCE中定义的名称创建实例(集成:Baileys)在手机上:WhatsApp → 设置 → 已连接的设备 → 连接设备 → 扫描二维码
请先用你自己的号码测试;之后再用正式号码操作一遍(修改
EVOLUTION_INSTANCE或另建一个实例)。
3. 接入 ChatGPT(3 分钟)
ChatGPT → 设置 → 插件 → 开发者模式 → 创建连接器
URL:
https://<dominio-do-mcp>/mcp/<MCP_PATH_SECRET>在聊天中测试:“列出我最近的 WhatsApp 对话” 和 “总结我今天收到的消息”
4. 按机构创建项目(每个 2 分钟)
为每个机构在 ChatGPT 中创建一个项目,附上这些说明(可按需调整):
Você acompanha as conversas da AGÊNCIA X no meu WhatsApp (use as
ferramentas do conector WhatsApp).
Contatos conhecidos da agência:
- Fulana — +55 11 9XXXX-XXXX
- Grupo "Agência X"
Contatos novos: se uma conversa de número desconhecido claramente for
desta agência, inclua no relatório na seção "🆕 Contato novo — confirmar".
Só trate como contato fixo depois que eu confirmar.
Relatório do dia — quando eu pedir, busque as mensagens de hoje e
organize em: 📌 Decisões / ⏳ Pendências / 📅 Prazos / ❗ Precisa de
resposta / 🆕 Contatos novos.
Responda sempre em português, direto. Se a informação não estiver nas
conversas, diga que não está — não invente.5. 每日自动报告
ChatGPT → 定时任务 → 新建任务:“每天 18:00,从 WhatsApp 获取当天 [机构/联系人] 的消息,并生成当日报告,格式为:决定 / 待办 / 期限 / 需要回复 / 新联系人。”(Business 版:最多 15 个活跃任务;超过时,则使用一个覆盖所有机构的单一任务。)
禁止号码列表
.env 中的 BLOCKED_NUMBERS(含 DDI 国际区号,用逗号分隔)。这是一个服务器端的技术过滤:无论要求什么,这些号码的对话都绝不会被交给 ChatGPT。修改了 .env → 重新执行 docker compose up -d 即可生效。
维护(可能发生的情况)
WhatsApp 会话断开(很少见):在 Evolution 面板中重新扫描二维码(步骤 2)。
服务器重启了:容器会自动恢复(
restart: always);会话会保留(保存在 Postgres 中)。彻底断开:在手机上,已连接的设备 → 结束会话;
docker compose down;在 ChatGPT 中删除连接器。
注意事项
Evolution 使用类似 WhatsApp Web 的桥接方式——并非 Meta 官方。仅读取的话,封号风险较低,但并非为零;号码持有者应当知情。
对话会经由你的服务器和 OpenAI(ChatGPT 的默认机制)传输。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with your personal WhatsApp account, allowing them to search messages and contacts, retrieve chat history, and send messages to individuals or groups. Uses WhatsApp Web API with local data storage for privacy and security.13ISC
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to send WhatsApp messages, templates, and retrieve media through the WhatsApp Cloud API. Provides webhook handling and seamless integration with Meta's WhatsApp Business platform.23
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with your personal WhatsApp account to search messages, list chats, and send messages. It stores all authentication and message data locally using SQLite for privacy and direct multi-device API connection.131ISC
- AlicenseBqualityBmaintenanceBridges the WhatsApp HTTP API with AI assistants to enable full control over messaging, chat management, and interactive workflows through 63 specialized tools. It allows users to automate WhatsApp tasks and receive real-time AI feedback directly on their mobile devices.63215MIT
Related MCP Connectors
Send and read WhatsApp messages on your Leporis account from AI coding agents, via your own API key.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Voice and chat for AI agents — Discord, Teams, Meet, Slack, Zoom, Telegram, WhatsApp, NC Talk, SIP
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rafaelacoelhob/whatsapp-chatgpt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server