Skip to content
MCP server

WhatsApp Export

MCP server that lets AI assistants read and search a local WhatsApp chat export

Runs locally

WhatsApp Export is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.1.1
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add whatsapp-export-mcp -- npx -y whatsapp-export-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "whatsapp-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "whatsapp-export-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About WhatsApp Export

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.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

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_exportName suggests: reads
Reads the export and summarises participants, period, attachments and notes.
get_messagesName suggests: reads
Returns messages filtered by date range and/or sender, paged with offset and limit.
search_messagesName suggests: reads
Finds messages containing a word or phrase, ignoring case and accents.
list_attachmentsName 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.

What it does

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

Pricing

Open source

Free and MIT licensed

More servers for the same service

WhatsApp Export 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.

How AIPoweredBot checks servers