# mailoo [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/Bitfloo/mailoo.git  
**GitHub Stars:** 0  
**npm Downloads (last month):** 2176  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mailoo

## Description
Mailoo — IMAP/SMTP MCP server. Multi-account, per-folder profiles.

## Tools
Capabilities this server exposes over MCP:

- **list_accounts** — List all configured email accounts
- **list_mailboxes** — List folders with unread counts and special-use flags
- **list_emails** — Paginated email listing with date, sender, subject, and flag filters
- **get_email** — Read full email content with attachment metadata
- **get_emails** — Fetch full content of multiple emails in a single call (max 20)
- **get_email_status** — Get read/flag/label state of an email without fetching the body
- **search_emails** — Search by keyword; `since`/`before` (aliases `start_date`/`end_date`)
- **download_attachment** — Download an attachment (base64, or `savePath` to disk — not a read-only write)
- **export_email** — Export one message as its raw RFC 822 `.eml` source (base64, or `savePath` to disk); flags unchanged
- **find_email_folder** — Discover the real folder(s) an email resides in (resolves virtual folders)
- **extract_contacts** — Extract unique contacts from recent email headers
- **get_thread** — Reconstruct a conversation thread via References/In-Reply-To
- **list_templates** — List available email templates
- **get_email_stats** — Email analytics — volume, top senders, daily trends
- **check_health** — Connection health, latency, quota, and IMAP capabilities
- **get_email_security** — Read-only SPF/DKIM/DMARC and From/Reply-To/Return-Path domains
- **sieve_status** — Whether ManageSieve is reachable (default port 4190)
- **sieve_list_scripts** — List ManageSieve scripts
- **sieve_get_script** — Download a ManageSieve script
- **send_email** — Send a new email (plain text or HTML, CC/BCC, attachments)
- **reply_email** — Reply with proper threading (In-Reply-To, References)
- **forward_email** — Forward with original content quoted
- **save_draft** — Save a draft (RFC 2047 subjects; optional attachments)
- **send_draft** — Send an existing draft and remove from Drafts
- **apply_template** — Apply a template with variable substitution
- **schedule_email** — Schedule an email for future delivery
- **list_scheduled** — List scheduled emails by status
- **cancel_scheduled** — Cancel a pending scheduled email
- **sieve_put_script** — Create or replace a ManageSieve script (does not activate)
- **sieve_delete_script** — Delete a ManageSieve script
- **sieve_activate_script** — Activate a script (empty name deactivates all)
- **move_email** — Move email between folders
- **delete_email** — Move to Trash or permanently delete
- **mark_email** — Mark as read/unread, flag/unflag
- **bulk_action** — Batch operation on up to 100 emails
- **create_mailbox** — Create a new mailbox folder
- **rename_mailbox** — Rename an existing mailbox folder (not INBOX or a special-use folder)
- **delete_mailbox** — Permanently delete a mailbox and contents (not INBOX or a special-use folder)
- **list_labels** — Discover available labels (auto-detects provider strategy)
- **add_label** — Add a label to an email (ProtonMail folders, Gmail X-GM-LABELS, or IMAP keywords)
- **remove_label** — Remove a label from an email
- **create_label** — Create a new label
- **delete_label** — Delete a label (on Gmail, not INBOX or a special-use folder)
- **get_watcher_status** — Show IMAP IDLE connections, folders being monitored, and last-seen UIDs
- **list_presets** — List available AI triage presets with descriptions and suggested labels
- **get_hooks_config** — Show current hooks configuration — preset, rules, and custom instructions
- **configure_alerts** — Update alert/notification settings at runtime
- **check_notification_setup** — Diagnose desktop notification support and provide setup instructions
- **test_notification** — Send a test notification to verify OS permissions are configured
- **extract_calendar** — Extract ICS/iCalendar events from an email
- **analyze_email_for_scheduling** — Analyze an email to detect events and reminder-worthy content
- **add_to_calendar** — Add an email event to the local calendar (macOS/Linux)
- **create_reminder** — Create a reminder in macOS Reminders.app from an email
- **list_calendars** — List all available local calendars
- **list_events** — List local calendar events with optional title, date, and calendar filters
- **list_reminders** — List Reminders.app items with optional title and list filters
- **check_calendar_permissions** — Check whether the local calendar is accessible

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

