ICloud Mail logo

ICloud Mail

Read, search, organize, draft, and send iCloud Mail through MCP using IMAP and SMTP.

Install ICloud 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": {
    "icloud-mail": {
      "command": "uvx",
      "args": [
        "icloud-mail-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio icloud-mail -- uvx icloud-mail-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx icloud-mail-mcp

Process exited before answering initialize.

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

The iCloud Mail MCP server connects MCP clients to an iCloud mailbox through IMAP for reading and organizing mail and SMTP for sending. It provides folder inspection, single-folder and mailbox-wide searches, message and thread reading, attachment export, drafts, flags, mailbox management, and rule-based filing. Read operations are non-destructive, while moves, organization, and sending are explicit write actions. Use it when an agent needs controlled access to an iCloud account without routing credentials or mail through a third party.

Use cases

  • Search every iCloud Mail folder for a message or thread
  • Read messages and save their attachments locally
  • Draft replies in Drafts for human review
  • Organize messages with simulated or applied rules
  • Send approved email through SMTP

Key features

  • IMAP mailbox search and message reading
  • SMTP email sending
  • Draft creation and thread reconstruction
  • Attachment export with sanitized filenames
  • Mailbox and flag management
  • Dry-run filing and message moves

Tools15

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

Self-reported~231 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.

14/14 checks healthy over the last 68d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · icloud-mail-mcp (PyPI)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed15Callable tools this server registers over MCP.

How ICloud Mail works

What iCloud Mail MCP server does

The iCloud Mail MCP server exposes an iCloud mailbox to an MCP-compatible client. It can inspect folders, report message and unread counts, search by content and metadata, read decoded messages, reconstruct conversations, and save attachments to local disk. Searches can target one folder or all folders, which is useful when replies or archived messages are outside the inbox.

Mailbox changes are separated from read operations. The server can create, rename, and delete empty folders; set read, unread, flagged, and answered states; move messages; and apply filing rules. It can also save a message to Drafts or send it directly. There is no message-deletion tool, and deleting a mailbox is refused while it contains mail.

How it works

The iCloud Mail MCP server uses IMAP for mailbox access and SMTP for outgoing messages. It runs on the local machine, so credentials and mail are not sent to a separate service. MIME handling covers decoded text, optional HTML, attachment metadata, and attachment extraction. Saved attachment files are returned as paths, and incoming filenames are sanitized before writing.

Read tools use read-only mailbox selection and non-marking message fetches. Move operations account for iCloud’s lack of native MOVE and UIDPLUS support by using copy-and-expunge behavior, with a guard against purging unrelated messages already marked for deletion. Searches support accented text and include a client-side fallback when the server cannot perform the requested search.

The package also provides the icloud://folders and icloud://unread resources, plus prompts for inbox triage, drafting replies, and identifying unanswered follow-ups. Standalone example scripts can produce daily digests, watch for mail from a sender, find waiting replies, or apply filing rules without an MCP client.

Setup and configuration

Run the setup wizard with Python 3.11 or newer and uv. It requests the iCloud address and an app-specific password, tests the connection, writes a .env file, and prints client configuration. Apple requires two-factor authentication and an app-specific password for IMAP access; the normal iCloud account password is rejected.

The server can be installed from PyPI with uvx, or run from a cloned source checkout after uv sync. A standard stdio configuration starts it with uv run, the project directory, and the icloud_mcp module. Restart the MCP client after changing its configuration. Credentials may be stored in the environment or a gitignored .env file, and password values are omitted from settings representations.

Tools and capabilities

Read capabilities include:

  • Listing folders and checking folder counts
  • Searching one folder or every folder by text, addresses, subject, dates, flags, and size
  • Reading message bodies, HTML, and attachment metadata
  • Rebuilding threads and exporting attachments

Write capabilities include:

  • Saving drafts without sending them
  • Sending messages directly, without an undo step
  • Setting reversible flags
  • Creating, renaming, and deleting empty mailboxes
  • Simulating or applying moves and rule-based organization

Limitations and notes

Sending is immediate and does not pass through Drafts, so clients should obtain approval for the exact content first. Move and organization tools can simulate their changes unless dry_run=false; applying them changes the mailbox. The server intentionally has no tool for deleting individual messages.

Attachment contents are written to disk rather than passed through the model. Email content is treated as data, not as instructions for the client. iCloud folder names use modified UTF-7, and malformed or misleading character sets receive fallback handling during message decoding.

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 ICloud Mail

iCloud Mail is an MCP server that connects MCP clients to an iCloud mailbox through IMAP and SMTP. Its main tools search and read messages, inspect folders, rebuild threads, save attachments, create drafts, organize or move mail, and send email. Read operations are non-destructive, while sending and mailbox changes are explicit.

Install it with `uvx --from icloud-mail-mcp icloud-mcp-setup`, or clone the repository and run `uv sync`. The setup wizard asks for your iCloud address and app-specific password, tests the connection, writes `.env`, and prints client configuration. Python 3.11 or newer and `uv` are required.

It requires an iCloud account with two-factor authentication and an Apple app-specific password. Apple rejects the main account password over IMAP. The setup wizard can store the address and password in `.env`; credentials can also be supplied through the environment.

Yes, it works with Cursor through the standard MCP configuration. Add the server command and arguments to Cursor’s MCP settings file, then restart Cursor because MCP servers load when the client starts.

No, it has no tool for deleting individual messages. It can delete a mailbox only when that folder is empty, and it refuses the operation while messages remain. Moving messages and organizing mail are separate operations that can be simulated before being applied.

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 PreviewICloud Mail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/icloud-mail?style=directory)](https://allmcps.com/mcp/icloud-mail)
HTML Embed
<a href="https://allmcps.com/mcp/icloud-mail"><img src="https://allmcps.com/api/badge/icloud-mail?style=directory" alt="ICloud Mail on AllMCPs" /></a>