Rubit MCP Mail logo

Rubit MCP Mail

Read-only IMAP access for browsing, searching, reading, and downloading email without marking messages as read.

Install Rubit MCP Mail

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "rubit-mcp-mail": {
      "command": "uvx",
      "args": [
        "rubit-mcp-mail"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

uvx rubit-mcp-mail

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

rubit-mcp-mail connects AI clients to mailboxes over provider-agnostic IMAP and exposes read-only email tools. It uses EXAMINE and BODY.PEEK so browsing or reading messages does not mark them as read, and it contains no send, move, delete, or flag operations. Use it when an agent needs to inspect messages, search folders, review attachments, or work across providers such as Gmail, Outlook.com, Fastmail, iCloud, Yahoo, and self-hosted IMAP servers. Installation is available through bundled Windows and Linux installers, pip, or source, with Claude Desktop and Claude Code registration supported by the setup flow.

Use cases

  • Browse recent messages without changing unread state
  • Search multiple IMAP folders by sender or subject
  • Read message bodies and inspect attachment metadata
  • Save selected email attachments for agent workflows
  • Restrict mailbox tools on an account-by-account basis

Key features

  • Provider-agnostic IMAP access
  • Read-only mailbox operations
  • Normalized folder roles
  • Server-side message search
  • Attachment metadata and downloads
  • Per-account tool permissions

Tools6

What Rubit MCP Mail lets your agent do. Expand a tool for its parameters.

Self-reported~93 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 62d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · rubit-mcp-mail (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed6Callable tools this server registers over MCP.

How Rubit MCP Mail works

What rubit-mcp-mail does

rubit-mcp-mail gives MCP-compatible AI clients read-only access to email accounts through IMAP. It is designed to work across providers without provider-specific mailbox code changes. Account definitions identify the email address, provider or IMAP host, and authentication method.

The server normalizes common folder roles such as inbox, sent, drafts, junk, trash, and archive. Agents can use those roles instead of relying on provider-specific names, while raw folder names remain available when needed.

Read-only behavior is enforced at the mailbox access layer. Folders are opened for examination rather than modification, and message bodies are fetched without setting the seen flag. The implementation has no operations for sending, moving, deleting, or flagging messages.

How it works

The MCP process connects configured accounts to their IMAP services and exposes account-scoped tools. list_accounts reports configured accounts and authentication status. list_folders returns folder information, normalized roles, and unread counts.

Message browsing uses list_messages, which returns a paginated, newest-first view of a selected folder. search_messages delegates filtering to the mail server and supports message text, sender, subject, date ranges, and unread status. read_message retrieves headers, text content, and attachment metadata. get_attachment saves a selected attachment in the configured download directory.

Accounts can be restricted with per-account disabled_tools. A denied call returns an error string to the model, allowing permissions to be controlled without removing the account entirely.

Setup and configuration

Prebuilt installers are available for Windows and Linux. They include Python and dependencies, run a setup wizard, authenticate the selected provider, and can register the server with Claude Desktop and Claude Code. The Linux installer must first be made executable. macOS users install through pip or from source instead.

Python 3.11 or newer is supported for pip installation. The package provides an install command and commands for authentication and diagnostics. Source installations use a virtual environment, followed by account configuration, authentication, and the doctor diagnostic command.

Generic IMAP accounts use a provider profile, email address, and host in config.toml. Common hosts include Gmail, Fastmail, iCloud, and Yahoo. Gmail and iCloud require app-specific passwords. Outlook.com requires a Microsoft Azure app registration and uses an OAuth device-code flow; a shared Thunderbird client ID is available as an alternative when an account cannot register its own application.

Credentials are stored through the system keyring, with a file-based fallback using restrictive file permissions. Claude Code can also be registered directly with claude mcp add, while Claude Desktop uses an MCP configuration entry.

Tools and capabilities

  • Inspect configured accounts and authentication status.
  • List folders with normalized roles and unread totals.
  • Browse messages in newest-first, paginated order.
  • Search server-side by text, sender, subject, dates, or unread state.
  • Read complete headers, text bodies, and attachment metadata.
  • Save an individual attachment to the download directory.
  • Disable selected tools for individual accounts.

Limitations and notes

The server is intentionally read-only: it cannot send mail or change message location, deletion state, or flags. Provider authentication requirements still apply, including app passwords for some services and Azure configuration for Outlook.com. Antivirus software may warn about the unsigned Windows PyInstaller executable; published installers include SHA-256 values for verification.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Rubit MCP Mail

rubit-mcp-mail is an MCP server that connects AI clients to email accounts through provider-agnostic IMAP. Its main tools list accounts and folders, browse and search messages, read headers and bodies, and save attachments. It is read-only by design, so reading mail does not mark messages as read or modify mailbox state.

Install it with the Windows or Linux bundled installer, with pip, or from source. The installers include dependencies and provide a setup wizard. With pip, use `pip install rubit-mcp-mail` followed by `rubit-mcp-mail install`; source users configure an environment and then run authentication and diagnostics.

It supports IMAP services including Gmail, Outlook.com, Fastmail, iCloud, Yahoo, and self-hosted servers. Generic accounts are configured with an IMAP host. Gmail and iCloud require app-specific passwords, while Outlook.com requires Azure app registration and Microsoft OAuth authentication.

No, reading mail does not mark messages as read. Folders are opened with IMAP examination mode and message bodies are fetched with a non-mutating operation. The server also has no tools for sending, moving, deleting, or flagging messages.

Yes, the setup wizard can register the server with Claude Desktop and Claude Code. Claude Code can also be configured with `claude mcp add`, while Claude Desktop requires an MCP JSON configuration entry. Claude Desktop should be restarted after registration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRubit MCP Mail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/rubit-mcp-mail?style=directory)](https://allmcps.com/mcp/rubit-mcp-mail)
HTML Embed
<a href="https://allmcps.com/mcp/rubit-mcp-mail"><img src="https://allmcps.com/api/badge/rubit-mcp-mail?style=directory" alt="Rubit MCP Mail on AllMCPs" /></a>