```json
"mcpServers": {
  "mailoo": {
    "command": "npx",
    "args": ["-y","@bitfloo/mailoo"]
  }
}
```

## Documentation

## What mailoo does

mailoo gives an MCP client access to configured email accounts over IMAP and SMTP. It supports multiple accounts and can resolve messages across ordinary and virtual folders. Read operations cover mailbox discovery, paginated message lists, full message content, attachment metadata, message state, keyword searches, conversation reconstruction, contact extraction, statistics, and connection diagnostics.

The server also supports common email actions. Agents can create and send messages, reply with threading headers, forward messages with quoted content, save and send drafts, apply templates, and schedule or cancel future delivery. ManageSieve tools provide access to server-side filtering scripts when the mail provider exposes ManageSieve.

## How it works

Mailoo runs locally and communicates with an MCP client over standard input/output. The client starts the package with the `stdio` command, while the server connects onward to the IMAP, SMTP, and optional ManageSieve services configured for each account. A typical first interaction calls `list_accounts`, then uses the returned account name with tools such as `list_emails` and `get_email`.

Tool registration can be narrowed with `MCP_EMAIL_TOOLSET`, using `full`, `core`, or `minimal` profiles. Setting `MCP_EMAIL_READ_ONLY=true` removes write tools, background watchers, hooks, and schedulers at startup. Higher-risk operations also accept `dryRun: true` for validation and a preview without changing server state.

## Setup and configuration

Node.js 24 or newer is required. Add an account with the package command below, edit the generated configuration, and install the MCP client entry:

```bash
npx -y @bitfloo/mailoo@latest account add
npx -y @bitfloo/mailoo@latest config edit
npx -y @bitfloo/mailoo@latest install
```

Account setup requires the relevant email credentials and may require an app password from the provider. The guided installer supports Claude Desktop and Cursor. Agent builders can instead register a standard stdio entry:

```json
{
  "mcpServers": {
    "mailoo": {
      "command": "npx",
      "args": ["-y", "@bitfloo/mailoo@latest", "stdio"],
      "env": {
        "MCP_EMAIL_READ_ONLY": "true",
        "MCP_EMAIL_TOOLSET": "core"
      }
    }
  }
}
```

Configuration is stored under the platform configuration directory, with `config.toml` protected by restrictive file permissions. Change the read-only setting in the configuration or environment and restart the server before enabling writes.

## Tools and capabilities

The exposed tools include:

- Account and mailbox discovery with `list_accounts` and `list_mailboxes`, including unread counts and special-use flags.
- Filtered and paginated message retrieval through `list_emails`, `search_emails`, `get_email`, `get_emails`, and `get_email_status`.
- Conversation and message inspection with `get_thread`, `find_email_folder`, `extract_contacts`, `get_email_stats`, `get_email_security`, and `check_health`.
- File and source handling through `download_attachment` and `export_email`, returning base64 data or saving within the permitted working directory.
- Message composition with `send_email`, `reply_email`, `forward_email`, `save_draft`, `send_draft`, and `apply_template`.
- Future delivery management with `schedule_email`, `list_scheduled`, and `cancel_scheduled`.
- ManageSieve status, listing, retrieval, creation or replacement, and deletion through the `sieve_*` tools.

Email searches accept date boundaries using `since` and `before`, with `start_date` and `end_date` as aliases. Batch full-message retrieval is limited to 20 messages per call. Attachments and raw RFC 822 exports can be written to disk with `savePath`, subject to path and size controls.

## Limitations and notes

Mailoo sends requested mail content to the MCP client and its model provider. Optional classification and webhook features can send data to their configured services. Read-only mode is the safer initial configuration because the default writable setup exposes operations that can send messages or modify server-side data.

The server enforces per-account send rate limits, validates TLS and STARTTLS behavior, and restricts attachment or `.eml` writes to an approved working-directory boundary. ManageSieve requires an available service, normally on port 4190, and refuses plaintext authentication without STARTTLS. OAuth2 support for Gmail and Microsoft 365 is experimental.

_Full upstream README: https://allmcps.com/mcp/mailoo/readme_

