Open, search and sort your mbox files.

Mbox Viewer is a free, open source, AI-ready desktop app for macOS, Windows and Linux that opens, searches and sorts mbox files from Gmail Takeout, Thunderbird or Apple Mail. It indexes each file once, needs no account and keeps your mail on your computer. Your AI agent can search it too, on your own machine.

Version 0.5.1 is released under the MIT license. All releases and checksums

Mbox Viewer window with Gmail labels, tags and folders in the sidebar, the message list in the middle and an open message on the right
The sidebar lists Gmail labels, tags and folders. The message you select opens on the right.
Search for from:olivia mockups has:attachment returning one result with the matching words highlighted
Operators work like Gmail's, and the matching words are highlighted in the results.
Context menu on a message with the Tags submenu open, listing the tags Client Atlas and To review
Right-click a message to tag it or add it to a virtual folder.
Mbox Viewer in dark theme
The app follows the light or dark theme of your system.

Getting started

How it works

  1. Open the file

    Drop a .mbox file on the window or use the Open button.

  2. It gets indexed once

    A progress bar shows the first pass. Reopening the same file is instant.

  3. Search and sort

    Type a Gmail-style query, then tag messages or save results to folders.

Features

What it does

Mbox Viewer opens an mbox file read-only and lets you find and classify its messages without importing anything into a mail client.

Gmail, Thunderbird, Apple Mail

Open mbox archives

Open a .mbox or .mbx file with the Open button, drag and drop, or a double-click. Single .eml and .emlx files and whole folders of them open too, and the app imports them into an mbox copy first. Several mailboxes can be open at once.

  • Gmail Takeout exports keep their labels.
  • Thunderbird folders open once you add the .mbox extension to a copy.
  • For an Apple Mail export, copy the mbox file out of the exported folder and add the .mbox extension. Mail's own .emlx files open directly.
  • A folder of .eml or .emlx files becomes one mailbox, subfolders included.

Tags and virtual folders

Sort and classify

Give messages tags (a name and one of 16 colors) and put them in virtual folders.

  • Save every result of a search to a folder in one click.
  • Refine it by drag and drop or right-click.
  • Tags and folders are stored next to the index, not in the mbox, and survive reindexing.

Full-text search

Find any message

Search the whole archive at once, with the operators you already know from Gmail.

  • A plain word is searched in the subject, the sender, the To and Cc recipients, the body and the attachment names.
  • The Advanced search form writes the syntax for you. See the operators

AI-ready

Works with your AI agent

A local MCP server lets Claude Desktop, Claude Code or any MCP client search and read the mailboxes you choose. You decide which mailboxes it sees and whether it may tag and file messages, and every request is logged.

  • Export the Claude Desktop extension from Settings and install it with a double-click.
  • Read-only by default, with writes and attachment exports as separate switches.
  • The server runs on your computer and opens no network port. How it works

AI agents (MCP)

Works with your AI agent

Since version 0.4.0, Mbox Viewer includes a local MCP server. Claude Desktop, Claude Code, Cursor or any MCP client can search the mailboxes you choose with the same operators, read messages and threads and, only if you allow it, tag and file them. It is off by default, runs on your computer over stdio and opens no network port.

Set up Claude Desktop in three steps

  1. In Mbox Viewer, open Settings and go to the MCP server (AI agents) section. Enable the server, tick the mailboxes to share and click Export the Claude Desktop extension, or download the .mcpb bundle for your platform from the release page.
  2. Double-click the .mcpb file: Claude Desktop shows its install dialog. Click Install.
  3. Click Copy token in Mbox Viewer and paste the token into the form Claude Desktop shows. You do not edit any file.

Release bundles are named Mbox Viewer_<version>_macos.mcpb, Mbox Viewer_<version>_windows.mcpb and Mbox Viewer_<version>_linux.mcpb. Take the one that matches your installed version.

Alternative: the Claude Desktop configuration file

In Claude Desktop, open Settings › Desktop App › Extensions › Manage › Local MCP Server › Edit Config. Add mcpServers as a top-level key next to the keys already in the file (Copy for Claude Desktop fills in the path and token), then fully quit and reopen Claude.

{
  "mcpServers": {
    "mbox-viewer": {
      "command": "/Applications/Mbox Viewer.app/Contents/MacOS/mbox-viewer",
      "args": ["--mcp"],
      "env": { "MBOX_VIEWER_MCP_TOKEN": "<token>" }
    }
  }
}

Claude Code (Copy for Claude Code)

claude mcp add --scope user mbox-viewer -e MBOX_VIEWER_MCP_TOKEN=<token> -- '<path to mbox-viewer>' --mcp

Cursor reads the same JSON from ~/.cursor/mcp.json. The Cursor and other clients guide gives the configuration file locations and the Windows and Linux paths, and MCP problems lists the troubleshooting steps.

What the agent can do

Read on the mailboxes you share

  • search_messages
  • get_message
  • get_thread
  • list_mailboxes
  • list_labels
  • list_tags_and_folders
  • suggest_senders

Write only with Allow changes to tags and folders

  • create_tag
  • set_message_tags
  • create_folder
  • add_to_folder
  • remove_from_folder

Export only into the folder you choose

  • save_attachment

A search returns at most 50 results per page (20 by default), a message is cut at 20,000 characters and a thread returns at most 50 messages. The server never sends raw HTML or the content of attachments to the agent.

Security model

  • Explicit consent. The server is off by default, sees only the mailboxes you tick and stays read-only unless you allow changes. Turning it off takes effect on the agent's next call.
  • The token is a revocable key. It is not a password: it is stored in clear text in your client's configuration and only proves you copied it from the app. Regenerate it to cut off every client.
  • Every call is logged. mcp-audit.jsonl records each call without message content. Anything running under your account could edit it.
  • Mind prompt injection. An email can contain instructions aimed at the agent. Leave changes and export off unless you need them.
  • Your model provider sees what the agent reads. The server itself sends nothing over the Internet: you choose what to share and what to ask.
  • It is not a shield against malware. The consent settings prevent accidental over-exposure. A program already running as you can read your files anyway.

Privacy

Private by design

  • Local only

    The app needs no account, sends no telemetry, does not check for updates and makes no network connection of its own.

  • Remote images blocked

    Remote images stay blocked until you choose to show them, so tracking pixels do not load.

  • No scripts

    HTML emails are sanitized and shown in a sandboxed frame.

macOS, Windows and Linux

Install

Warning: these builds are not signed with an Apple Developer ID, a Windows certificate or a GPG key. macOS and Windows warn you the first time you open the app. On Linux, compare your download with SHA256SUMS.txt.

macOS

.dmg disk image, macOS 10.15 or later

  1. Open Mbox Viewer_<version>_universal.dmg and drag Mbox Viewer into Applications.
  2. Gatekeeper blocks the first launch. In Terminal, run:
    xattr -cr "/Applications/Mbox Viewer.app"
    This also fixes a message saying the app "is damaged". Alternatively, Control-click the app and choose Open (macOS 14 and earlier), or open System Settings › Privacy & Security and click Open Anyway (macOS 15 and later).

Windows

.exe installer, Windows 10 and 11 (x64)

  1. Run Mbox Viewer_<version>_x64-setup.exe. It installs for the current user and does not need administrator rights.
  2. SmartScreen shows "Windows protected your PC". Click:
    More info > Run anyway
  3. If the WebView2 runtime is missing (it is already present on Windows 11 and most Windows 10 installs), the installer downloads it, which needs an Internet connection.

Linux

.AppImage or .deb package, x86_64

  1. On Debian, Ubuntu 22.04 or later and their derivatives, install the package. apt adds WebKitGTK 4.1 if it is missing:
    sudo apt install "./Mbox Viewer_<version>_amd64.deb"
  2. On any other distribution, make the AppImage executable, then open it:
    chmod +x "Mbox Viewer_<version>_amd64.AppImage"
    If it asks for libfuse.so.2, install the FUSE 2 package (libfuse2, or libfuse2t64 on Ubuntu 24.04). Install on Linux gives the details.

FAQ

Questions

Is Mbox Viewer free?

Yes. It is free and open source under the MIT license. There is no paid version, no account and no advertising. The source code is on GitHub.

Does it modify my mbox file?

No. The mbox file is opened read-only and is never modified. The search index, tags and virtual folders are stored separately. If the file changes, the app offers to reindex it.

Where is my data stored?

Your data stays on your computer. Mbox Viewer stores it in ~/Library/Application Support/com.mboxviewer.viewer/ on macOS, in %LOCALAPPDATA%\com.mboxviewer.viewer\ on Windows and in ~/.local/share/com.mboxviewer.viewer/ on Linux. Tags and folders are in the annotations subfolder. Back it up if you care about them, because indexes can be rebuilt but annotations cannot.

Does it run on Linux?

Yes. Since version 0.5.1, each release offers an AppImage and a .deb package for x86_64 Linux. The .deb package needs WebKitGTK 4.1, which apt installs on Ubuntu 22.04, Debian 12 or later. Make the AppImage executable with chmod +x before the first launch. The Linux files are not signed, so compare them with the SHA256SUMS.txt file of the release. Install on Linux

Does it send anything over the Internet?

No. The app has no account, no telemetry and no update check, and makes no network connection of its own. Remote images in emails are blocked unless you choose to show them, and links open in your browser only when you click them.

How do I open my Gmail archive?

Export your mail with Google Takeout, then open the .mbox file it contains. Go to takeout.google.com, select only Mail and export. Extract the downloaded archive, which contains one .mbox file (for example All mail Including Spam and Trash.mbox), and open that file with Mbox Viewer. Gmail labels are kept and searchable with label:, is: and in:.

Can it handle large files?

Yes. Mbox Viewer indexes a multi-GB Gmail Takeout export once and shows a progress bar that you can cancel. The index is kept, so reopening an already indexed mbox is instant.

Which languages does it support?

Mbox Viewer is available in English and French. The app follows the system language by default. When you pick English or Français in Settings, the whole interface switches at once, and so do the menus and dialogs.

Is there a command line?

Yes. Since version 0.5.1, the app executable lists your indexed mailboxes with --list-mailboxes, searches one with --search and prints a message with --message or a thread with --thread. Add --json for scripts. The command line is read-only and reads the indexes the app built, so open and index each mailbox in the app first. Command line reference

Can an AI agent use it?

Yes. Since version 0.4.0, Mbox Viewer includes a local MCP server for Claude Desktop, Claude Code, Cursor or any MCP client. It is off by default. Turn it on in the MCP server (AI agents) section of Settings and tick the mailboxes the agent may see. For Claude Desktop, click Export the Claude Desktop extension (or download the .mcpb bundle for your platform from the release page), double-click the file and paste the access token that Copy token gives you. Other clients use a configuration that you copy from the same section. The agent can search and read those mailboxes, and tag or file messages only if you allow changes. Every call is logged. What the agent reads goes to its model provider, so share only what you are willing to send. How to set it up

Documentation

Guides and answers

The documentation explains each task step by step, and every page ends with answers to the questions people ask most often. Browse the documentation

  • Install on macOS

    Install the .dmg, then clear the Gatekeeper warning on the first launch.

  • Install on Linux

    Install the .deb package, or make the AppImage executable and add FUSE 2 if it is missing.

  • Operators reference

    Every search operator is listed with an example, and the page explains how OR, the minus sign and parentheses combine them.

  • Tags

    Create a tag with one of 16 colors and apply it from the context menu.

  • Set up Claude Desktop

    Export the .mcpb extension, install it with a double-click and paste the token.

  • The app does not open

    Clear the Gatekeeper or SmartScreen warning that blocks the first launch.