# rubit-mcp-mail [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/bgalmes/rubit-mcp-mail  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rubit-mcp-mail

## Description
Read-only MCP server for your mail — provider-agnostic IMAP that never marks a message as read.

## Tools
Capabilities this server exposes over MCP:

- **list_accounts** — Configured accounts and whether each is authenticated
- **list_folders** — Folders with normalized roles and unread counts
- **list_messages** — Browse a folder, newest first, paginated
- **search_messages** — Server-side search by text, sender, subject, date range, unread
- **read_message** — Full headers, body text, attachment metadata
- **get_attachment** — Save one attachment into the download directory

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "rubit-mcp-mail": {
    "command": "uvx",
    "args": ["rubit-mcp-mail"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/rubit-mcp-mail/readme_

