# WireCat WhatsApp MCP server

> Allows AI agents to read, search, and send WhatsApp messages through a local CLI or MCP server.

- Repository: https://github.com/WireCatLabs/whatsapp-cli
- Page: https://hostedmcp.org/servers/wirecatlabs/whatsapp-cli
- Transport: stdio
- Stars: 3
- License: Apache-2.0
- Latest version: 0.43.0

## Install

### Claude Code

```sh
claude mcp add whatsapp-cli -- npx -y @wirecat/whatsapp-cli
```

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

```json
{
  "mcpServers": {
    "whatsapp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@wirecat/whatsapp-cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "whatsapp-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@wirecat/whatsapp-cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"whatsapp-cli","type":"stdio","command":"npx","args":["-y","@wirecat/whatsapp-cli"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "whatsapp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@wirecat/whatsapp-cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add whatsapp-cli -- npx -y @wirecat/whatsapp-cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.whatsapp-cli]
command = "npx"
args = ["-y", "@wirecat/whatsapp-cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user whatsapp-cli npx -- -y @wirecat/whatsapp-cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "whatsapp-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@wirecat/whatsapp-cli"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `WA_PROFILE` | no | no |  |

## FAQ

### How do I connect my WhatsApp account to the server?

You link your account as a device by scanning a QR code in WhatsApp via Settings > Linked devices, or by using a pairing code.

### Can I use this with Claude Desktop or Cursor?

Yes, apps without a terminal can connect to the server using the 'wa personal mcp serve' command.

### Does it support sending messages?

Yes, it supports sending markdown, replies, files, photos, videos, voice notes, polls, and more.
