icloud-calendar-mcp
Manage iCloud Calendar programmatically through an MCP server, including reading, creating, updating, deleting events, and checking availability.
List calendars.
List events in a time range with pagination.
Get event details by opaque handle.
Create events with title, start/end, timezone, all-day dates, recurrence rules, alarms, location, description, URL, and attendees.
Update events using ETag concurrency control, with whole-series or occurrence scopes and retry-safe request IDs.
Delete events with ETag concurrency control and retry-safe request IDs.
Find overlapping events in a calendar, optionally excluding a specific event.
Compute busy intervals for free/busy visibility.
Run over stdio by default, or as an optional HTTP server with bearer-token authentication.
Provides tools for managing Apple iCloud calendars and events via CalDAV, including listing calendars, creating, reading, updating, and deleting events with support for recurrence, conflict detection, and free/busy queries.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@icloud-calendar-mcp list my iCloud calendars"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
icloud-calendar-mcp
Reliable, lightweight Apple iCloud Calendar MCP Server. Native TypeScript/Node.js, connects directly to iCloud via CalDAV; no dependency on Java, Python, Go, AppleScript, macOS, or Calendar.app.
English summary: A production-oriented, cross-platform TypeScript MCP server for Apple iCloud Calendar. It provides guarded CalDAV CRUD, persistent opaque handles, idempotent writes, ETag concurrency control, recurrence expansion, stdio and secured Streamable HTTP transports.
Installation
Requires Node.js 20 or higher. Must use Apple's "App-Specific Password", do not use the Apple account master password.
npx icloud-calendar-mcpCreate an app-specific password: Log in to account.apple.com, go to "Sign-In and Security" → "App-Specific Passwords". Apple may limit the number of simultaneously active app-specific passwords; revoking a password will cause this service to receive AUTH_FAILED.
stdio client configuration:
{
"mcpServers": {
"icloud-calendar": {
"command": "npx",
"args": ["-y", "icloud-calendar-mcp"],
"env": {
"ICLOUD_USERNAME": "you@example.com",
"ICLOUD_APP_PASSWORD": "xxxx-xxxx-xxxx-xxxx"
}
}
}
}stdout is only for JSON-RPC; all logs are written to stderr.
Related MCP server: ical-mcp
Tools and MCP Content
Name | Description |
| List iCloud calendars |
| Query by explicit time range, timezone, cursor, and limit; request CalDAV server-side expansion of occurrences |
| Read an event using a cross-process persistent opaque handle |
| Idempotent creation with |
| Update using a persistent handle and |
| Delete using a persistent handle and |
| Find time-overlapping events |
| Reliably compute busy intervals client-side from currently readable events |
Tools return both structuredContent and text JSON, and declare read-only/destructive/idempotent/open-world annotations. Resource: calendar://calendars. Explicit user template prompts: schedule_event, reschedule_event, find_conflicts; they do not autonomously make scheduling decisions for the user.
Events support timed/all-day, title, description, location, URL, RRULE, DISPLAY alarm, and participants. Participant fields are subject to iCloud and calendar sharing permissions; this service will not falsely report that writing ATTENDEE has successfully sent an invitation.
Time and Recurrence Event Semantics
Timed event input must provide ISO 8601 time and IANA
timezone; output also explicitly returns the timezone.All-day events use
YYYY-MM-DDforstart/end, withendnot included in the event. For example, an all-day event on August 18 isstart=2026-08-18,end=2026-08-19.iCalendar is built and parsed using
ical.js, not by string concatenation of user fields; tests cover DST, UTC, and all-day boundaries.list_eventsexpands RRULE occurrences via CalDAVcalendar-data/expandrequest.whole_seriessupports update/delete.single_occurrence,this_and_futurereturnUNSUPPORTED_OPERATIONwhen iCloud recurrence exception capability is unverified, and never silently change to the whole series.
HTTP Mode
HTTP is disabled by default. When enabled, it only listens on loopback, and the bearer token is at least 24 characters:
ICLOUD_MCP_TRANSPORT=http \
ICLOUD_MCP_HTTP_TOKEN='replace-with-a-long-random-token' \
ICLOUD_MCP_HTTP_PORT=3000 \
npx icloud-calendar-mcpMCP endpoint:
POST /mcpHealth check:
GET /healthz(does not access Apple or leak account status)Enforced bearer token; fixed Host allowlist; Origin denied by default; 1 MiB default request limit; local read/write rate limiting; timeout and security response header boundaries.
Set stable parameters via
ICLOUD_MCP_CONFIG=/absolute/path/config.json, such asallowedHosts,allowedOrigins,timeoutMs,maxEvents, read/write rate limits, and request limits. Credentials must not be placed in this file.
See docs/tool-contracts.md for the full configuration contract, and docs/security.md for the security model.
Reliability
The UID for create is a stable SHA-256 derivation of
request_id; duplicate requests will not create a second event.Create uses
If-None-Match: *, update/delete useIf-Matchwith the already-read ETag.Journal is written to the user data directory (default
~/.icloud-caldav-mcp/journal.json, with tightened permissions) via atomic rename, preserving request replay and opaque handles.429/5xx/transient network failures use jittered exponential backoff and respect
Retry-After; when response ETag is missing, perform read-after-write visibility polling.Stable error codes:
AUTH_FAILED,CALENDAR_NOT_FOUND,EVENT_NOT_FOUND,ETAG_CONFLICT,INVALID_EVENT,RATE_LIMITED,TEMPORARY_UNAVAILABLE,UNSUPPORTED_OPERATION.
Development and Real Account Smoke Test
pnpm install
pnpm check
pnpm packUser-facing changes are recorded using pnpm changeset. After pushing to main, Changesets automatically creates or updates a Release PR; after merging that PR, it is automatically published with provenance via npm Trusted Publishing. Before first enabling, configure .github/workflows/release.yml as a Trusted Publisher in the npm package settings.
CI uses fake adapter/HTTP fixtures and does not require a real Apple account. Optional real tests run only when ICLOUD_USERNAME and ICLOUD_APP_PASSWORD are explicitly provided locally: pnpm smoke:icloud. The current smoke suite skips write operations by default; for first real verification, it is recommended to manually verify discovery/list/create/update/delete/recurrence exception behavior using a dedicated test calendar.
Troubleshooting: 401/403 check the app-specific password; 412 indicates ETag concurrency conflict, please re-run list_events/get_event; 429 wait and retry; unknown handle means the journal has been deleted or the data directory has changed. Do not paste full CalDAV URLs, Authorization, or event bodies into issues.
License
MIT. Implemented as independent original code; public projects are used only for interface and architecture gap research, with no copying of third-party source code.
Available Tools
8 toolscreate_eventBIdempotent
Create an event idempotently
Inputs: end (required), start (required), title (required), timezone (required), +9 more.
delete_eventCDestructiveIdempotent
Delete an event using ETag concurrency control
Inputs: request_id (required), event_handle (required), scope.
find_conflictsCRead-onlyIdempotent
Find overlapping iCloud events
Inputs: end (required), start (required), timezone (required), calendar_id (required), +1 more.
free_busyBRead-onlyIdempotent
Compute busy intervals from visible iCloud events
Inputs: end (required), start (required), timezone (required), calendar_id (required).
get_eventCRead-onlyIdempotent
Get an event by persistent opaque handle
Inputs: event_handle (required).
list_calendarsARead-onlyIdempotent
List iCloud calendars
Inputs: no named parameters.
list_eventsARead-onlyIdempotent
List events in an explicit range with pagination
Inputs: end (required), start (required), timezone (required), calendar_id (required), +2 more.
update_eventBDestructiveIdempotent
Update an event using ETag concurrency control
Inputs: request_id (required), event_handle (required), end, url, +10 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource or action: calendars vs events, single vs list, CRUD vs conflict/free-busy analysis. find_conflicts and free_busy are related but serve different purposes (overlap detection vs availability intervals). No two tools are ambiguous.
Most tools follow a consistent verb_noun pattern (list_calendars, create_event, update_event). The only exception is free_busy, which is a conventional compound term rather than verb_noun, but it remains clear and doesn't disrupt the overall consistency.
Eight tools cover the core calendar event lifecycle (list, get, create, update, delete) plus calendar listing and analysis (conflicts, free_busy). This is well-scoped and avoids unnecessary bloat, fitting the server's purpose neatly.
The event lifecycle is fully covered with create, read, update, delete, and list operations, and conflict detection adds analytical value. The main gap is that calendar management only supports listing, not creating or modifying calendars, but this is acceptable for an event-focused MCP. A search operation would be a minor enhancement.
Maintenance
Related MCP Connectors
Read, search and manage iCloud Mail, Calendar and Contacts from Claude and other MCP clients.
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
A MCP server that works with Google Calendar to manage event listing, reading, and updates.
Read and send iCloud Mail, manage iCloud Calendar. Needs an approved account at icloud.mcp.visin.ch.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn HTTP Model Context Protocol (MCP) server exposing iCloud Calendar (CalDAV) tools so MCP-aware clients can list calendars, read events, and create/update/delete events using an iCloud app-specific password.3MIT
- AlicenseAqualityBmaintenanceMCP server for Apple Calendar and CalDAV providers. Enables listing, creating, updating, deleting events, and checking free/busy status with per-calendar write protection.6MIT
- FlicenseAqualityDmaintenanceRemote MCP server for managing iCloud calendar events via CalDAV, supporting CRUD operations, ICS import, and deployment on Prefect Horizon.7-
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP server for iCloud Calendar, Contacts, and Mail, usable from any MCP-capable AI client.-