calendar-mcp
This server exposes Apple iCloud Calendar and Contacts over CalDAV/CardDAV through MCP, letting a model read, schedule, and manage events and contacts.
Calendar discovery — List event calendars with IDs, names, and colors.
Event search — List or text-search events by time range and calendar, with recurring events expanded into individually addressable occurrences.
Event management — Create, update, and delete timed, all-day, or recurring events; update or delete a single occurrence or the whole series.
RSVP — Accept, tentatively accept, or decline invitations, including per-occurrence responses for recurring events.
Free-time lookup — Find open slots long enough for a requested duration, honoring working hours, weekends, and what counts as busy (free, cancelled, and declined events excluded; all-day events reported separately).
Contact management — List address books; search contacts by name, email, phone, or organization; create, update, and delete contacts, with emails/phones handled as add/remove deltas.
Real invitations — Adding participants sends actual invitation emails, with per-attendee delivery status reported after the write.
Health monitoring — An unauthenticated
GET /healthendpoint is available when running over HTTP.
Allows interaction with iCloud Calendar, providing tools for managing calendars and events, including creating, updating, deleting, searching, and RSVP'ing to events, as well as finding free time slots.
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., "@calendar-mcp Create a lunch meeting with Alex next Tuesday at noon."
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.
dav-mcp
An MCP server for Apple iCloud Calendar and Contacts, over CalDAV and CardDAV. One Apple ID, one app-specific password, one endpoint.
It exposes the same calendar surface the Fastmail MCP server does — list, search,
create, update, delete, RSVP — so a model that has driven one can drive the other
without relearning field names, plus find_free_time for scheduling. It runs over stdio locally, or over authenticated
HTTP for a remote client such as a Claude connector.
No local app, no EventKit, no AppleScript: it talks to caldav.icloud.com
directly, so it does not need to run on the machine your calendar is synced to,
and it needs none of the macOS privacy grants that an EventKit-based server does.
Tools
Tool | What it does |
| Calendar ids, names and colors. Event calendars only; reminder lists are out of scope. |
| List a period or search it. Recurring events come back expanded, one result per occurrence, each independently addressable. |
| Create a timed, all-day, or recurring event. |
| Change any field. Given an occurrence id, edits that occurrence alone; given the series id, edits the series. |
| Delete an event. Given an occurrence id, cancels that occurrence and leaves the series intact. |
| Respond to an invitation: accepted, tentative or declined. |
| Find openings long enough for something, honoring working hours and what actually counts as busy. |
| Name, email, phone or organization → contacts with every way of reaching them. |
| Add a contact. |
| Change a contact. Emails and phones use add/remove deltas. |
| Remove a contact. |
| Address book ids. Most accounts have exactly one. |
GET /health is served unauthenticated alongside them, for monitoring.
Invitations send real mail
create_event(participants=…), update_event(addParticipants=…/removeParticipants=…)
and rsvp_event all cause iCloud to send iMIP email, immediately and
irrevocably. iCloud advertises calendar-auto-schedule, so it does the sending
itself the moment a PUT lands — this server never touches SMTP and has no way to
recall anything.
Two consequences worth knowing before wiring this to a model:
Any edit to an event that already has guests mails all of them, including a one-word title fix. The tools say so in their replies rather than presenting such an edit as silent.
The organizer address must be one of the account's own calendar-user-addresses. iCloud accepts a PUT naming a foreign organizer and then silently sends nothing, which is indistinguishable from success — so
fromis validated against the account's real identities before writing.Sending is not the same as delivering. After a write that touches participants, the event is re-read and iCloud's per-attendee
SCHEDULE-STATUSis reported: who it reached, and who it did not. An address whose mail server refuses the message comes back5.1, and the tool says so rather than claiming the invitation was sent.
What counts as busy
find_free_time exists because slot arithmetic across a week is exactly what
models get wrong, and because "am I free" is not the same question as "what is
on my calendar". Three kinds of event are deliberately not treated as busy:
Events marked free —
TRANSP:TRANSPARENT, the standard "on my calendar but not occupying me" signal — and cancelled events.Invitations the user declined. Apple leaves them on the calendar, and counting a meeting you refused would block the week with things you are not attending. Not having replied yet still counts as busy.
All-day events. Whether one occupies the day is genuinely ambiguous — a birthday does not, a multi-day trip does — so rather than guess, they are excluded from the arithmetic and listed separately in the reply.
Openings are reported at their full length rather than trimmed to the requested duration: knowing a two-hour gap exists is more useful than being told an hour fits somewhere in it.
Related MCP server: iCloud CalDAV MCP Connector
Setup
Requires Python 3.12+ and uv.
uv sync
cp .env.example .env # then fill in the two credentialsAPPLE_APP_PASSWORD is an app-specific password generated at
appleid.apple.com, not your Apple ID password. A
two-factor account rejects the account password outright.
uv run dav-mcp # stdio
DAV_MCP_TRANSPORT=http uv run dav-mcp # http on 127.0.0.1:18790To use it from Claude Code over stdio:
claude mcp add calendar -- uv --directory /path/to/dav-mcp run dav-mcpConfiguration
Everything is environment variables; nothing is read from .env by the server
itself, which only documents them.
Variable | Default | Meaning |
| — | Apple ID email. Required. |
| — | App-specific password. Required. |
| first writable | Calendar |
| host zone | IANA zone assumed when a caller omits |
|
| CalDAV entry point. |
|
|
|
|
| HTTP bind address. |
|
| HTTP bind port. |
|
|
|
|
|
|
| — | Shared password. Required when |
| — | Public URL; becomes the OAuth issuer. Required when |
|
| Where OAuth state is persisted. |
Set DAV_MCP_DEFAULT_CALENDAR. iCloud does not publish
schedule-default-calendar-URL — it comes back empty — so with nothing
configured the only available tie-break is the order the server happens to list
collections in, which changes the moment you add a calendar to the account.
Authentication
A remote MCP client has one input field: a URL. There is nowhere to put an API
key. So DAV_MCP_AUTH=password starts a self-contained OAuth 2.1
authorization server whose only credential is one shared password — the client
discovers it, registers itself, and gets redirected to a password form.
Dynamic client registration, PKCE, discovery metadata and the 401 challenge
come from FastMCP and the MCP SDK. This project adds the login screen and the
credential check. Registered clients and tokens persist across restarts;
authorization codes and in-flight logins are deliberately memory-only.
Bind to localhost and put a tunnel or reverse proxy in front of it. See docs/deployment-macos.md.
Notes on iCloud
Findings that shaped the implementation, each verified against a live account rather than taken from the spec:
Recurrence is expanded server-side.
calendar-queryhonors<C:expand>, so occurrences arrive individually with their ownRECURRENCE-ID. There is no local expansion and no cache — ranged queries are fast enough not to need one.Text search and time ranges are mutually exclusive. RFC 4791 permits a
prop-filteralongside atime-range, but iCloud silently ignores the text match when both are present, and rejects the reverse order with a412. Soqueryis matched client-side, which also lets it cover descriptions, locations and participants rather than titles alone.RECURRENCE-IDcomes back in UTC whileDTSTARTstays in the event's own zone. Event ids therefore carry the literal server form of the key and only ever round-trip it; the human-readablerecurrenceIdis converted for display.Scheduling is the server's job, not ours.
OPTIONSadvertisescalendar-auto-schedule, so an ORGANIZER plus ATTENDEEs on a PUT is all it takes to send invitations, and changing your ownPARTSTATis all it takes to reply.CardDAV under-reports, where CalDAV over-reported. The address book's
supported-report-setlists onlyaddressbook-multigetandsync-collection— yetaddressbook-queryworks and genuinely filters (1 match out of 913 cards). Believing the advertisement would have meant downloading the whole book to filter locally. The rule for iCloud is to test the behavior, in either direction.A contact card carries far more than any tool surface models — photos, social profiles, related names, Apple's own bookkeeping. So
update_contactmutates the parsed card in place and never rebuilds it from a dict, which would silently delete all of that.Writability is reported differently per protocol: calendars come back with the
write-contentprivilege, address books with plainwrite. Checking only one marks the other read-only and refuses every write.
Development
uv sync --extra test
uv run pytestThe suite is entirely offline — no test touches iCloud. Fixtures reproduce the exact payload shapes iCloud returns, with identities replaced.
For manual verification against a real account, create a scratch calendar and
point calendarId at it. Do not run write experiments against a calendar you
care about.
License
MIT
Available Tools
7 toolscreate_eventA
Create a calendar event. Returns the new event's id.
Use update_event to change an existing event.
Inputs: start (required), title (required), from, color, +8 more.
delete_eventA
Delete a calendar event.
For recurring events, pass an occurrence id to cancel just that occurrence, or the master id to delete the entire series.
Inputs: id (required).
find_free_timeA
Find open slots on the user's calendars that are long enough for something.
Use this to answer "when am I free for X" or to pick a time before calling create_event. To ask what is already scheduled, use search_events instead.
Openings are reported at their full length, not trimmed to 'duration', so a two-hour gap is reported as two hours even when asked for one.
Not counted as busy: events marked free (TRANSP:TRANSPARENT), cancelled events, and invitations the user declined. All-day events are also not counted -- a birthday does not occupy the day -- but any that overlap the search are listed separately so they can be taken into account.
Inputs: duration (required), after, limit, before, +4 more.
list_calendarsA
List the user's calendars.
Returns calendar IDs, names, and colors. Use this to find which calendar to add events to. Only calendars that hold events are listed; reminder lists are not part of this server's surface.
Inputs: no named parameters.
rsvp_eventA
Respond to a calendar event invitation.
Sets your participation status and sends a reply to the organizer.
For a recurring event, pass an occurrence id to respond for that occurrence alone, or the series id to respond to the whole series.
Inputs: id (required), status (required).
search_eventsA
List or search calendar events.
To list a period (e.g. "what's on tomorrow"), pass only 'after'/'before' and omit 'query'. Recurring events are expanded into individual occurrences, so each occurrence has its own ID and can be updated or deleted independently.
Returns full details including title, start, duration, time zone, description, locations, participants with RSVP status, and recurrence info.
Inputs: after, limit, query, before, +1 more.
update_eventA
Update an existing calendar event.
Use create_event for new events. Only specified fields are changed. For recurring events, pass an occurrence ID (from search_events) to modify just that single occurrence, or the master ID to change the whole series.
Inputs: id (required), from, color, start, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinct purpose. list_calendars handles calendar metadata, search_events and find_free_time are clearly separated (scheduled events vs open slots), and CRUD operations plus RSVP are all unique. No overlapping or ambiguous tools.
All tools use snake_case with a consistent verb_noun pattern: list_calendars, create_event, search_events, find_free_time, update_event, rsvp_event, delete_event. The naming is predictable and uniform.
7 tools is well-scoped for a calendar server. The count covers essential operations without bloat, each tool earning its place in the surface.
The surface provides full lifecycle coverage: create, read (search), update, delete, plus calendar enumeration, free-time discovery, and event RSVP. No critical operations are missing for typical calendar workflows.
Maintenance
Related MCP Connectors
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
Read and send iCloud Mail, manage iCloud Calendar. Needs an approved account at icloud.mcp.visin.ch.
A MCP server that works with Google Calendar to manage event listing, reading, and updates.
A MCP server that works with Outlook Calendar to manage event listing, reading, and updates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for accessing macOS Calendar events2MIT
- 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
- AlicenseNot gradedqualityDmaintenanceMCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.24 npm22MIT
- 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