# icloud-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/ThomasCrouzet/icloud-mcp  
**GitHub Stars:** 7  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/icloud-mcp-2

## Description
stdio MCP for iCloud Calendar (CalDAV), with optional Contacts and Mail.

## Tools
Capabilities this server exposes over MCP:

- **icloud_capabilities** — None; the call uses local state
- **list_calendars** — None
- **search_events** — None
- **update_event** — Conditional Calendar write
- **get_message** — None; EXAMINE and PEEK preserve read state
- **get_attachment** — None; PEEK preserves read state and the server keeps no copy
- **send_message** — Sends mail to allowed recipients; identical keyed calls reuse one submission
- **stage_attachment** — None; bytes stay in server memory for 30 minutes
- **create_draft** — Appends one draft to the Drafts mailbox; never sends
- **reply_message** — Replies to the resolved sender or reply-all recipients; never marks Answered or appends Sent

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ThomasCrouzet/icloud-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Check the setup:

```sh
shasum -a 256 -c icloud-mcp-v1.0.0-checksums.txt
```

2. Check the setup:

```sh
cosign verify-blob \
     --certificate icloud-mcp-v1.0.0-linux-amd64.mcpb.pem \
     --signature icloud-mcp-v1.0.0-linux-amd64.mcpb.sig \
     --certificate-identity "https://github.com/ThomasCrouzet/icloud-mcp/.github/workflows/ci.yml@refs/tags/v1.0.0" \
     --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
     icloud-mcp-v1.0.0-linux-amd64.mcpb
```

3. Install:

```sh
tar -xzf icloud-mcp-v1.0.0-linux-amd64.tar.gz
```

4. Install:

```sh
go install github.com/ThomasCrouzet/icloud-mcp/cmd/icloud-mcp@latest
```

5. Install:

```sh
make build        # bin/icloud-mcp, host Go; version defaults to dev
```

## Documentation

## What icloud-mcp does

iCloud Calendar, Contacts, and Mail become available to an MCP host through one Go binary. Calendar operations use CalDAV, Contacts use CardDAV, and Mail uses IMAP for retrieval and SMTP for sending. Contacts and Mail are optional domains, so a deployment can start with Calendar access and add other capabilities only when needed.

The server supports calendar discovery, event search, event updates, contact operations, mailbox and message access, mail flag or mailbox changes, and message submission. The default profile is read-only. Mutating operations are separately controlled by permissions, and disabled tools are omitted from MCP discovery.

## How it works

The MCP host starts the process and exchanges JSON-RPC messages over standard input and output. Credentials load at startup, while discovery information and keyed update results remain in process memory; the server does not write local data files. Requests are sent to iCloud using authenticated network protocols and returned to the host as MCP results.

Calendar and Contacts use iCloud hosts over port 443. Mail retrieval connects to `imap.mail.me.com:993`, and SMTP submission uses `smtp.mail.me.com:587` with STARTTLS. TLS 1.2 or newer is required. Operational logs and mutation audit records go to stderr, with configured identities, passwords, and authentication forms redacted.

The `icloud_capabilities` tool reports enabled domains, effective permissions, and registered tools. `-doctor` performs authenticated, read-only checks against enabled domains and can emit machine-readable JSON; it does not test SMTP or perform account mutations.

## Setup and configuration

An Apple Account with iCloud Calendar access and an app-specific password is required. Contacts uses the same identity. Mail additionally requires a full iCloud Mail address and may use a separate app-specific password.

Use `ICLOUD_MCP_PERMISSIONS` to grant capabilities such as `calendar.read`, `calendar.write`, `contacts.read`, `mail.read`, or `mail.send`. `ICLOUD_MCP_ENABLE_CONTACTS=true` and `ICLOUD_MCP_ENABLE_MAIL=true` enable the optional domains. `ICLOUD_MCP_READ_ONLY=true` removes mutation and send tools even when other permissions are present.

`ICLOUD_MCP_RESOURCE_SCOPES` can restrict calendars, address books, and mailboxes. Its entries use semicolon-separated actions and values; calendar values are paths, Contacts values are identifiers or exact display names, and Mail values are exact mailbox names. A recipient policy is required whenever mail sending is enabled.

## Tools and capabilities

The exposed interface includes:

- `icloud_capabilities` for local capability and tool discovery.
- `list_calendars` for calendar names and paths.
- `search_events` for bounded, sorted event searches with optional filters and cursors.
- `update_event` for conditional Calendar changes with optional idempotency keys.
- `get_message` for bounded plain-text message retrieval without changing read state.
- `send_message` for policy-controlled plain-text mail submission.
- `reply_message` for sender or reply-all responses using preserved conversation headers.

Additional gated capabilities cover contact books and vCard 3.0 contacts, mailbox and message search, attachment metadata, mail flag changes, and moving or trashing messages. Full enablement can expose up to 24 tools, while the default read-only profile exposes seven.

## Limitations and notes

All enabled domains share one process. A process compromise could therefore expose every credential loaded into that process; separate processes and account configurations provide stronger isolation.

Remote text can contain prompt injection, and a compromised host model can invoke every registered tool. Starting with global read-only mode and enabling only necessary capabilities reduces the available effect surface. The host controls log retention and any later storage or transmission to a model provider.

Mail sending is restricted by recipient policy. Repeated keyed send calls reuse the same submission. Replies do not mark the source message as answered and do not append a copy to Sent. Resource scopes fail closed for ambiguous or stale Contacts names, and malformed or duplicate scope actions invalidate the scope configuration.

_Full upstream README: https://allmcps.com/mcp/icloud-mcp-2/readme_

