Icloud MCP README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Icloud MCP listing page.

icloud-mcp

CI status Latest release MIT license

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

DomainExample 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)

sh
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:

sh
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.

sh
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 ~.

config.json
{
  "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.

PermissionWhat it allows
calendar.readList calendars, search and get events, find free slots
calendar.write, calendar.deleteCreate and update events; delete events
calendar.scheduleChange events that have attendees; needs calendar.write or calendar.delete
contacts.readList address books, search and get contacts; also needs ICLOUD_MCP_ENABLE_CONTACTS=true
contacts.write, contacts.deleteCreate and update contacts; delete contacts
mail.readList mailboxes, search and get messages; also needs ICLOUD_MCP_ENABLE_MAIL=true
mail.mutate, mail.trashChange flags and move messages; move messages to Trash
mail.sendSend and reply; needs ICLOUD_MCP_SMTP_ALLOWED_RECIPIENTS
mail.archiveSave a copy of a sent message in the Sent mailbox
mail.attachments.read, mail.attachments.sendRead attachments; send attachments (needs mail.send)
mail.draftsStage attachments and create drafts
reminders.read, reminders.write, reminders.deleteRead, create and update, and delete reminders; also need ICLOUD_MCP_ENABLE_REMINDERS=true

Other controls:

  • ICLOUD_MCP_READ_ONLY=true removes every change and send tool. It never enables a disabled domain.
  • ICLOUD_MCP_RESOURCE_SCOPES limits one action to named resources. For example, calendar.write=/path/to/calendar/. The actions are calendar.read, calendar.write, calendar.delete, contacts.read, contacts.write, contacts.delete, mail.read, mail.mutate, mail.archive, reminders.read, reminders.write, and reminders.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.

VariableDefaultPurpose
ICLOUD_EMAILNoneCalendar and Contacts identity; supports file://
ICLOUD_PASSWORDNoneApp-specific password; supports file://
ICLOUD_MCP_READ_ONLYfalseRemove every change and send tool
ICLOUD_MCP_PERMISSIONSReads onlyComma-separated permission list
ICLOUD_MCP_RESOURCE_SCOPESAll resourcesPer-action resource allowlists
ICLOUD_MCP_LOG_LEVELinfoLog level on stderr
ICLOUD_MCP_DEFAULT_TZUTCIANA time zone for times without an offset
ICLOUD_MCP_ENABLE_CONTACTSfalseEnable Contacts reads
ICLOUD_MCP_ENABLE_MAILfalseEnable Mail reads
ICLOUD_MAIL_ADDRESSNoneFull iCloud Mail address; needed when Mail is on
ICLOUD_MAIL_FROMICLOUD_MAIL_ADDRESSSender address, for example an iCloud+ custom domain
ICLOUD_MAIL_PASSWORDICLOUD_PASSWORDSeparate Mail app-specific password
ICLOUD_MCP_ENABLE_MAIL_WRITEfalseCompatibility gate; mail.mutate or mail.trash is still needed
ICLOUD_MCP_ENABLE_MAIL_SENDfalseCompatibility gate; mail.send is still needed
ICLOUD_MCP_SMTP_ALLOWED_RECIPIENTSNoneExact recipient addresses; needed to send
ICLOUD_MCP_ENABLE_REMINDERSfalseEnable Reminders on macOS 14 or later
ICLOUD_MCP_DRAFTS_MAILBOXNoneDrafts 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:

  1. Run icloud-mcp reminders authorize once, at the Mac. Click Allow in the macOS prompt.
  2. Set ICLOUD_MCP_ENABLE_REMINDERS=true. Add reminders.read, and optionally reminders.write and reminders.delete, to ICLOUD_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:993 and smtp.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.

DomainAccessTools
GlobalReadicloud_capabilities
CalendarReadlist_calendars, search_events, get_event, find_free_slots, validate_event, calendar_capabilities
CalendarWritecreate_event, update_event, delete_event
ContactsReadlist_address_books, search_contacts, get_contact
ContactsWritecreate_contact, update_contact, delete_contact
MailReadlist_mailboxes, search_messages, get_message, get_attachment
MailWriteset_message_flags, move_message, trash_message, stage_attachment, create_draft
MailSendsend_message, reply_message
RemindersReadlist_reminder_lists, search_reminders, get_reminder
RemindersWritecreate_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

TargetPublished archiveNative release smokeStatus
Linux amd64YesUbuntu GitHub-hosted runnerSupported
Linux arm64YesUbuntu arm64 GitHub-hosted runnerSupported
macOS arm64YesmacOS GitHub-hosted arm64 runnerSupported
Windows amd64NoNoneCompile-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

SymptomWhat to do
The server stops with invalid ICLOUD_EMAIL or configuration errorA setting is missing or wrong. Fix it, then restart the host. In Claude Desktop, this is expected until you save the settings.
authentication errorCreate a new app-specific password. Never use the main password.
Mail fails but Calendar worksYour 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.

GuideContents
Host integrationProfiles, all settings, dates, health checks
RemindersHelper app setup, limits
ArchitectureBoundaries, tool inventory, limits
Security implementationAllowlists, redaction, audit
Error codesErrors, retry rules, recovery
MCPB bundlesBundle contents and verification
TestingLocal checks, CI, release verification
Decision recordsRecurrence, 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.

DependencyPurpose
github.com/emersion/go-webdavCalDAV primitives; custom discovery and conditional requests preserve iCloud behavior
github.com/emersion/go-icaliCalendar parsing and encoding
github.com/mark3labs/mcp-goMCP stdio transport, schemas, and JSON-RPC
github.com/teambition/rrule-goBounded recurrence expansion with timezone preservation
golang.org/x/timeIndependent domain rate limiters
golang.org/x/textRFC 5051-compatible Unicode collation for local Contacts matching; already present transitively
golang.org/x/sysmacOS socket peer credentials and process lookup for the Reminders helper check; linked into the macOS binary only
github.com/emersion/go-vcardvCard 3.0 and 4.0 reads and 3.0 writes
github.com/emersion/go-imap/v2IMAP through the narrow internal/mail/imapadapter boundary
github.com/emersion/go-messageMIME parsing and bounded plain-text handling
github.com/emersion/go-smtpSMTP submission with STARTTLS
github.com/emersion/go-saslSASL PLAIN authentication after STARTTLS
github.com/santhosh-tekuri/jsonschema/v6Names 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