# WhatsApp MCP Server

> Search, read, and send WhatsApp messages through MCP.

- **URL**: https://followmcp.com/en/servers/whatsapp-mcp-ts
- **Category**: Other
- **Origin**: Community
- **Stars**: 76
- **FMRS Score**: 37/100 (Grade D)
- **Source**: https://github.com/jlucaso1/whatsapp-mcp-ts
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 23.10.0+
- **Auth**: API key / credential required

## Overview
A WhatsApp MCP server built with TypeScript and Baileys. It connects a personal WhatsApp account and lets compatible AI clients use tools to search contacts, inspect chats and message history, and send text messages to individuals or groups. It connects through the WhatsApp Web multi-device API; chats and messages are stored in a local SQLite database, and authentication details are stored locally. The README says data is sent to the connected AI agent only when it actively calls the provided tools.

## Best for
- Users who want to search and inspect personal WhatsApp chats through an MCP client.
- Users who need to send text messages to WhatsApp individuals or groups from a compatible client.

## Not for
- Users who need to search group names or find groups as contacts.
- Users who do not want to link a personal WhatsApp account to an AI client or store authentication details and chat data locally.
- Users who need message types or capabilities not described in the README.

## Required permissions
- Needs to connect a personal WhatsApp account through the WhatsApp Web multi-device API; linking requires scanning a QR code with the phone.
- Stores WhatsApp authentication details locally in `./auth_info/` and chat and message data in `./data/whatsapp.db`.
- The MCP client can call tools to read contacts, chats, and messages; `send_message` can send messages when invoked.
- The README says data is sent to the connected AI agent only when it actively calls a tool.

## Risks
- Local authentication details, messages, and chat data are sensitive; the README advises protecting the `auth_info/` and `data/` directories.
- Tools can read personal chat content, and `send_message` can send messages from the account to individuals or groups.
- The README says first startup may generate a QR code link using quickchart.io and attempt to open it in the default browser.
- The data-handling description is the project's own statement and does not independently verify all server or client network behavior.

## Client config (JSON)
```json
{"mcpServers":{"whatsapp":{"command":"node","args":["{{PATH_TO_REPO}}/src/main.ts"],"timeout":15,"disabled":false}}}
```

## Tools (6)
- `search_contacts`: Search contacts by name or part of a phone number; groups are not included.
- `list_messages`: Retrieve paginated message history for a specific chat.
- `list_chats`: List chats sorted by activity or name, with filtering and pagination, optionally including last-message details.
- `get_chat`: Get detailed information about a specific chat.
- `get_message_context`: Retrieve messages immediately before and after a specified message ID.
- `send_message`: Send a text message to a recipient JID, either an individual or a group.
