mcp-icloud
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_ICLOUD_APPLE_ID | No | Overrides the saved Apple ID. | from mcp-icloud login |
| MCP_ICLOUD_MAIL_USER | No | Your iCloud Mail address; the default From. | from mail-login; on web, your main iCloud address |
| MCP_ICLOUD_SESSION_DIR | No | Where the login is stored. All configuration is optional; set them in the MCP server's environment. | $XDG_CONFIG_HOME/mcp-icloud, else ~/.config/mcp-icloud |
| MCP_ICLOUD_MAIL_BACKEND | No | Mail backend: `web`, `imap`, or `auto` (IMAP if an app-specific password is set, else web). | auto |
| MCP_ICLOUD_SEND_ALLOWLIST | No | Allowed recipients: addresses and `@domain`, comma-separated. Default: no limit. | |
| MCP_ICLOUD_MAIL_APP_PASSWORD | No | App-specific password for IMAP/SMTP. | from mail-login |
| MCP_ICLOUD_MAIL_FROM_ALIASES | No | Extra From addresses, comma-separated. | |
| MCP_ICLOUD_MAIL_MAX_ATTACHMENT_MB | No | Attachment size limit. | 20 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Manages iCloud Hide My Email addresses (hme_*: generating a candidate does not save it; there is no delete) and iCloud Mail (mail_*: trash moves to Trash; send, reply and forward send immediately).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| hme_listB | List all active and inactive Hide My Email addresses. |
| hme_generateB | Generate a candidate address. It is not saved until hme_reserve. |
| hme_reserveC | Save a generated Hide My Email address with a label and optional note. |
| hme_updateA | Update an address's label or note, preserving fields that are omitted. |
| hme_deactivateB | Stop forwarding an address. The address can be reactivated later. |
| hme_reactivateC | Resume forwarding a previously deactivated address. |
| mail_list_mailboxesB | List mailboxes and their special uses. |
| mail_searchC | Search mail and return the newest matching message headers. |
| mail_readB | Read a message and list its attachments. Optionally mark it read. |
| mail_download_attachmentC | Download an attachment to a new absolute file with private permissions. |
| mail_set_flagsC | Set or clear the read and flagged status of messages. |
| mail_moveC | Move messages to an existing mailbox. |
| mail_archiveC | Move messages to the Archive mailbox. |
| mail_trashC | Move messages to Trash without deleting them permanently. |
| mail_sendC | Send a message immediately, with optional attachments. |
| mail_replyC | Send a reply immediately, optionally to all original recipients. |
| mail_forwardC | Forward a message immediately, optionally including its attachments. |
| mail_save_draftC | Save a message in Drafts without sending it. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools target distinct lifecycle operations: send/reply/forward/save_draft are clearly separated, and the hme_generate vs hme_reserve split is explicitly explained. The main friction is mail_move vs mail_archive vs mail_trash, since Archive and Trash are also 'existing mailboxes' an agent could move to, and mail_read's optional mark-as-read overlaps slightly with mail_set_flags.
A consistent prefix_verb(_object) convention holds throughout, with the mail_ and hme_ prefixes cleanly separating two sub-domains. Minor deviations exist where the object is implied (mail_archive, mail_trash, mail_forward) versus explicit (mail_download_attachment, mail_list_mailboxes), but the pattern stays readable.
18 tools across two real sub-domains (mail operations and Hide My Email address management) is somewhat heavy but each tool maps to a distinct, non-redundant action. Nothing looks like filler, so the set is only slightly over the ideal range.
Mail covers compose, reply, forward, draft save, read, search, mailbox listing, move/archive/trash, flags, and attachment download; Hide My Email covers list/generate/reserve/update/deactivate/reactivate as a full lifecycle. Gaps are minor: no permanent delete, no ability to send or edit an existing saved draft, and no draft listing.