Skip to main content
Glama
README.md
<p align="center">
  <img src="assets/icloud-mcp-icon.svg" width="96" height="96" alt="icloud-mcp icon: a white cloud holding a small calendar grid">
</p>

<h1 align="center">icloud-mcp</h1>

<p align="center"><b>Executor app for iCloud Calendar and Contacts over CalDAV and CardDAV, with no Mac permissions or Raycast needed.</b></p>

<p align="center">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
  <a href="https://executor.sh"><img src="https://img.shields.io/badge/runs%20on-Executor-lightgrey" alt="Runs on Executor"></a>
  <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-server-55B8FF" alt="MCP server"></a>
</p>

An [Executor](https://executor.sh) app that reads and manages your iCloud calendars and contacts over HTTPS. You connect one Apple app-specific password in Executor, and every agent on every machine that uses your Executor can reach them.

## Why this one

- **No Mac needed.** It talks to iCloud's CalDAV and CardDAV servers directly, so there are no macOS permission prompts, no AppleScript helpers and no Raycast subscription.
- **Edits keep what they don't touch.** An update changes only the fields you pass. Alarms, photos and addresses stay as they were.
- **No lost edits.** An update or delete sends the item's ETag, so iCloud refuses it when someone changed the item in the meantime.
- **You approve every change.** Each create, update and delete waits for your approval in Executor.

## Try asking

- "What's on my calendar next week?"
- "Move Friday's dentist appointment to 3pm."
- "Find Sarah's phone number."
- "Add a contact for the new supplier with this email and phone."

## Install

1. Create an Apple app-specific password at [account.apple.com](https://account.apple.com), under **Sign-In and Security** > **App-Specific Passwords**.
2. Clone the app and deploy it to your Executor server:

   ```bash
   git clone https://github.com/proxynico/icloud-mcp.git
   cd icloud-mcp
   executor apps create --name "iCloud" --files .
   executor apps deploy --app <app-id> --files .
   ```

3. In Executor's dashboard, connect your Apple ID and the app-specific password to the `icloud` app.

To deploy an update later, run `executor apps deploy --app <app-id> --files .` again.

## Tools

| Area | Tool | What it does |
| --- | --- | --- |
| Calendar | `listCalendars` | Your iCloud calendars, with ID, name, color and description. Reminders lists and scheduling inboxes are left out |
| Calendar | `getEvents` | Events between two dates, with repeating events expanded, filtered by calendar or text |
| Calendar | `getEvent` | One event, by calendar and UID |
| Calendar | `createEvent` | A timed or all-day event. Needs approval |
| Calendar | `updateEvent` | Changes the fields you pass. Needs approval |
| Calendar | `deleteEvent` | Deletes an event by UID. Needs approval |
| Contacts | `list` | Contacts matching a name, organization, phone in any format, email or address, with name matches first |
| Contacts | `get` | One contact's full details, by UID |
| Contacts | `create` | A new contact. Needs approval |
| Contacts | `update` | Changes the fields you pass. Needs approval |
| Contacts | `delete` | Deletes a contact by UID. Needs approval |

Calendar tools live under `tools.icloud.calendar` and contacts tools under `tools.icloud.contacts`.

## How it works

The app sends your credentials only to `caldav.icloud.com`, `contacts.icloud.com` and other `*.icloud.com` hosts, and only over HTTPS. Executor keeps the password as a secret handle limited to those hosts. iCloud often redirects to a server such as `p42-caldav.icloud.com`, and the app checks that each redirect stays on `https://*.icloud.com` before it sends the credentials again.

## Development

```bash
bun install
bun run check
```

## License

[MIT](LICENSE)