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上で1コマンドで完全インストール(Postgres + Evolution + MCP + HTTPS) |
| 記入する変数(パスワード、インスタンス番号、ブロックリスト、ドメイン) |
| ChatGPTがアクセスするコネクタ(Node、4つのツール: 会話一覧、連絡先検索、会話のメッセージ取得、最近のメッセージ取得) |
| プランB: 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分、1回だけ)
Evolutionのパネルにアクセス:
http://<servidor>:8080/manager(ログイン =EVOLUTION_API_KEY)EVOLUTION_INSTANCEで定義した名前でインスタンスを作成(連携方式: Baileys)スマホで: WhatsApp → 設定 → 連携デバイス → デバイスを連携 → QRコードをスキャン
まずは自分の番号でテストしてください。その後、正式な番号で繰り返します(
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時に、WhatsAppで今日の[代理店/連絡先]のメッセージを取得し、決定事項 / 未処理事項 / 期限 / 返信が必要なもの / 新しい連絡先 の形式で当日のレポートを生成してください。」(Business: アクティブなタスクは最大15件。それを超える場合は、全代理店をカバーする1つのタスクを使用します。)
禁止番号リスト
BLOCKED_NUMBERS を .env に設定します(国番号(DDI)付き、カンマ区切り)。これはサーバー側の技術的なフィルターです。これらの番号の会話は、何を依頼してもChatGPTに渡されることはありません。.envを変更したら → docker compose up -d を再度実行して適用します。
メンテナンス(起こりうること)
WhatsAppのセッションが切れた(まれ): EvolutionのパネルでQRコードを再スキャンします(手順2)。
サーバーが再起動した: コンテナは自動で復帰します(
restart: always)。セッションは維持されます(Postgresに保存されます)。完全に切断する場合: スマホで「連携デバイス」→ セッションを終了;
docker compose down; ChatGPTでコネクタを削除。
注意事項
EvolutionはWhatsApp Webスタイルのブリッジを使用します — Metaの公式のものではありません。読み取り用途のBANリスクは低いですが、ゼロではありません。番号の所有者はその点を認識しておく必要があります。
会話はサーバーと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