# WhatsApp Export

> WhatsApp Export is an open-source MCP server for communication. MCP server that lets AI assistants read and search a local WhatsApp chat export. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/samrodrigues/whatsapp-export-mcp
- **MCP Registry name:** io.github.samrodrigues/whatsapp-export-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-12-02

## About

Point it at the zip or txt file WhatsApp produces when you export a chat, and an AI assistant can answer questions about the conversation: what was agreed, when a topic came up, who sent what. Parsing runs on your own machine and the server itself makes no network requests.

The server exposes six tools: an export summary, date and sender filtered reading, word search that ignores case and accents, attachment listing, per-person statistics, and saving a single attachment to a folder. Each message line carries its index number so the assistant can cite exact messages. iPhone and Android exports are both supported, including archives re-zipped on Windows.

It suits people who want to query a long personal or group chat from Claude, Cursor or another MCP client. Voice messages are listed but not transcribed, and anything the tools return is passed to the assistant's model provider under that assistant's terms.

## Features

- **Local file parsing:** Reads WhatsApp .zip or .txt exports from disk for iPhone and Android without sending data to a remote service.
- **Filtered message reading:** Returns messages by date range or sender, paged with offset and limit.
- **Accent-insensitive search:** Finds words or phrases ignoring case and accents, optionally limited to one sender.
- **Attachment listing:** Lists photos, voice messages, videos, documents, stickers and contacts, filterable by kind.
- **Per-person statistics:** Reports message and attachment counts per participant, monthly volume and busiest days.
- **Attachment export:** Copies a single file from the export into a chosen folder, the only tool that writes to disk.

## Good for

- Finding when a plan or decision was discussed in a long chat
- Summarising a group conversation month by month with message references
- Counting who sent the most messages or voice notes
- Saving photos or documents from a chat to a folder
- Checking which attachments referenced in a chat are missing from the export

## Install

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

```sh
claude mcp add whatsapp-export-mcp -- npx -y whatsapp-export-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": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

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

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

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

```json
{
  "mcpServers": {
    "whatsapp-export-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-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 whatsapp-export-mcp -- npx -y whatsapp-export-mcp
```

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

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

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

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

Or run: gemini mcp add -s user whatsapp-export-mcp npx -- -y whatsapp-export-mcp

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

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

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

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

```json
{
  "mcpServers": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-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": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-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": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-mcp"
      ]
    }
  }
}
```

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

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

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

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

```json
{
  "mcpServers": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-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": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 6 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `open_export` (name suggests: reads): Reads the export and summarises participants, period, attachments and notes.
- `get_messages` (name suggests: reads): Returns messages filtered by date range and/or sender, paged with offset and limit.
- `search_messages` (name suggests: reads): Finds messages containing a word or phrase, ignoring case and accents.
- `list_attachments` (name suggests: reads): Lists attachments with sender, time and availability, filterable by kind.
- `chat_stats`: Reports per-person counts, messages per month and busiest days.
- `save_attachment`: Copies one attachment from the export into a folder.

## FAQ

### Can the assistant hear voice messages?

No. It sees that a voice message was sent, by whom and when, but not its content. The .opus files can be saved and transcribed with a separate speech-to-text tool.

### Does WhatsApp Export work with group chats?

Yes. System notices such as members being added are marked as notices rather than messages from a person.

### How large an export can WhatsApp Export handle?

The archive is read entry by entry and only chat text is held in memory. Each entry is capped at 512 MiB.

### What Node.js version is required?

Node.js 18.17 or newer. It is started with npx, so no global install is needed.

### Is WhatsApp Export free?

Yes. WhatsApp Export is open source, so you can use and self-host it for free.

### How do I add WhatsApp Export to Claude Code?

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

### What are the best alternatives to WhatsApp Export?

The closest alternatives to WhatsApp Export are whatsapp-mcp, WhatsApp MCP server (wacli), whatsapp-mcp, Wa MCP and WhatsApp Chat Reader (Unofficial).

## 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

- [whatsapp-mcp](https://ai-powered.com/mcp/whatsapp-mcp-5): whatsapp-mcp is an open-source MCP server for communication.
- [WhatsApp MCP server (wacli)](https://ai-powered.com/mcp/whatsapp-mcp-server-wacli): WhatsApp MCP server (wacli) is an open-source MCP server for communication.
- [whatsapp-mcp](https://ai-powered.com/mcp/whatsapp-mcp-4): whatsapp-mcp is an open-source MCP server for communication.
- [Wa MCP](https://ai-powered.com/mcp/wa-mcp-2): Wa MCP is an open-source MCP server for communication.
- [WhatsApp Chat Reader (Unofficial)](https://ai-powered.com/mcp/whatsapp-chat-reader-unofficial): WhatsApp Chat Reader (Unofficial) 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.
- [mcp](https://ai-powered.com/mcp/mcp-5): mcp is an open-source MCP server for communication.
- [uni-msg WhatsApp](https://ai-powered.com/mcp/uni-msg-whatsapp): uni-msg WhatsApp is an MCP server for communication.

---
Source: https://ai-powered.com/mcp/whatsapp-export
