caldav-mcp is an MCP (Model Context Protocol) server whose purpose is to let AI agents connect to any CalDAV calendar and read and manage the events and tasks in it. It can connect to one or more CalDAV accounts and is compatible with CalDAV servers such as Nextcloud, Radicale, and iCloud (events only).
Main capabilities:
- Connect to a CalDAV server and list calendars (returning names and absolute URLs).
- List events within a specified time range; create, update, and delete events (by UID).
- List tasks (VTODO), by default returning only incomplete tasks, with optional filtering by status; create and update tasks, with due time and start time configurable; mark tasks as completed; delete tasks by UID.
- Events support fields such as all-day events, recurrence rules, reminders, organizer, attendees, and free/busy status.
- Supports configuring multiple CalDAV accounts, each using its own URL and credentials; list_calendars lists the calendars of all accounts and indicates which account each belongs to.
Usage:
- Add an mcpServers entry to the MCP client configuration, fill in the CalDAV server URL and credentials, and start it via npx over stdio.
- Multiple accounts are configured via CALDAV_ACCOUNTS and CALDAV_<NAME>BASE_URL, CALDAV<NAME>USERNAME, CALDAV<NAME>_PASSWORD; once CALDAV_ACCOUNTS is set, the regular CALDAV_BASE_URL, CALDAV_USERNAME, and CALDAV_PASSWORD are ignored.
- Supports two transports: stdio (default, JSON-RPC over stdin/stdout) and Streamable HTTP (--http, with remote clients connecting via POST /mcp, and GET /health for health checks).
- In HTTP mode, environment variables such as MCP_HOST, MCP_PORT, and MCP_AUTH_TOKEN can be set; MCP_AUTH_TOKEN must be set when binding to a non-loopback address.
- A Docker image is provided, suitable for hosting the HTTP-transport MCP server as a long-running container; the image binds to 0.0.0.0:3000, and MCP_AUTH_TOKEN must be set.
Use cases: letting AI agents help users view schedules, arrange meetings, manage to-dos, and operate calendars across multiple CalDAV accounts in a unified way.
Limitations and security considerations:
- Anyone who can use this server (in HTTP mode, anyone holding the token) can read and modify the calendars of all configured accounts.
- The server uses plaintext HTTP; remote access should be placed behind a reverse proxy that terminates TLS.
- Requests with an Origin header are rejected, and CORS is not supported, so browser clients cannot connect directly.
- When binding to a loopback address, only Host headers of localhost / 127.0.0.1 / [::1] are accepted, to prevent DNS rebinding.
- When updating an event with attendees, attendees are rewritten as bare addresses, losing names and participation status.
- iCloud supports events only, not tasks.port MCP server; the image binds to 0.0.0.0:3000, and MCP_AUTH_TOKEN must be set.
Use cases: letting AI agents help users view schedules, arrange meetings, manage to-dos, and operate calendars across multiple CalDAV accounts in a unified way.
Limitations and security considerations:
- Anyone who can use this server (in HTTP mode, anyone holding the token) can read and modify the calendars of all configured accounts.
- The server uses plaintext HTTP; remote access should be placed behind a reverse proxy that terminates TLS.
- Requests with an Origin header are rejected, and CORS is not supported, so browser clients cannot connect directly.
- When binding to a loopback address, only Host headers of localhost / 127.0.0.1 / [::1] are accepted, to prevent DNS rebinding.
- When updating an event with attendees, attendees are rewritten as bare addresses, losing names and participation status.
- iCloud supports events only, not tasks.