CalDAV MCP Server

v0.2.0
io.github.lukegskw/caldav-mcp Checked 11 hours ago Published 1 month ago

A TypeScript MCP server for iCloud Calendar with native multi-VALARM support.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_calendars List calendars

List calendars available in the configured iCloud account. Use this first to obtain the opaque calendar_id required by list_events and create_event; writable is a best-effort capability indicator.

list_events List calendar events

List events that overlap the start-inclusive, end-exclusive interval and expand recurring series into occurrences, across at most 366 days. Use list_calendars first to obtain calendar_id and use get_event instead for one known event. Continue with next_cursor and unchanged query filters when more results are available.

ParameterTypeDescription
calendar_id *stringOpaque calendar ID returned by list_calendars.
end *stringExclusive end of the event search interval; must be after start and no more than 366 days later.
start *stringInclusive start of the event search interval as an ISO 8601 instant.
cursorstringOpaque next_cursor from the preceding page. Reuse it with the same calendar, interval, and timezone.
limitintegerMaximum events to return in this page, from 1 to 500; defaults to 100.
timezonestringFallback IANA timezone used when an event lacks timezone metadata during recurrence expansion.

get_event Get calendar event

Read one event by resource_id, preferably from a previous result, or by the calendar_id and uid pair. Use list_events for range searches. Request raw iCalendar only for controlled diagnostics because it may contain sensitive calendar data.

ParameterTypeDescription
calendar_idstringOpaque calendar ID returned by list_calendars. Provide it together with uid when resource_id is unavailable.
include_raw_icalbooleanInclude the raw iCalendar resource for controlled diagnostics; it may contain sensitive calendar data. Defaults to false.
resource_idstringOpaque event resource ID returned by list_events or get_event. Provide it alone instead of calendar_id and uid.
uidstringiCalendar UID of the event. Provide it together with calendar_id when resource_id is unavailable.

create_event Create calendar event

Create a new event in a writable iCloud calendar and return the stored representation; existing events are not changed. Use list_calendars first to obtain calendar_id, and use update_event when the event already exists. Timed values require matching offsets and timezones, all-day end dates are exclusive, recurrence rules omit the RRULE: prefix, and travel_minutes sets Apple Calendar travel time for timed events.

ParameterTypeDescription
calendar_id *stringOpaque destination calendar ID returned by list_calendars.
end *Event end using the same temporal type and timezone as start; an all-day end date is exclusive.
start *Event start as a timed date-time or all-day date.
summary *stringEvent title, between 1 and 1,024 characters.
alarmsarrayDisplay reminders; defaults to an empty array.
descriptionEvent notes; defaults to null.
locationEvent location; defaults to null.
rruleRFC 5545 recurrence rule without the RRULE: prefix; defaults to null.
travel_minutesApple Calendar travel time in whole minutes before the start; defaults to null. Only valid for timed events.

update_event Update calendar event

Modify an existing event or entire recurring series; individual expanded occurrences are not supported. Target it by resource_id or by calendar_id with uid. Omitted patch fields are preserved, null clears nullable fields, an empty alarms array removes alarms, and expected_etag can prevent a stale write.

ParameterTypeDescription
patch *objectFields to replace. Omitted fields are preserved; null clears nullable values and an empty alarms array removes all alarms.
calendar_idstringOpaque calendar ID returned by list_calendars. Provide it together with uid when resource_id is unavailable.
expected_etagstringETag previously returned for the event. When supplied, the update fails if the event changed since it was read.
resource_idstringOpaque event resource ID returned by list_events or get_event. Provide it alone instead of calendar_id and uid.
uidstringiCalendar UID of the event. Provide it together with calendar_id when resource_id is unavailable.

delete_event Delete calendar event

Permanently delete an event or entire recurring series; individual expanded occurrences are not supported. Target it by resource_id or by calendar_id with uid, and supply expected_etag when available to prevent deleting a concurrently changed event.

ParameterTypeDescription
calendar_idstringOpaque calendar ID returned by list_calendars. Provide it together with uid when resource_id is unavailable.
expected_etagstringETag previously returned for the event. When supplied, deletion fails if the event changed since it was read.
resource_idstringOpaque event resource ID returned by list_events or get_event. Provide it alone instead of calendar_id and uid.
uidstringiCalendar UID of the event. Provide it together with calendar_id when resource_id is unavailable.