calendar-mcp
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 "Install 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-mcpCreate 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.
calendar-mcp
An MCP server for Apple iCloud Calendar, over CalDAV.
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. |
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 calendar-mcp # stdio
CALENDAR_MCP_TRANSPORT=http uv run calendar-mcp # http on 127.0.0.1:18790To use it from Claude Code over stdio:
claude mcp add calendar -- uv --directory /path/to/calendar-mcp run calendar-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 CALENDAR_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 CALENDAR_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
Four 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.
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for accessing macOS Calendar events2MIT
- AlicenseNot gradedqualityDmaintenanceAn 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.2MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.3116MIT
- AlicenseAqualityBmaintenanceMCP server for Apple Calendar and CalDAV providers. Enables listing, creating, updating, deleting events, and checking free/busy status with per-calendar write protection.86MIT
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Remote MCP server for full read/write access to a Zotero library
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/duanefields/calendar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server