MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

WhatsApp MCP

by lharries

Read and send WhatsApp messages from your AI assistant

communication Python Intermediate Self-hostable No API key
⭐ 5.4k stars πŸ“… Updated: 1mo ago

Description

An MCP server that connects your personal WhatsApp account to Claude, Cursor, and other AI assistants. Uses the whatsmeow library (Go) to connect via WhatsApp's web multidevice API with QR code authentication. Messages are stored locally in SQLite with full user control over data. Supports searching contacts, reading messages (text, images, videos, documents, audio), sending messages to individuals and groups, and downloading media files. Includes automatic audio format conversion via FFmpeg. Architecture splits into a Go bridge for WhatsApp connectivity and a Python MCP server for the AI interface.

βœ… Best for

Power users who want AI assistants with full WhatsApp access on their local machine

⏭️ Skip if

You need a production-ready or enterprise WhatsApp integration

πŸ’‘ Use cases

  • Reading and searching WhatsApp message history from AI assistants
  • Sending WhatsApp messages via natural language commands
  • Extracting and analyzing conversation data for summaries or insights
  • Automating WhatsApp responses and notifications

πŸ‘ Pros

  • βœ“ Direct WhatsApp integration without third-party APIs or business accounts
  • βœ“ Local-only data storage β€” messages stay on your machine
  • βœ“ Supports all media types (text, images, video, audio, documents)
  • βœ“ Large community (5k+ stars) with active development

πŸ‘Ž Cons

  • βœ— Requires Go and Python runtimes plus FFmpeg for audio
  • βœ— QR code authentication needed on first setup (no API key)
  • βœ— Security warning: prompt injection could enable data exfiltration
  • βœ— No official npm/pip package β€” manual clone and setup required

πŸ”§ Exposed tools (12 tools)

ToolCategoryDescription
search_contactscontactsSearch WhatsApp contacts by name or number
send_filemediaSend a file to a contact or group
send_audio_messagemediaSend an audio message with format conversion
download_mediamediaDownload media from a WhatsApp message
list_messagesmessagingList messages from a chat with pagination
list_chatsmessagingList all WhatsApp chats
get_chatmessagingGet details of a specific chat
get_direct_chat_by_contactmessagingGet direct chat with a contact
get_contact_chatsmessagingGet all chats involving a contact
get_last_interactionmessagingGet the last interaction with a contact
get_message_contextmessagingGet messages surrounding a specific message
send_messagemessagingSend a text message to a contact or group

⚑ Installation

Prerequisites:

  • β€’ python v3.6+
  • β€’ go
  • β€’ uv
  • β€’ ffmpeg

Check Claude Code documentation to configure this MCP server.

πŸ’‘ Tips & tricks

Run the Go bridge first with 'go run main.go' and scan the QR code before starting the MCP server. FFmpeg is optional but needed for audio message support.

Quick info

Author
lharries
License
MIT
Runtime
Python 3.6+
Transport
β€”
Category
communication
Difficulty
Intermediate
Self-hostable
βœ…
Auth
β€”
Docker
β€”
Version
0.0.1
Updated
Feb 28, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • ❓ VS Code Copilot
  • ❓ Gemini CLI
  • ❓ Windsurf
  • ❓ Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows