Mbox Viewer documentation

This documentation explains how to install Mbox Viewer on macOS, Windows and Linux and how to open an mbox file. It also shows how to search the archive, sort messages with tags and virtual folders, and connect an AI agent through the local MCP server. Every page ends with answers to the questions people ask most often.

Getting started

These pages explain how to install the app on macOS, Windows or Linux, export your mail to an mbox file and open it. They also cover .eml files and folders.

  • Install Mbox Viewer on macOS

    Install Mbox Viewer on macOS 10.15 or later from the .dmg, then clear the Gatekeeper warning on first launch with one Terminal command.

  • Install Mbox Viewer on Windows

    Install Mbox Viewer on Windows 10 or 11 (x64) without administrator rights, and get past the SmartScreen warning that the unsigned installer triggers.

  • Install Mbox Viewer on Linux

    Install Mbox Viewer on Linux (x86_64) from the AppImage or the .deb package, make the AppImage executable and find where the app keeps its data.

  • Open your first mbox

    Open an .mbox file in Mbox Viewer, follow the one-time indexing, and learn what the sidebar shows when the mailbox is ready to search.

  • Export your mail from Gmail with Takeout

    Export your Gmail mail as an mbox file with Google Takeout, then open it in Mbox Viewer with its labels, read status, stars and threads.

  • Export from Thunderbird

    Find the mbox file of a Thunderbird folder in your profile, copy it, add the .mbox extension and open the copy in Mbox Viewer.

  • Export from Apple Mail

    Export a mailbox from Apple Mail and open its mbox file in Mbox Viewer, or open the .emlx files that Mail keeps for each message directly.

  • Open .eml files and folders

    Open a single .eml or Apple Mail .emlx file, or a whole folder of them. Mbox Viewer imports the messages into an mbox copy and indexes it.

  • Where your data lives

    Mbox Viewer writes its indexes, imports, tags and logs to two folders. This page gives their paths on macOS, Windows and Linux and says what to back up.

These pages describe the query language, the operators and the advanced search form.

  • Search basics

    Type words in the search bar to find messages in an mbox file. Every word must match, and accents and case are ignored.

  • Operators reference

    This page lists every search operator of Mbox Viewer with an example and explains how OR, the minus sign and parentheses combine them.

  • Dates, sizes and attachments

    Mbox Viewer filters messages by date, age, size and attachment. This page gives the formats and units that each of these operators accepts.

  • Gmail labels and system labels

    Search the Gmail labels kept in a Google Takeout mbox with label:, is: and in:, and filter by label from the Labels section of the sidebar.

  • Save a search as a folder

    Save the results of a search to a virtual folder with Save to folder. One search adds up to 500,000 messages, and the folder keeps its query.

Sort and classify

These pages show how to tag messages and file them in virtual folders.

  • Tag messages

    Tag messages in Mbox Viewer with a name and one of 16 colors, then find them with tag:"Name". The mbox file is never modified.

  • Virtual folders

    Save search results to a virtual folder in Mbox Viewer, add or remove messages by hand and find them with folder:"Name". Folders hold up to 500,000 results.

  • Select several messages and drag and drop

    Select several messages in Mbox Viewer with Cmd or Ctrl click, Shift click or Cmd+A, then tag them or drag them onto a folder or a tag in the sidebar.

  • Keyboard shortcuts

    This page lists every keyboard shortcut of Mbox Viewer on macOS and Windows for search, the list, selection, tags, menus and dialogs.

Reading

These pages cover the reading pane, attachments, threads and links.

  • The reading pane

    The reading pane shows the message you select. You can hide it, move between messages with j and k, block remote images and view the original source.

  • Open and save attachments

    Open or save the attachments of a message in Mbox Viewer, find messages by file name, and learn which file types the app refuses to open.

  • Conversations and threads

    Mbox Viewer groups messages into conversations from their headers and lists them under the body. The thread: operator finds every message of one thread.

  • Copy addresses and open links

    Copy an email address from a message or the list in Mbox Viewer, and learn which links open in your browser and which ones the app ignores.

AI agents (MCP)

These pages explain how to let Claude Desktop, Claude Code, Cursor or another MCP client search the mailboxes you choose.

  • What the MCP server does

    Mbox Viewer includes a local MCP server that lets Claude Desktop, Claude Code, Cursor or another AI agent search the mailboxes you choose.

  • Set up Claude Desktop

    Connect Claude Desktop to Mbox Viewer in three steps. Export the .mcpb extension from Settings, install it with a double-click and paste the token.

  • Set up Claude Code

    Connect Claude Code to Mbox Viewer with one claude mcp add command copied from Settings, then check the connection with /mcp.

  • Set up Cursor and other clients

    Connect Cursor or any stdio MCP client to Mbox Viewer with the executable path, the --mcp argument and the MBOX_VIEWER_MCP_TOKEN variable.

  • Permissions and the security model

    The MCP server shares only the mailboxes you tick, stays read-only unless you allow changes and saves attachments only into one folder you choose.

  • Tools reference

    The Mbox Viewer MCP server provides 13 tools. Seven read, five change tags and folders, and one saves attachments. This page gives their parameters and limits.

  • Audit log

    Mbox Viewer records every MCP request in mcp-audit.jsonl with the tool, mailbox, arguments and result. The log never holds message content.

Settings

These pages list every setting and explain how to change the language.

  • Language and preferences

    Switch Mbox Viewer between English and French, show or hide the reading pane and decide whether remote images load in HTML emails.

  • Settings reference

    The Settings dialog has three sections. This page gives the label and default value of each option, the fields of settings.json and where they are stored.

Troubleshooting

These pages help when the app does not start, indexing fails or an agent cannot connect.

  • The app does not open

    Mbox Viewer is unsigned, so macOS and Windows block its first launch, and the Linux AppImage needs FUSE. This page gives the fix for each symptom.

  • Indexing problems

    Fix a mailbox stuck in Queued, marked File changed, File not found or Index needs rebuilding, or indexed with fewer messages than expected.

  • Search finds nothing

    Find out why a search in Mbox Viewer returns no result or too few, and how to fix the query, the dates, the word forms or the selected mailbox.

  • MCP problems

    Fix an AI agent that cannot reach Mbox Viewer. Each error code of the MCP server is listed with its cause, its fix and the log to read.

  • Report a problem

    Report a bug in Mbox Viewer on GitHub with the version, the system, the steps and the right log lines. Ask questions in GitHub Discussions.

About

These pages describe privacy, known limits, the changelog and the command line. They also explain how to build the app from source.

  • Privacy and offline use

    Mbox Viewer works offline and keeps your mail on your computer. See what it stores, what it blocks and what an AI agent can read.

  • Limits and known issues

    Mbox Viewer 0.5.0 parses the first 64 MiB of a message and adds up to 500,000 results to a folder. This page lists every limit and the known issues.

  • Changelog and releases

    Find the changelog and the installers of Mbox Viewer, see what each version changed, and install a new version without losing your tags.

  • Build from source

    Build Mbox Viewer from its source code with Node 22, Rust and Tauri 2, run the tests, and produce the macOS, Windows and Linux installers.

  • Command line

    List and search the mailboxes indexed by Mbox Viewer from a terminal, read a message or a thread and print JSON. This page documents every flag and exit code.