icloud-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Port for `serve-http`; default `8080` | 8080 |
| ICLOUD_FROM | No | Send-as address, if different from the Apple ID (must be one of your iCloud aliases) | |
| MCP_API_KEY | No | Required by `serve-http`; at least 32 characters | |
| ICLOUD_TIMEZONE | No | IANA zone for times given without an offset; defaults to the machine's zone | |
| ICLOUD_USERNAME | No | Apple ID email (overrides the keychain) | |
| ICLOUD_ALLOW_SEND | No | `false` removes `icloud_send_message`; default `true` | true |
| ICLOUD_APP_PASSWORD | No | App-specific password (overrides the keychain) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Access to the user's iCloud Mail and iCloud Calendar. Times are ISO 8601; times without an offset are the user's local time. Mail messages are addressed by (mailbox, uid) from icloud_search_messages; calendar events by event_id from icloud_list_events. Prefer icloud_create_draft over icloud_send_message unless the user clearly asked to send, and confirm recipients and content before sending or deleting.
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 |
|---|---|
| icloud_list_mailboxesA | List iCloud Mail mailboxes with total and unread message counts. |
| icloud_search_messagesA | Search one mailbox and return message summaries (newest first) with uid, sender, subject, date and flags. |
| icloud_get_messageA | Read one message: headers, body as text (HTML converted), and the attachment list. |
| icloud_create_draftB | Save a plain-text draft to the iCloud Drafts mailbox without sending it. |
| icloud_send_messageA | Send a plain-text email from the user's iCloud address. Cannot be undone: confirm with the user first. |
| icloud_move_messagesA | Move messages between mailboxes (also how to archive or trash them; nothing is permanently deleted). |
| icloud_set_flagsC | Mark messages read/unread and/or flagged/unflagged. |
| icloud_list_calendarsA | List the user's iCloud calendars: their own and shared ones (kind 'calendar'), plus calendars they subscribe to such as sports fixtures or app feeds (kind 'subscribed', read-only). |
| icloud_list_eventsA | List events in a time range across calendars, recurring events expanded into occurrences, sorted by start. |
| icloud_create_eventC | Create an event in an iCloud calendar. |
| icloud_update_eventA | Change fields of an event; omitted fields stay as they are. For a recurring event this edits the whole series. |
| icloud_delete_eventA | Delete an event (for a recurring event, the whole series). Confirm with the user first. |
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 12 tools
Mail and calendar tools are cleanly separated, and within mail each tool maps to a distinct action: listing mailboxes, searching, reading a single message, drafting, sending, moving, and flagging. The move vs. set_flags split is explicitly clarified in the descriptions, leaving no real boundary confusion.
All twelve tools follow a uniform `icloud_<verb>_<noun>` snake_case pattern, and the resource prefixes (mailboxes, messages, calendars, events) make the pattern even more predictable. No mixed conventions or vague verbs.
Twelve tools split sensibly into seven mail operations and five calendar operations, each earning its place with no filler. The surface is well-scoped for a personal iCloud mail+calendar integration.
Core CRUD and lifecycle coverage is present for both domains: search/read/draft/send/move/flag for mail and list/create/update/delete for events. Minor gaps remain, such as no reply/forward, no attachment download, no calendar creation/deletion, and no attendee/RSVP handling.