# iCloud Calendar (CalDAV) [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/Glob0x17/mcp-icloud-caldav  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/icloud-calendar-caldav

## Description
iCloud Calendar over CalDAV: list, create, update, move and delete events. Optional read-only mode.

## Tools
Capabilities this server exposes over MCP:

- **list_calendars** — List all available calendars.
- **list_events** — List calendar events in a date range.

    The start_date should always use the time such that it represents the beginning of that day (00:00:00).
    The end_date should always use the time such that it represents the end of that day (23:59:59).
    This way, range based searches are always inclusive and can locate all events in that date range.

    Args:
        start_date: Start date in ISO8601 format (YYYY-MM-DDT00:00:00).
        end_date: Optional end date in ISO8601 format (YYYY-MM-DDT23:59:59).
        calendar_name: Optional calendar name to filter by
    
- **debug_calendar_connection** — Debug calendar connection and provide detailed diagnostic information.

    This tool helps diagnose why events might not be showing up.
    It will test:
    1. CalDAV connection status
    2. Calendar accessibility
    3. Event search capabilities
    4. Recent events count
    
- **create_event** — Create a new calendar event.

    Before using this tool, make sure to:
    1. Ask the user which calendar they want to use if not specified (check calendars://list)
    2. Ask if they want to add a location if none provided
    3. Ask if they want to add any notes/description if none provided
    4. Confirm the date and time with the user
    5. Ask if they want to set reminders for the event

    Args:
        title: Event title
        start_time: Start time in ISO format (YYYY-MM-DDTHH:MM:SS)
        end_time: End time in ISO format (YYYY-MM-DDTHH:MM:SS)
        notes: Optional event notes/description. Ask user if they want to add notes.
        location: Optional event location. Ask user if they want to specify a location.
        calendar_name: Optional calendar name. Ask user which calendar to use, referencing calendars://list.
        all_day: Whether this is an all-day event
        reminder_offsets: List of minutes before the event to trigger reminders            e.g. [60, 1440] means two reminders, the first 24 hours before the event and the second one hour before.
        recurrence_rule: Optional recurrence rule for the event. This should be an instance of `RecurrenceRule` with the following fields:
            - frequency: Frequency of the recurrence (e.g., DAILY, WEEKLY, MONTHLY, YEARLY).
            - interval: Interval between recurrences (e.g., every 2 weeks).
            - end_date: Optional end date for the recurrence. If specified, the recurrence will stop on this date.
            - occurrence_count: Optional number of occurrences. If specified, the recurrence will stop after this many occurrences.
            - days_of_week: Optional list of weekdays for the event. Use integers to represent days:
                - Sunday: 1
                - Monday: 2
                - Tuesday: 3
                - Wednesday: 4
                - Thursday: 5
                - Friday: 6
                - Saturday: 7

    Note: Both `end_date` and `occurrence_count` should not be set simultaneously; choose one or the other, or leave both unset.
    
- **update_event** — Update an existing calendar event.

    Before using this tool, make sure to:
    1. Ask the user which fields they want to update
    2. If moving to a different calendar, verify the calendar exists using calendars://list
    3. If updating time, confirm the new time with the user
    4. Ask if they want to add/update location if not specified
    5. Ask if they want to add/update notes if not specified
    6. Ask if they want to set reminders for the event

    Args:
        event_id: Unique identifier of the event to update
        title: Optional new title
        start_time: Optional new start time in ISO format
        end_time: Optional new end time in ISO format
        notes: Optional new notes/description. Ask user if they want to update notes.
        location: Optional new location. Ask user if they want to specify/update location.
        calendar_name: Optional new calendar. Ask user which calendar to use, referencing calendars://list.
        all_day: Optional all-day flag
        reminder_offsets: List of minutes before the event to trigger reminders            e.g. [60, 1440] means two reminders, the first 24 hours before the event and the second one hour before.
        recurrence_rule: Optional recurrence rule for the event. This should be an instance of `RecurrenceRule` with the following fields:
            - frequency: Frequency of the recurrence (e.g., DAILY, WEEKLY, MONTHLY, YEARLY).
            - interval: Interval between recurrences (e.g., every 2 weeks).
            - end_date: Optional end date for the recurrence. If specified, the recurrence will stop on this date.
            - occurrence_count: Optional number of occurrences. If specified, the recurrence will stop after this many occurrences.
            - days_of_week: Optional list of weekdays for the event. Use integers to represent days:
                - Sunday: 1
                - Monday: 2
                - Tuesday: 3
                - Wednesday: 4
                - Thursday: 5
                - Friday: 6
                - Saturday: 7

    Note: Both `end_date` and `occurrence_count` should not be set simultaneously; choose one or the other, or leave both unset.
    
- **delete_event** — Delete a calendar event by its identifier.

    Before using this tool, make sure to:
    1. Confirm with the user that they want to delete the event
    2. Verify the event exists by listing events first
    3. Note that this action cannot be undone

    Args:
        event_id: Unique identifier of the event to delete
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "icloud-calendar-caldav": {
    "command": "uvx",
    "args": ["mcp-icloud-caldav"],
    "env": {
      "ICLOUD_USERNAME": "",
      "ICLOUD_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `ICLOUD_USERNAME`, `ICLOUD_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What iCloud Calendar (CalDAV) does

The iCloud Calendar (CalDAV) MCP server exposes iCloud-hosted calendars to MCP clients. It can list available calendars, retrieve events within a date range, create events, modify event details, move events between calendars, and delete events. Event fields include titles, start and end times, all-day status, locations, notes, URLs, alarms, and recurrence settings.

A connection diagnostic tool reports the available calendars and event counts from the previous seven days. The `calendars://list` resource provides another way to retrieve calendar names. Only calendars hosted in iCloud are included; calendars from Exchange, Google, other accounts, and subscribed read-only ICS calendars are outside its scope.

## How it works

The server communicates directly with iCloud's CalDAV endpoint rather than using the Calendar application on macOS. It uses MCP over stdio, so the MCP client starts the process and exchanges protocol messages through standard input and output. Logs are written to stderr, leaving stdout for MCP traffic.

Event times are stored in UTC. Inputs with an explicit offset are converted accordingly, while timezone-less inputs use the machine's local timezone. Returned times are shown in that local timezone. All-day events use dates, with an exclusive end date as required by iCalendar.

Event listings create an in-memory UID-to-URL index for the lifetime of the process. Subsequent lookups use that index, then common iCloud event URLs, and finally scan calendars when necessary. Long date ranges may need to be divided because MCP clients often limit the size of tool results.

## Setup and configuration

The iCloud Calendar (CalDAV) MCP server requires Python 3.12 or newer, `uv`, an Apple ID with iCloud Calendar enabled, and an Apple app-specific password. The package can be launched with `uvx mcp-icloud-caldav`, installed as a persistent uv tool, or run from a source checkout.

Set `ICLOUD_USERNAME` to the Apple ID address and `ICLOUD_PASSWORD` to the app-specific password. `CALDAV_SERVER_URL` optionally changes the CalDAV endpoint and defaults to `https://caldav.icloud.com/`. Credentials can also be supplied through the `MCP_ICAL_CONFIG` JSON-file path or legacy repository configuration files.

Set `MCP_ICAL_READ_ONLY=true` to omit the create, update, and delete tools entirely. `MCP_ICAL_LOG_LEVEL` controls stderr logging and defaults to `INFO`. Keep the app-specific password out of source control and consider using a wrapper that loads it from a protected environment file.

When configuring a client, provide `uvx` as the command and `mcp-icloud-caldav` as its separate argument. If the client cannot locate `uvx`, use its absolute path. The README provides setup commands for Claude Desktop and Claude Code; other clients that can launch stdio MCP servers can use the same command and environment variables.

## Tools and capabilities

Available tools are:

- `list_calendars`: returns the names of available calendars.
- `list_events`: lists events in a date range, optionally restricted to one calendar, sorted by start time.
- `create_event`: creates an event with supported calendar fields.
- `update_event`: changes event fields or moves an event to another calendar.
- `delete_event`: removes an event by identifier.
- `debug_calendar_connection`: checks the connection and reports calendars and recent event counts.

Moving an event uses a CalDAV WebDAV `MOVE` operation. This avoids leaving duplicate UIDs across calendars and keeps the original event in place if the move fails.

## Limitations and notes

The iCloud Calendar (CalDAV) MCP server cannot access calendars that are not hosted by iCloud. iCloud does not provide CalDAV UID search, so lookups may require fallback scanning. Large result sets can exceed client token limits; splitting broad date ranges is recommended.

Write access is enabled by default unless read-only mode is selected. The configured CalDAV server is the only network destination, and the project states that it collects no telemetry. Passwords are excluded from logs, although event contents may appear at `DEBUG` level, and some clients save stderr to disk.

_Full upstream README: https://allmcps.com/mcp/icloud-calendar-caldav/readme_

