whatsapp-mcp — плагин для Claude Code: что делает и как установить
Интегрирует Claude Code с WhatsApp для чтения переписок, отправки файлов и ведения базы предпочтений собеседников в Notion.
/plugin marketplace add anthropics/claude-plugins-community
/plugin install whatsapp-mcp@claude-communityЧто делает whatsapp-mcp
Плагин подключает Claude Code к аккаунту WhatsApp через внешний мост. Агент умеет искать сообщения по ключевым словам или датам, читать диалоги, отправлять текст, медиафайлы и голосовые заметки. Отдельный блок сохраняет историю и стиль общения контактов в базу данных Notion, чтобы адаптировать тон и длину ответов при повторных обращениях. Для лидов создаются документы Markdown с выгрузкой на Google Drive и привязкой к Google Calendar.
Архитектура состоит из двух сервисов. Приложение на Go использует библиотеку whatsmeow, сохраняет сообщения в локальную базу SQLite и поднимает REST API на порту 8080. Поверх него работает сервер FastMCP на Python, передающий команды в Claude Code по транспорту stdio.
Для запуска моста понадобятся Go 1.21+, Python с пакетным менеджером uv и репозиторий lharries/whatsapp-mcp. Без авторизации по QR-коду в WhatsApp Web мост не подключится к аккаунту, а для сборки аудиосообщений потребуется системный FFmpeg.
Какие задачи решает
- искать старые диалоги и сообщения по номеру или дате
- отправлять файлы, картинки и голосовые сообщения прямо из терминала
- вести профили собеседников и сохранять историю контактов в Notion
- формировать отчёты по лидам в Markdown с выгрузкой на Google Drive
Примеры запросов агенту
- Найди последние входящие сообщения в WhatsApp от контакта Alex
- Отправь файл proposal.pdf клиенту с кратким сопроводительным текстом
- Проверь профиль контакта в памяти и составь текст повторного обращения
Как установить whatsapp-mcp
Через маркетплейс плагинов
/plugin marketplace add anthropics/claude-plugins-community/plugin install whatsapp-mcp@claude-communityПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о whatsapp-mcp
Как установить whatsapp-mcp в Claude Code?
Выполните команду /plugin marketplace add anthropics/claude-plugins-community, а затем установите пакет с помощью /plugin install whatsapp-mcp@claude-community.
Что делает плагин whatsapp-mcp?
Он связывает Claude Code с WhatsApp для поиска по чатам, отправки файлов и сохранения истории общения в Notion.
Что нужно настроить перед началом работы?
Требуются Go 1.21+ и Python с утилитой uv. Нужно склонировать репозиторий lharries/whatsapp-mcp, скомпилировать whatsapp-bridge, отсканировать QR-код через мобильное приложение WhatsApp и задать переменную WHATSAPP_MCP_PATH.
Исходный текст
whatsapp-mcp · MIT
# WhatsApp MCP Plugin Connect Claude to WhatsApp — search messages, read conversations, send texts and media, and manage business outreach. **Includes a conversation memory system that learns from every interaction.** ## What It Does This plugin gives Claude full access to your WhatsApp account through an MCP bridge: - **Search & Read** — Find messages, contacts, and conversations. Search by name, date, keyword, or phone number. - **Send Messages** — Send text, images, files, and voice messages to any contact or group. - **Business Outreach** — Compose and send professional follow-ups, lead outreach, and client communications with templates and best practices. - **Conversation Memory** — Claude remembers every contact's preferences, communication style, and conversation history across sessions — and gets better with every interaction. ## Install (marketplace first) This plugin ships in the **[MSApps-Mobile/claude-plugins](https://github.com/MSApps-Mobile/claude-plugins)** marketplace. **Claude Code (CLI):** ```bash /plugin marketplace add MSApps-Mobile/claude-plugins /plugin install whatsapp-mcp@msapps-plugins ``` **Cowork:** Settings → Plugins → Marketplaces → Add → `MSApps-Mobile/claude-plugins` → search `whatsapp-mcp` → Install. > If this plugin is useful, please [⭐ star the marketplace](https://github.com/MSApps-Mobile/claude-plugins/stargazers) — it helps other developers find it. Then set up the WhatsApp MCP **bridge** (upstream dependency) in Setup below. ## Conversation Memory — How Claude Learns Unlike a typical chatbot that starts fresh every session, this plugin includes a **persistent memory system** that makes Claude smarter over time. ### How It Works Every time Claude has a WhatsApp conversation, it follows a learn-adapt-improve loop: 1. **Before messaging someone** — Claude checks its memory (a private Notion database) for that contact's profile: what language they prefer, what tone works best, what topics they respond to, and what to avoid. 2. **During the conversation** — Claude adapts its messages based on the stored profile. If someone prefers short, direct messages in Hebrew — that's what they get. If another contact responds well to emojis and humor — Claude matches that energy. 3. **After the conversation** — Claude analyzes the interaction and updates the contact's profile: - Did they respond quickly or slowly? - What language and tone did they use? - Did they engage enthusiastically or give short replies? - What topics got the best reaction? - What fell flat? 4. **Next session** — Claude reads the updated profile and starts even better than last time. ### What Gets Stored (Per Contact) | Field | Example | |-------|---------| | Preferred Language | Hebrew, English, or Mixed | | Preferred Tone | Casual, Professional, Warm, Direct, or Playful | | Relationship | Family, Friend, Client, Lead, Colleague | | Responds Well To | Emojis, Short messages, Humor, Questions | | Avoid | Long messages, Formal tone, Links in first message | | Conversation Log | Running history of all interactions | | Key Learnings | "Prefers voice messages over text", "Always responds after 6pm" | | Success Score | 0-10 rating of how well conversations go | ### Learning Curve - **1st interaction** — Baseline: record language, initial tone, context - **2-3 interactions** — Patterns emerge: response speed, preferred message length, emoji usage - **5+ interactions** — Deep understanding: what motivates them, communication style, best approach - **Ongoing** — Continuous refinement as behavior changes over time ### Lead-Specific Memory For business leads, the memory system goes further: 1. After each WhatsApp conversation with a lead, Claude generates a **Conversation History Document** (structured Markdown with full conversation, notes, and next steps) 2. Uploads it to **Google Drive** for permanent storage 3. Links the document to the lead's **Google Calendar event** (where leads are tracked as CRM entries) This means every lead has a complete, searchable record of all WhatsApp interactions — automatically maintained. ### Privacy All memory data is stored in your private Notion workspace. Nothing is shared externally or sent to any third party. Contact profiles are only used to improve conversation quality within your own Claude sessions. ## Prerequisites Before installing this plugin, you need to set up the WhatsApp MCP bridge on your machine: 1. **Go** (1.21+) — `brew install go` 2. **Python + UV** — `brew install uv` 3. **FFmpeg** (optional, for voice messages) — `brew install ffmpeg` ## Setup ### 1. Clone the WhatsApp MCP bridge (upstream dependency) Credit: [`lharries/whatsapp-mcp`](https://github.com/lharries/whatsapp-mcp) — the bridge this plugin talks to. Do this **after** the marketplace install above. ```bash git clone https://github.com/lharries/whatsapp-mcp.git ~/whatsapp-mcp ``` ### 2. Build and run the Go bridge ```bash cd ~/whatsapp-mcp/whatsapp-bridge go build -o whatsapp-bridge ./whatsapp-bridge ``` On first run, scan the QR code with WhatsApp (Settings → Linked Devices → Link a Device). ### 3. Set the environment variable ```bash export WHATSAPP_MCP_PATH="$HOME/whatsapp-mcp" ``` Add this to your `~/.zshrc` or `~/.bashrc` to persist it. ### 4. Confirm the marketplace plugin is installed If you skipped [Install (marketplace first)](#install-marketplace-first): ```bash /plugin marketplace add MSApps-Mobile/claude-plugins /plugin install whatsapp-mcp@msapps-plugins ``` ## Skills | Skill | Description | |-------|-------------| | `whatsapp-messages` | Search and read WhatsApp messages, contacts, and chat history | | `whatsapp-send` | Send text messages, files, images, and voice messages | | `whatsapp-outreach` | Business outreach — follow-ups, lead messages, client check-ins | | `conversation-memory` | Persistent memory that learns from every conversation and improves over time | ## Supported Languages Works in any language. Includes Hebrew and English templates for business outreach. The conversation memory system automatically detects and adapts to each contact's preferred language. ## Architecture The plugin connects to WhatsApp through a two-component bridge: - **Go Bridge** (`whatsapp-bridge`) — Connects to WhatsApp Web via the whatsmeow library, stores messages in SQLite, exposes a REST API on port 8080. - **Python MCP Server** (`whatsapp-mcp-server`) — FastMCP server that wraps the bridge API and provides tools to Claude via stdio transport. - **Conversation Memory** — Private Notion database that stores contact profiles and learnings, queried before each conversation and updated after. ## Credits Based on [whatsapp-mcp](https://github.com/lharries/whatsapp-mcp) by Luke Harries. ## License MIT
© MSApps-Mobile · MIT · MSApps-Mobile/claude-plugins