iCloud CalDAV MCP
Provides access to iCloud calendars via CalDAV, enabling an AI operator to manage events, calendars, and perform free/busy lookups.
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., "@iCloud CalDAV MCPlist my 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 CalDAV MCP
A production-oriented FastMCP server that gives an AI calendar
operator full iCloud Calendar access through CalDAV. It exposes Streamable HTTP at /mcp and
requires a separate bearer key on every HTTP request.
Security model
The two authentication layers are intentionally independent:
MCP_API_KEYprotects the public MCP endpoint. Poke sends it asAuthorization: Bearer <MCP_API_KEY>.ICLOUD_USERNAMEandICLOUD_APP_PASSWORDauthenticate this server to Apple CalDAV.
Never use your normal Apple ID password. Apple requires two-factor authentication before you can create an app-specific password. Create one at account.apple.com under Sign-In and Security → App-Specific Passwords. Rotate both secrets immediately if they are exposed.
Configuration precedence is process environment, then .env, then documented defaults. The
server exits before binding if any required secret is absent. Secret values are never logged or
returned by tools.
Related MCP server: iCloud CalDAV MCP Connector
Local setup
Python 3.11 or newer and uv are recommended.
cp .env.example .env
# Edit .env and replace every placeholder.
uv sync --all-extras
uv run icloud-caldav-mcpThe server binds to 0.0.0.0:${PORT:-8000}. Its MCP URL is:
http://localhost:8000/mcpExact development checks:
uv run ruff format --check .
uv run ruff check .
uv run mypy src
uv run pytest
./scripts/inspector_smoke.shTests marked integration launch an ephemeral Radicale process bound only to loopback. They never
contact iCloud. When real ICLOUD_* credentials are present, the separately selected manual smoke
test can verify Apple discovery without modifying events:
RUN_ICLOUD_SMOKE=1 uv run pytest -m icloud -vConnect Poke
Poke requires a public HTTPS endpoint. In Poke, create a custom MCP connection with:
URL:
https://<your-host>/mcpHeader:
Authorization: Bearer <the exact MCP_API_KEY value>Transport: Streamable HTTP
Do not put the Apple credentials in Poke; only this server needs them.
Docker
One-command build and run after creating .env:
docker build -t icloud-caldav-mcp . && docker run --rm --env-file .env -p 8000:8000 icloud-caldav-mcpThe image runs as an unprivileged user and listens on PORT.
HTTPS deployment
For a hosted service, deploy the Dockerfile to Render, Fly.io, Railway, Cloud Run, or another
container platform; configure the three required secrets in that platform's secret manager and
set its internal port to 8000. The platform terminates TLS, yielding
https://<service-host>/mcp.
For a temporary local endpoint, run the server and a reputable HTTPS tunnel such as Cloudflare Tunnel:
cloudflared tunnel --url http://localhost:8000Append /mcp to the generated HTTPS hostname. Treat an ephemeral tunnel URL and its bearer key as
production credentials; stop the tunnel and rotate the key when finished.
Environment variables
Variable | Required | Default | Purpose |
| yes | — | Bearer credential protecting every HTTP request |
| yes | — | Apple ID email |
| yes | — | Apple app-specific password |
| no |
| CalDAV origin; override only for local testing |
| no |
| HTTP listen port |
| no |
| IANA timezone used when a tool omits one |
| no |
| Structured log threshold |
Tool safety conventions
Mutations return the event UID, opaque calendar ID, and exactly what changed. Deletions require
the UID and explicit scope. Datetimes are ISO 8601; timed values without an offset are interpreted
in the supplied timezone, while all-day values are calendar dates with an exclusive end date.
Conflict warnings are advisory and do not silently reject a requested mutation.
The server exposes 21 tools: calendar list/create/update/delete; event create/get/list/agenda,
search/update/edit/delete/move; invite response; free/busy and free-slot finding; quick-add; ICS
import/export; and safe batch create/delete. Create requests support stable idempotency keys, and
updates support expected SEQUENCE checks to prevent lost concurrent edits.
iCloud behavior
Apple can redirect discovery from caldav.icloud.com to a partition host such as
pXX-caldav.icloud.com. The client follows principal and calendar-home-set discovery and keeps the
canonical URLs Apple returns. Calendar permissions and server-side scheduling behavior remain
subject to the iCloud account and calendar sharing configuration.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/simonfalke-01/caldav-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server