icloud-mcp
icloud-mcp lets an MCP host read, and optionally change, your iCloud Calendar, Contacts, Mail, and macOS Reminders. It is one local program with read-only defaults.
The host starts icloud-mcp as a local process and talks to it over stdin and
stdout (stdio). The program calls iCloud with an app-specific password. It does
not use browser automation or private Apple APIs. It has no telemetry.
Full documentation: https://thomascrouzet.github.io/icloud-mcp/
What you can do
| Domain | Example requests to your host |
|---|---|
| Calendar (always on) | "What is on my calendar next week?" "Find a free hour on Thursday." "Move my dentist visit to Friday." |
| Contacts (optional) | "Find the phone number of Alex Martin." "Add a contact for my new plumber." |
| Mail (optional) | "Show unread messages from this week." "Move this message to Archive." "Reply to this message." |
| Reminders (optional, macOS only) | "List my reminders due today." "Add a reminder to call the bank." |
Every change needs an explicit permission. See Choose what the server may do.
You need:
- An Apple Account with two-factor authentication, and an app-specific password. Never use the main Apple Account password.
- An MCP host that can start a local stdio server.
- macOS (Apple Silicon) or Linux (amd64 or arm64). Reminders need macOS 14 or later. Windows is not supported.
Quick start
This first run gives the host read-only Calendar access. Pick one install method.
Install with Homebrew (macOS Apple Silicon)
brew install --cask thomascrouzet/tap/icloud-mcp
The first install adds the tap. The cask links icloud-mcp into the Homebrew
bin directory (/opt/homebrew/bin/icloud-mcp) and installs the Reminders
helper app in /Applications. To upgrade, run
brew upgrade --cask icloud-mcp. To remove it, run
brew uninstall --cask icloud-mcp.
Install from a release archive (macOS or Linux)
Download the archive and the checksums, signature, and certificate files for your platform from the latest release. Verify them, then extract the archive:
VERSION=v1.5.0 # the release tag you downloaded
PLATFORM=darwin-arm64 # or linux-amd64, linux-arm64
shasum -a 256 -c --ignore-missing "icloud-mcp-$VERSION-checksums.txt"
cosign verify-blob \
--certificate "icloud-mcp-$VERSION-$PLATFORM.tar.gz.pem" \
--signature "icloud-mcp-$VERSION-$PLATFORM.tar.gz.sig" \
--certificate-identity "https://github.com/ThomasCrouzet/icloud-mcp/.github/workflows/ci.yml@refs/tags/$VERSION" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
"icloud-mcp-$VERSION-$PLATFORM.tar.gz"
tar -xzf "icloud-mcp-$VERSION-$PLATFORM.tar.gz"
./icloud-mcp -version
Use the absolute path of the extracted icloud-mcp in your host
configuration. The macOS archive also contains IcloudMcpReminders.app. Keep
it next to the binary, or move it to /Applications. The macOS binary is
signed with a Developer ID certificate and notarized by Apple.
To build from source, use Go 1.26.0 or later:
go install github.com/ThomasCrouzet/icloud-mcp/cmd/icloud-mcp@latest.
Install the Claude Desktop bundle (.mcpb)
Download the .mcpb file for your platform from the
latest release.
Open it in Claude Desktop. Enter your email, the app-specific password, and
your time zone. Keep "Global read-only" at true. Leave "Capability list" and
"Resource scopes" blank.
Installation is verified for Claude Desktop on macOS arm64 only, and the
record covers the v1.3.3 bundle. Other hosts and newer bundles are not
host-verified. See the
MCPB guide.
Store your credentials
Put the Apple Account email and the app-specific password in two files. Each
file must be a regular file of at most 4 KiB with mode 0600 or stricter. The
server reads them once at startup.
mkdir -p ~/.config/icloud-mcp && cd ~/.config/icloud-mcp && umask 077
printf '%s' 'you@icloud.com' > email
printf 'App-specific password: ' && read -rs pw && printf '%s' "$pw" > password && unset pw
Configure your MCP host
This example uses Claude Desktop. Merge it into mcpServers in
~/Library/Application Support/Claude/claude_desktop_config.json. Use
absolute paths: the server does not expand ~.
{
"mcpServers": {
"icloud": {
"command": "/opt/homebrew/bin/icloud-mcp",
"env": {
"ICLOUD_EMAIL": "file:///Users/you/.config/icloud-mcp/email",
"ICLOUD_PASSWORD": "file:///Users/you/.config/icloud-mcp/password",
"ICLOUD_MCP_READ_ONLY": "true",
"ICLOUD_MCP_PERMISSIONS": "calendar.read",
"ICLOUD_MCP_DEFAULT_TZ": "Europe/Paris"
}
}
}
}
Quit and reopen the host. Then ask: "Call icloud_capabilities, then
list_calendars." The first call must show readOnly as true and seven
tools. The same entry, with more optional settings, is in
calendar-read-only.json. For other
hosts and profiles, see
MCP host integration.
Choose what the server may do
The default is read-only. No switch, flag, or missing setting grants an effect.
Name each effect in ICLOUD_MCP_PERMISSIONS, a comma-separated list.
| Permission | What it allows |
|---|---|
calendar.read | List calendars, search and get events, find free slots |
calendar.write, calendar.delete | Create and update events; delete events |
calendar.schedule | Change events that have attendees; needs calendar.write or calendar.delete |
contacts.read | List address books, search and get contacts; also needs ICLOUD_MCP_ENABLE_CONTACTS=true |
contacts.write, contacts.delete | Create and update contacts; delete contacts |
mail.read | List mailboxes, search and get messages; also needs ICLOUD_MCP_ENABLE_MAIL=true |
mail.mutate, mail.trash | Change flags and move messages; move messages to Trash |
mail.send | Send and reply; needs ICLOUD_MCP_SMTP_ALLOWED_RECIPIENTS |
mail.archive | Save a copy of a sent message in the Sent mailbox |
mail.attachments.read, mail.attachments.send | Read attachments; send attachments (needs mail.send) |
mail.drafts | Stage attachments and create drafts |
reminders.read, reminders.write, reminders.delete | Read, create and update, and delete reminders; also need ICLOUD_MCP_ENABLE_REMINDERS=true |
Other controls:
ICLOUD_MCP_READ_ONLY=trueremoves every change and send tool. It never enables a disabled domain.ICLOUD_MCP_RESOURCE_SCOPESlimits one action to named resources. For example,calendar.write=/path/to/calendar/. The actions arecalendar.read,calendar.write,calendar.delete,contacts.read,contacts.write,contacts.delete,mail.read,mail.mutate,mail.archive,reminders.read,reminders.write, andreminders.delete. A scope limits a permission. It never grants one.- Sending mail needs an exact recipient list. The value
*allows any recipient and logs a warning.
Configuration reference
The binary reads exactly 17 product environment variables from its process
environment. It does not read .env files. .env.example
lists them. Restart the process after a change.
| Variable | Default | Purpose |
|---|---|---|
ICLOUD_EMAIL | None | Calendar and Contacts identity; supports file:// |
ICLOUD_PASSWORD | None | App-specific password; supports file:// |
ICLOUD_MCP_READ_ONLY | false | Remove every change and send tool |
ICLOUD_MCP_PERMISSIONS | Reads only | Comma-separated permission list |
ICLOUD_MCP_RESOURCE_SCOPES | All resources | Per-action resource allowlists |
ICLOUD_MCP_LOG_LEVEL | info | Log level on stderr |
ICLOUD_MCP_DEFAULT_TZ | UTC | IANA time zone for times without an offset |
ICLOUD_MCP_ENABLE_CONTACTS | false | Enable Contacts reads |
ICLOUD_MCP_ENABLE_MAIL | false | Enable Mail reads |
ICLOUD_MAIL_ADDRESS | None | Full iCloud Mail address; needed when Mail is on |
ICLOUD_MAIL_FROM | ICLOUD_MAIL_ADDRESS | Sender address, for example an iCloud+ custom domain |
ICLOUD_MAIL_PASSWORD | ICLOUD_PASSWORD | Separate Mail app-specific password |
ICLOUD_MCP_ENABLE_MAIL_WRITE | false | Compatibility gate; mail.mutate or mail.trash is still needed |
ICLOUD_MCP_ENABLE_MAIL_SEND | false | Compatibility gate; mail.send is still needed |
ICLOUD_MCP_SMTP_ALLOWED_RECIPIENTS | None | Exact recipient addresses; needed to send |
ICLOUD_MCP_ENABLE_REMINDERS | false | Enable Reminders on macOS 14 or later |
ICLOUD_MCP_DRAFTS_MAILBOX | None | Drafts mailbox for create_draft; set Drafts for iCloud |
Booleans accept only unset, 0, false, 1, and true. Pass every value as
a string, including booleans in YAML. A bad value stops the server at boot,
before any network access. See the
full configuration reference
for time rules and examples.
Reminders (macOS only)
Reminders use a small signed helper app, IcloudMcpReminders.app, on the same
Mac. They need no Apple Account password. The release archive, the .mcpb
bundle, and the Homebrew cask include the helper. After you install:
- Run
icloud-mcp reminders authorizeonce, at the Mac. Click Allow in the macOS prompt. - Set
ICLOUD_MCP_ENABLE_REMINDERS=true. Addreminders.read, and optionallyreminders.writeandreminders.delete, toICLOUD_MCP_PERMISSIONS.
The host must start the server in the logged-in user session of that Mac. Subtasks, tags, sections, and location alarms are not available. See Reminders.
Privacy and security
- No telemetry. The server has no telemetry or crash reporting. It writes logs and change audit records to stderr. Your host controls retention.
- Fixed destinations. Calendar and Contacts use iCloud hosts on port 443.
Mail uses
imap.mail.me.com:993andsmtp.mail.me.com:587. TLS 1.2 or later is required. The server ignores proxy settings for Calendar and Contacts. - Secrets stay out of output. The server removes your email and passwords from errors, results, and logs. It writes no data files. The one exception is a 0600 session token file for the Reminders helper on macOS.
- Your host sees your data. Results go to the MCP host and its model. Their policies govern what happens next.
- Remote text is untrusted. A message or event can contain instructions that try to steer the model. Assume a manipulated host can call every enabled tool. Start read-only, and enable only what you need.
- One process shares all credentials. For stronger isolation, run separate processes with separate accounts.
Read the threat model and reporting policy and the security implementation.
Tools
The server registers 7 tools with the default read-only profile, including
icloud_capabilities. It registers 33 when explicit permissions and domain gates enable every capability.
Disabled tools do not appear in the tool list.
| Domain | Access | Tools |
|---|---|---|
| Global | Read | icloud_capabilities |
| Calendar | Read | list_calendars, search_events, get_event, find_free_slots, validate_event, calendar_capabilities |
| Calendar | Write | create_event, update_event, delete_event |
| Contacts | Read | list_address_books, search_contacts, get_contact |
| Contacts | Write | create_contact, update_contact, delete_contact |
| Read | list_mailboxes, search_messages, get_message, get_attachment | |
| Write | set_message_flags, move_message, trash_message, stage_attachment, create_draft | |
| Send | send_message, reply_message | |
| Reminders | Read | list_reminder_lists, search_reminders, get_reminder |
| Reminders | Write | create_reminder, update_reminder, delete_reminder |
Run icloud-mcp -doctor to check your connection. It only reads. It never
creates, changes, or sends anything. Tool errors carry a JSON code. See the
tool inventory
and the error codes.
Platform support
| Target | Published archive | Native release smoke | Status |
|---|---|---|---|
| Linux amd64 | Yes | Ubuntu GitHub-hosted runner | Supported |
| Linux arm64 | Yes | Ubuntu arm64 GitHub-hosted runner | Supported |
| macOS arm64 | Yes | macOS GitHub-hosted arm64 runner | Supported |
| Windows amd64 | No | None | Compile-only, explicit scope decision |
Windows has no archive and no runtime support claim. See the platform support matrix and the Windows decision. Notes, Photos, Drive, Find My, Messages, and Home are out of scope.
Troubleshooting
| Symptom | What to do |
|---|---|
The server stops with invalid ICLOUD_EMAIL or configuration error | A setting is missing or wrong. Fix it, then restart the host. In Claude Desktop, this is expected until you save the settings. |
authentication error | Create a new app-specific password. Never use the main password. |
| Mail fails but Calendar works | Your network can block IMAP or SMTP. See Mail network troubleshooting. |
For Reminders errors and all other codes, see the error codes. To report a bug, use GitHub Issues. Include the version and redacted errors. Never post credentials.
Documentation
The documentation site is built
from the docs/ folder.
| Guide | Contents |
|---|---|
| Host integration | Profiles, all settings, dates, health checks |
| Reminders | Helper app setup, limits |
| Architecture | Boundaries, tool inventory, limits |
| Security implementation | Allowlists, redaction, audit |
| Error codes | Errors, retry rules, recovery |
| MCPB bundles | Bundle contents and verification |
| Testing | Local checks, CI, release verification |
| Decision records | Recurrence, invitations, Windows scope |
Protocol details: CalDAV, CardDAV, Mail. Version history: Changelog.
Contributing and security policy
Read CONTRIBUTING.md. Run gofmt, make test, and
make lint before you open a pull request. Build and test need no iCloud
account. Report vulnerabilities privately: see SECURITY.md.
License
MIT. Copyright (c) 2026 Thomas Crouzet. See LICENSE and the third-party notices. The Calendar tool shape was inspired by mcp-icloud-calendar (MIT). The code was rewritten, not copied.
Direct Go dependencies (13) and why each exists
The single Go module has 13 direct requirements. All are runtime dependencies. go.mod has the versions.
| Dependency | Purpose |
|---|---|
github.com/emersion/go-webdav | CalDAV primitives; custom discovery and conditional requests preserve iCloud behavior |
github.com/emersion/go-ical | iCalendar parsing and encoding |
github.com/mark3labs/mcp-go | MCP stdio transport, schemas, and JSON-RPC |
github.com/teambition/rrule-go | Bounded recurrence expansion with timezone preservation |
golang.org/x/time | Independent domain rate limiters |
golang.org/x/text | RFC 5051-compatible Unicode collation for local Contacts matching; already present transitively |
golang.org/x/sys | macOS socket peer credentials and process lookup for the Reminders helper check; linked into the macOS binary only |
github.com/emersion/go-vcard | vCard 3.0 and 4.0 reads and 3.0 writes |
github.com/emersion/go-imap/v2 | IMAP through the narrow internal/mail/imapadapter boundary |
github.com/emersion/go-message | MIME parsing and bounded plain-text handling |
github.com/emersion/go-smtp | SMTP submission with STARTTLS |
github.com/emersion/go-sasl | SASL PLAIN authentication after STARTTLS |
github.com/santhosh-tekuri/jsonschema/v6 | Names the failed arguments of an input schema refusal, and checks published schemas and actual outputs in tests; the validator already exists transitively through the MCP SDK |