# WhatsApp MCP server (wacli)

> WhatsApp MCP server (wacli) is an open-source MCP server for communication. MCP server that lets AI agents read and reply to your WhatsApp chats via a linked device. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, Windows, Self-hosted
- **Repository:** https://github.com/zanellig/wacli-mcp
- **MCP Registry name:** io.github.zanellig/wacli-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-27

## About

Connects an AI agent such as Claude Code or Codex to a WhatsApp account that has been paired through the open-source wacli client. The agent can list chats, search messages and contacts, download photos, voice notes and documents, and send text replies. Reads come from a local SQLite copy of the messages that is refreshed before reads, so the agent works against data kept on your own computer.

Voice notes and videos can optionally be transcribed on your machine with faster-whisper, so audio is not sent to an outside transcription service. The server communicates with the agent over stdio only and opens no network port. Sending can be left to the agent's normal tool approvals or switched to a server-side confirmation prompt that shows the real recipient and full text before anything goes out.

It suits people who want an agent to summarise chats, find a shared file or draft and send quick replies. The project labels itself alpha software, and wacli is not an official WhatsApp client, so an account linked this way can be restricted by WhatsApp.

## Features

- **Chat and message search:** Lists chats by recent activity and runs full-text search across messages, optionally within one chat or sender.
- **Attachment download:** Saves photos, voice notes, videos and documents to a local cache folder and returns their paths.
- **Optional local transcription:** Transcribes voice notes and videos on your computer using faster-whisper when the extra is installed.
- **Confirmed sending:** Can require an explicit yes through an MCP prompt that shows the recipient and full text before each send.
- **Read-only mode:** Hides the send tool and skips syncing so the server only reads from the local copy.
- **Local-only transport:** Talks to the agent over stdio and opens no network listener.

## Good for

- Ask an agent what a contact said in the last hour across chats
- Find a document or photo that someone sent in a WhatsApp conversation
- Transcribe voice notes from a chat into text an agent can read
- Draft and send a short reply to a recent message after confirming it
- Pull unread chats into a daily summary for review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add wacli-mcp -- npx -y wacli-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add wacli-mcp -- npx -y wacli-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.wacli-mcp]
command = "npx"
args = ["-y", "wacli-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user wacli-mcp npx -- -y wacli-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "wacli-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wacli-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 8 tools changes data. From the server's own tool labels and tool names; not verified by us.

- `whatsapp_status` (name suggests: reads): Checks that wacli is installed, paired, and has a readable store.
- `list_chats` (name suggests: reads): Lists chats by recent activity with JIDs and unread counts.
- `list_messages` (name suggests: reads): Returns a chat's messages, newest first, with optional transcripts.
- `search_messages` (name suggests: reads): Full-text search across messages, optionally within one chat or sender.
- `get_message_context` (name suggests: reads): Returns the messages around one message.
- `search_contacts` (name suggests: reads): Finds contacts by name or number and returns their JIDs.
- `get_media` (name suggests: reads): Downloads attachments from up to 20 messages and returns their paths.
- `send_text` (name suggests: changes): Sends a text message, optionally as a reply, to a chat JID or phone number.

## FAQ

### Does transcription send audio to an external service?

No. Transcription runs faster-whisper on the user's computer, so voice notes are not sent to a transcription service.

### Can the agent send messages without my approval?

By default the agent and its client decide when to send, like any other tool. A server confirmation mode can be enabled so that each send requires an explicit yes in a prompt.

### What do I need before installing?

wacli 0.26 or later paired with your WhatsApp account, plus uv, pipx with Python 3.11 or later, or Node.js 18 or later.

### Which clients can use WhatsApp MCP server (wacli)?

Any MCP client that can run a stdio server. The setup guide covers Claude Code and Codex CLI specifically.

### Is WhatsApp MCP server (wacli) free?

Yes. WhatsApp MCP server (wacli) is open source, so you can use and self-host it for free.

### How do I add WhatsApp MCP server (wacli) to Claude Code?

Run this command in your terminal: claude mcp add wacli-mcp -- npx -y wacli-mcp

### What are the best alternatives to WhatsApp MCP server (wacli)?

The closest alternatives to WhatsApp MCP server (wacli) are WACrew · WhatsApp MCP server, Whatsapp MCP, WhatsApp Connect, WhatsApp MCP and WhatsApp MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [WACrew · WhatsApp MCP server](https://ai-powered.com/mcp/wacrew-whatsapp-mcp-server): WACrew · WhatsApp MCP server is an open-source MCP server for communication.
- [Whatsapp MCP](https://ai-powered.com/mcp/whatsapp-mcp): Whatsapp MCP is an open-source MCP server for communication.
- [WhatsApp Connect](https://ai-powered.com/mcp/whatsapp-connect): WhatsApp Connect is an open-source MCP server for communication.
- [WhatsApp MCP](https://ai-powered.com/mcp/whatsapp-mcp-2): WhatsApp MCP is an open-source MCP server for communication.
- [WhatsApp MCP](https://ai-powered.com/mcp/whatsapp-mcp-3): WhatsApp MCP is an MCP server for communication.
- [WhatsApp Web MCP Server](https://ai-powered.com/mcp/whatsapp-web-mcp-server): WhatsApp Web MCP Server is an open-source MCP server for communication.
- [askmywa for WhatsApp](https://ai-powered.com/mcp/askmywa-for-whatsapp): askmywa for WhatsApp is an open-source MCP server for communication.
- [RelayMCP](https://ai-powered.com/mcp/relaymcp): RelayMCP is an MCP server for communication.

---
Source: https://ai-powered.com/mcp/whatsapp-mcp-server-wacli
