Set up Claude Desktop
Claude Desktop connects to Mbox Viewer through an extension file that you export from the app. You install the file with a double-click and paste an access token. Claude can then search and read the mailboxes you shared, and no configuration file needs editing.
What do I need before I start?
- You need Mbox Viewer 0.4.1 or later. Version 0.4.0 added the MCP server, and version 0.4.1 added the extension export. On macOS the app must sit in the Applications folder (Install on macOS explains why).
- Claude Desktop must be installed on the same computer. On Linux, the extension works with a Claude Desktop build that runs on Linux, and Claude Code is the other option there.
- At least one mailbox must be open in Mbox Viewer and fully indexed. The server never indexes a file itself.
Step 1: turn on the MCP server
- Open Settings with the gear button in the top bar. You can also press
⌘,on macOS orCtrl+,on Windows and Linux. - In the MCP server (AI agents) section, tick Enable the MCP server. The app creates a random access token of 64 hexadecimal characters.
- Under Mailboxes the agent may see, tick each mailbox that Claude may search. Nothing is shared until you tick one.
- Leave Allow changes to tags and folders off unless you want Claude to tag and file messages.
Step 2: export and install the extension
- Under Connect a client, click Export the Claude Desktop extension and save the file.
Its default name is
Mbox Viewer.mcpb, and it goes to your Downloads folder. - Double-click the
.mcpbfile. Claude Desktop opens and shows its install dialog. - Click Install.
The file holds a copy of the Mbox Viewer executable, a manifest and an icon. It never contains the token.
Step 3: paste the access token
Claude Desktop asks for the access token after the installation. Go back to Mbox Viewer and click Copy token in the same section. Paste the token into the Claude Desktop form, save it and check that the extension is enabled.
Claude can now use the Mbox Viewer tools. Ask it to find the invoices you received in 2024, for instance, or to summarize a thread.
Can I download the extension instead of exporting it?
Yes. Each release on the releases page has one bundle per platform:
| System | Bundle |
|---|---|
| macOS | Mbox Viewer_<version>_macos.mcpb |
| Windows | Mbox Viewer_<version>_windows.mcpb |
| Linux | Mbox Viewer_<version>_linux.mcpb |
Take the one that matches the version of your installed app, then follow steps 2 and 3. The Linux
bundle holds the plain mbox-viewer executable, which needs the WebKitGTK 4.1 libraries on the
computer (libwebkit2gtk-4.1-0 on Debian and Ubuntu). The .deb package installs them. With the
AppImage only, install them or export the extension from the app, which then copies the AppImage
file into the bundle. That bundle weighs about as much as the AppImage, roughly 100 MB, and the
server mounts it with FUSE 2 each time Claude Desktop starts it. Without FUSE 2 the server cannot
start, so install the FUSE 2 library described in
Install on Linux before you export it.
How do I configure Claude Desktop by hand?
The configuration file is the alternative to the extension. Use one method only, because Claude shows two servers when both are set up.
- In Claude Desktop, open
Settings › Desktop App › Extensions › Manage › Local MCP Server › Edit Config. Claude
Desktop creates
claude_desktop_config.jsonif needed and shows it in Finder or Explorer. - In Mbox Viewer, open Other ways to connect and click Copy for Claude Desktop.
- Add the
mcpServerskey at the top level of the file and keep the keys already there. If the file is empty, paste the copied text as it is. - Save the file and quit Claude completely before you open it again. On macOS press
⌘Q. On Windows and Linux use File › Exit or the tray icon, because closing the window is not enough.
| System | Configuration file |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
A file that already holds preferences looks like this after the change:
{
"preferences": {
"menuBarEnabled": false
},
"mcpServers": {
"mbox-viewer": {
"command": "/Applications/Mbox Viewer.app/Contents/MacOS/mbox-viewer",
"args": ["--mcp"],
"env": { "MBOX_VIEWER_MCP_TOKEN": "<token>" }
}
}
}
On Windows the copied text already doubles the backslashes of the path, as JSON requires.
On Linux, command is /usr/bin/mbox-viewer for the .deb package. For the AppImage, it is the
path of the .AppImage file, and Copy for Claude Desktop writes that path even though the app
runs from a temporary mount point. Keep the AppImage at a fixed path, because moving or renaming it
breaks the configuration. The AppImage needs FUSE 2 at each server start. Without FUSE 2, add
"APPIMAGE_EXTRACT_AND_RUN": "1" to the env block next to the token, so that the server unpacks
itself into a temporary folder instead.
What can Claude do with my mailboxes?
Claude searches the shared mailboxes with the same operators as the app, reads messages and
threads, and lists labels, tags and folders. Changes to tags and virtual folders need
Allow changes to tags and folders to be on. Attachments are saved only into the
Export directory for attachments that you choose. The app records every request in
mcp-audit.jsonl in its logs folder, and that log never contains message content. Every tool appears in the
Tools reference, and each setting has its reason in
Permissions and the security model.
Frequently asked questions
Does Mbox Viewer need to be open for Claude to use it?
No. Claude Desktop starts its own copy of the server, which reads the indexes, tags and folders of the app whether Mbox Viewer is open or not. Open each mailbox in Mbox Viewer at least once so that it is indexed.
Where do I find the access token?
Click Copy token in the MCP server (AI agents) section of Settings. The section shows only the first 4 characters of the token, and the button copies the whole token to the clipboard.
Why is the Export the Claude Desktop extension button disabled?
The button stays disabled while the server is off or while the app runs from a temporary location. Tick Enable the MCP server. On macOS, move Mbox Viewer to Applications and open it from there before you export.
Do I need to export the extension again after updating Mbox Viewer?
Yes. Export and install the extension again after each update so that Claude Desktop and the app run the same version. The token stays the same.
Claude Desktop asks for the token again after an update. Is that normal?
Yes. Installing a new version of the extension can ask for its settings again. Click Copy token in Mbox Viewer and paste it, because the token only changes when you click Regenerate token….
The tools answer invalid_token. What happened?
The token was regenerated in Mbox Viewer, so the one stored in Claude Desktop no longer matches. Click Copy token and paste the new token into the extension settings in Claude Desktop.
Why does a mailbox I shared not appear in Claude?
The tools see a newly shared mailbox at once, but the resource list of Claude Desktop updates only after a restart. Quit Claude completely and open it again.
Can Claude delete or modify my emails?
No. The server opens the .mbox files read-only and has no tool that deletes a message. With Allow changes to tags and folders on, Claude can create tags and folders, tag messages and add messages to virtual folders or remove them.
Where are the Claude Desktop logs for the server?
On macOS the logs are in ~/Library/Logs/Claude/, and on Windows they are in %APPDATA%\Claude\logs\. The extension writes to a file whose name contains Mbox Viewer.
Does the Claude Desktop extension work on Linux?
Yes, with a Claude Desktop build that runs on Linux. Export the extension from the app, or download Mbox Viewer_<version>_linux.mcpb, whose server needs the WebKitGTK 4.1 libraries on the computer.
How do I stop Claude from reading my mail?
Untick the mailboxes or turn off Enable the MCP server in Settings. The change applies on the next request of the agent. The token is kept, so turning the server on again needs no change in Claude Desktop.