The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the CalDAV MCP Server listing page.
CalDAV MCP Server is a Model Context Protocol server for managing iCloud Calendar
events, including native support for multiple VALARM reminders on one event.
iCloud Calendar is the only provider officially supported and manually validated in the
first release. The server works with any MCP client that supports stdio or Streamable
HTTP.
This independent project is not affiliated with, authorized, sponsored, or approved by Apple Inc. Apple and iCloud are trademarks of their respective owner.
Install Node.js 24+, create an
Apple app-specific password, and add this
local stdio server to a JSON-configured MCP client such as Claude Desktop or Gemini:
Restart the client and confirm that it lists six calendar tools. See client-specific setup and Docker deployment below. Keep the configuration file private because it contains the app-specific password.
The server connects one configured account to iCloud through CalDAV. It discovers the account's calendars and exposes normalized read and write operations through MCP.
Updates preserve the complete iCalendar resource, including unknown properties, Apple
extensions, VTIMEZONE, recurrence exceptions, and alarms omitted from a patch. Writes
use opaque resource identifiers and ETags instead of assuming that a CalDAV filename
matches an event UID.
Calendar resources are processed in memory. The server has no telemetry and no application database, and raw iCalendar is returned only when explicitly requested.
stdio and Streamable HTTP MCP transports.list_calendarsLists the calendars discovered for the configured account. Each result includes an
opaque calendar_id, display name, description, timezone, and best-effort write status.
list_eventsLists events in a semi-open interval and expands recurring occurrences. The maximum range is 366 days, the default page size is 100, and the maximum page size is 500. Results use a deterministic chronological order. Pagination cursors are opaque and do not represent a snapshot when events are modified during traversal.
Example input:
get_eventReads an event by resource_id, or by a calendar_id and UID pair. Raw iCalendar is
excluded by default and can be requested with include_raw_ical: true for controlled
diagnostics.
create_eventCreates an event and reads back the representation stored by the server.
Timed event with two alarms:
All-day event with an exclusive end date:
Recurring events accept an RFC 5545 rule without the RRULE: prefix:
update_eventPatches an event or complete recurring series. Omitted fields are preserved, null
removes a nullable field, and alarms: [] removes all alarms. An optional
expected_etag prevents overwriting a newer server version.
delete_eventDeletes an event or complete recurring series, optionally requiring an observed ETag. Deleting a single expanded occurrence is not supported in the current release.
npx.package.json.No global install or repository clone is required. MCP clients can launch the latest published package directly:
The command waits for MCP messages on stdin and normally prints nothing to stdout. In
practice, add it to the client configuration as shown in MCP client setup.
For reproducible environments, replace latest with an exact published version such as
X.Y.Z.
The recommended installation uses the published multi-architecture image:
Download the Compose example:
Provide the Apple Account email and app-specific password, then start the service:
To publish a different host port, set:
The latest tag follows the newest stable release. Stable releases also publish an
exact tag such as 0.1.6 and a minor-series tag such as 0.1. The Compose example
pins latest by digest so deployments are reproducible. To upgrade, download the
updated Compose example or replace the full image reference with the desired
published version and digest.
The Streamable HTTP endpoint will be available at:
The host port can change without changing port 8100 inside the container. No
persistent volume is required; calendar data remains in iCloud.
The same hardened container configuration can be started directly:
Building locally is optional. Prefer the published image unless you need to modify or audit the container build.
Builds and typechecks use TypeScript 7. The typescript dependency aliases
@typescript/typescript6 for ESLint, which still requires the TypeScript 6 API;
@typescript/native supplies TypeScript 7’s tsc executable. See the
TypeScript migration guidance.
In stdio mode, stdout is reserved exclusively for MCP messages. To run Streamable HTTP
locally:
All settings use the CALDAV_ or CALDAV_MCP_ prefix.
| Variable | Required | Default | Description |
|---|---|---|---|
CALDAV_PROVIDER | No | icloud | Provider policy. iCloud is the supported profile. |
CALDAV_URL | No | https://caldav.icloud.com | CalDAV discovery URL. |
CALDAV_USERNAME | Yes | None | Apple Account email. |
CALDAV_PASSWORD | Yes | None | App-specific password, not the account password. |
CALDAV_MCP_TRANSPORT | No | stdio | stdio or streamable-http. |
CALDAV_MCP_HOST | No | 0.0.0.0 | HTTP bind address. |
CALDAV_MCP_PORT | No | 8100 | HTTP listening port. |
CALDAV_MCP_LOG_LEVEL | No | INFO | Application log level. |
CALDAV_MCP_REQUEST_TIMEOUT_MS | No | 30000 | CalDAV request timeout. |
The core retains an experimental generic provider policy and configurable URL to keep
Apple extensions isolated from the shared iCalendar implementation. No compatibility
with other providers is currently claimed.
Secrets must be supplied through the deployment platform or environment. Never commit
.env, pass credentials as MCP tool arguments, or include them in diagnostic reports.
Install directly from GitHub and enable automatic extension updates:
Gemini prompts for the username and stores the app-specific password as a sensitive setting. The public extension gallery discovers tagged releases from this repository.
For any MCP client that accepts Streamable HTTP server definitions, configure the URL:
If the client shares the Compose network, use the service name and internal port:
For clients that launch local stdio servers, prefer the npm command from
Quick start. If a desktop client cannot find npx, use the absolute
path reported by command -v npx on macOS/Linux or where npx on Windows.
Add the Quick start JSON under mcpServers in
claude_desktop_config.json, then completely restart Claude Desktop. Open the file
through Settings -> Developer -> Edit Config instead of assuming its location.
Claude Code can add the same stdio server at
user scope:
This command places the values in Claude's MCP configuration. Avoid running it where shell history is shared or retained insecurely.
Codex can add the server to its shared CLI and IDE configuration:
Run codex mcp list to verify it. For finer control, use the
official Codex MCP configuration in
~/.codex/config.toml or a project-scoped .codex/config.toml.
Following the Gemini CLI MCP configuration,
add the server under mcpServers in ~/.gemini/settings.json (user scope) or the
project's .gemini/settings.json:
Claude Desktop launches local stdio servers as subprocesses. Running the published
container this way keeps the app-specific password on the client machine and opens no
network port, which matches the transport guidance in Limitations.
Add the server to claude_desktop_config.json:
-i is required. Without an attached stdin the client cannot speak MCP to the
container. --rm removes the container once the client stops it.
Supply credentials through --env-file rather than -e. Arguments passed to
docker run are visible in the host process list; the contents of an env file are not.
The file holds the variables described in Configuration:
Pin the image by digest instead of latest, so that restarting the client cannot
silently start a different version:
Restart Claude Desktop completely after editing the configuration file.
When Claude Desktop is installed from the Microsoft Store, Windows redirects
%APPDATA%\Claude into the package container and the file lives at:
In that case dir %APPDATA%\Claude reports nothing. Server logs are written next to the
configuration file, in logs\mcp-server-<server-name>.log.
Use the absolute path to docker.exe, because PATH inside the package container is
not reliable. where docker prints it, typically
C:\Program Files\Docker\Docker\resources\bin\docker.exe. Backslashes must be escaped
in JSON.
Configuration formats differ between MCP clients. Consult the client's documentation for its exact schema and reload or restart it after changing the server definition.
Check the container state and logs:
The container should report healthy. The TCP healthcheck validates the server process,
not iCloud credentials.
Run the repository verification suite:
Finally, connect with an MCP client and confirm that all six tools are listed. Before a release, run the dedicated iCloud manual validation against a test calendar.
ACTION:DISPLAY alarms are created.See troubleshooting for discovery, authentication, ETag, and Apple extension guidance. Review SECURITY.md before reporting a security issue or attaching diagnostics.
Contributions are welcome. Before opening a pull request:
Changes to CalDAV writes or iCalendar serialization must preserve ETag checks, opaque
resource boundaries, unknown properties, recurrence exceptions, and alarms omitted from
patches. TypeScript changes must continue to satisfy the rules in
.codex/rules/typescript.md.
Releases are version-driven and automated from main so that a partial registry outage
can be retried without publishing a second npm version.
pnpm release:prepare X.Y.Z. This synchronizes the npm,
MCP Registry, and Gemini metadata.pnpm test:distribution.main.vX.Y.Z tag
automatically before publishing.The release workflow validates the versions, tests the packed npm artifact, and
publishes the exact, minor-series, and latest container tags together with the npm
package, MCP Registry entry, and GitHub release. Prereleases receive only their exact
container tag. Gemini can discover the tagged extension without another per-release
edit. A rerun skips matching artifacts that already exist and resumes the missing
steps. See the container release strategy for the
CI and tagging decisions.
MIT. See LICENSE.