All How-To Guides

2 Ways to Use WhatsApp with Claude Code

How to use WhatsApp with Claude Code?

2 MCP servers featured

Last reviewed June 2026

WhatsApp is one of the most popular messaging platforms worldwide. MCP servers can connect Claude to your WhatsApp for searching messages, accessing contacts, and sending content. Here are the options for WhatsApp integration.

Recommended MCP Servers

WhatsApp MCP

lharries/whatsapp-mcp

>200

Search personal WhatsApp messages, contacts, and send messages to individuals or groups.

Key Features

  • Search messages
  • Access contacts
  • Send messages
  • Group messaging

Installation

npx whatsapp-mcp

The WhatsApp MCP provides access to your personal WhatsApp messages and contacts. Search through conversation history, send messages, and automate common WhatsApp tasks.

Best for: Personal WhatsApp automation View on GitHub

Fetch MCP + WhatsApp Business API

anthropics/mcp-server-fetch

>2k

Use the official WhatsApp Business API for business messaging.

Key Features

  • Official Business API
  • Template messages
  • Customer messaging
  • Verified sender

Installation

npx @modelcontextprotocol/server-fetch

For business use cases, the WhatsApp Business API provides official, verified messaging. Use Fetch MCP to call the API for customer notifications, support messages, and business communication.

Best for: Business messaging View on GitHub

Quick Comparison

MCPStarsBest ForProsCons
WhatsApp MCP>200Personal useFull message accessUnofficial
Business API>2kBusinessOfficial, verifiedBusiness setup required

Getting Started

To use WhatsApp with Claude Code:

  1. For personal WhatsApp, install WhatsApp MCP:

    npx whatsapp-mcp
    
  2. For business use, set up the WhatsApp Business API and use Fetch MCP.

Example prompt: "Search my WhatsApp messages for conversations about the meeting next week."

Related Guides

Frequently Asked Questions

Can Claude access my WhatsApp messages?

Yes. By installing an MCP server like lharries/whatsapp-mcp, Claude can search and read your personal WhatsApp messages, look up contacts, and send messages to people or groups. The server connects through the WhatsApp Web multidevice API and stores messages locally in a SQLite database, so Claude only sees data when you ask it to.

What is the best MCP server to connect WhatsApp to Claude?

The most popular option is lharries/whatsapp-mcp, which links your personal WhatsApp account to Claude for reading, searching, and sending messages. For business messaging, use a server that calls Meta's official WhatsApp Business Cloud API to send template messages and handle customer conversations from a verified number.

How do I set up the WhatsApp MCP server with Claude?

Clone the lharries/whatsapp-mcp repository, run the Go WhatsApp bridge with 'go run main.go', and scan the QR code to link your account. Then add the Python MCP server to your Claude config using uv to point at the server's main.py. It is not an npx package, so manual setup is required.

Is connecting WhatsApp to Claude safe, and what are the limits?

For personal use, popular MCP servers run locally and store messages in a SQLite database on your machine, so data only reaches Claude when a tool is called. These tools are unofficial and use the WhatsApp Web API, which risks account flags if misused. For compliant large-scale messaging, use the official WhatsApp Business Cloud API instead.

Keep Exploring

WebMCP Developers