CalDAV MCP Forwarder
Enables interaction with iCloud's CalDAV server for managing calendars and events, supporting discovery, creation, updating, deletion, and free/busy queries.
Enables interaction with Nextcloud's CalDAV server for managing calendars and events, supporting discovery, creation, updating, deletion, and free/busy queries.
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., "@CalDAV MCP ForwarderWhat events do I have tomorrow?"
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.
CalDAV MCP Forwarder
A completely stateless Model Context Protocol server that forwards calendar operations to a CalDAV server from Cloudflare Workers.
Source code and deployment guidance are available in the GitHub repository.
Status: Functional first release. The Worker supports calendar discovery, event listing/search, event retrieval, creation, updates, deletion, and free/busy queries.
Connect in three steps
Open
https://caldavmcp.anpc.workin a browser.Enter your CalDAV server, username, and app password, then click Test connection. Leave Calendar URL blank to discover calendars automatically.
Choose a default calendar if desired, create the secure token, then copy the generated MCP URL or configuration into your AI assistant.
The public page creates encrypted tokens with no expiration by default for a set-and-forget connection. You can optionally choose a shorter lifetime. Credentials are sent over HTTPS to the Worker for encryption and are never decoded in the browser. Rotate CONNECTION_TOKEN_KEY if tokens need to be revoked.
The assistant can list, search, read, create, update, and delete events, and query free/busy information. Every request is independent; no calendars, credentials, or sessions are stored.
Related MCP server: mcp-labrat
Security model
Do not place raw passwords, app passwords, or access tokens directly in a URL. URLs may be retained by browser history, reverse proxies, analytics systems, and access logs.
Connection tokens are encrypted AES-GCM values:
POST https://caldavmcp.anpc.work/mcp/<encrypted-connection-token>The token represents connection details such as:
{
"serverUrl": "https://caldav.example.com",
"calendarUrl": "https://caldav.example.com/calendars/user/work/",
"username": "user@example.com",
"password": "app-password",
"expiresAt": 1797700000
}The Worker decrypts each token for one request and discards the connection details afterward. Tokens do not expire unless an expiration is selected when creating them; rotate CONNECTION_TOKEN_KEY to revoke all tokens created with the previous key. Event and free/busy URLs must belong to the configured CalDAV server. Configure it as a Worker secret. The key must be URL-safe base64 containing a 128-, 192-, or 256-bit AES key.
Prefer provider-specific app passwords or OAuth access tokens over a primary account password. Never commit tokens or credentials to this repository.
Connecting an MCP client
After deploying the Worker, configure your MCP client with the Worker URL. The exact configuration varies by client, but the endpoint is:
https://caldavmcp.anpc.work/mcp/<encrypted-connection-token>For an MCP client configuration that accepts a remote HTTP server, use the endpoint as the server URL. For example:
{
"mcpServers": {
"caldav": {
"type": "http",
"url": "https://caldavmcp.anpc.work/mcp/<encrypted-connection-token>"
}
}
}Do not paste the example token above into a real client. Replace it with a token generated for the intended CalDAV account and calendar.
The assistant will be able to call tools such as:
list_calendarslist_eventssearch_eventsget_eventcreate_eventupdate_eventdelete_event
Example requests an assistant could handle:
“What is on my work calendar tomorrow?”
“Create a dentist appointment next Tuesday at 10:00.”
“Move my 3 PM meeting to Friday.”
“Cancel the event titled ‘Project review’.”
“Find all events mentioning the quarterly planning meeting.”
The assistant should confirm important destructive actions, especially event deletion, before calling the corresponding tool.
Tool output format
Tool responses use compact JSON with only information needed for the next action:
Calendar lists contain
url, plus availabledisplayName,description,timezone, andcolor.Event lists and
get_eventcontainurl, optionaletag, and the current iCalendardata.create_eventreturns the created eventurl.update_eventreturns the updated eventurl.delete_eventreturns the deleted eventurlanddeleted: true.get_free_busyreturns only the free/busy iCalendardata.
Responses do not include HTTP status codes, raw CalDAV metadata, or presentation formatting.
Deployment
Install dependencies:
npm installRun the Worker locally:
npm run devType-check the project:
npm run typecheckRun unit tests
npm test
Run tests with coverage
npm run coverage
Coverage thresholds are enforced at 90% for statements, lines, and functions,
and 85% for branches. The current unit-testable source modules report 100% in
all four categories. The Cloudflare Worker entrypoint is excluded because it
requires the Workers runtime and external CalDAV services; validate it with a
deployed or wrangler dev smoke test.
Deploy to Cloudflare Workers:
npx wrangler login
npm run deployThe Worker is configured as a Cloudflare Custom Domain at
caldavmcp.anpc.work. Wrangler creates the domain and certificate when the
zone is active in the same Cloudflare account. Set the required secret before
deploying:
npx wrangler secret put CONNECTION_TOKEN_KEY
npm run deployThe domain must be active in Cloudflare DNS. Do not add a conflicting CNAME
record for caldavmcp.anpc.work; Custom Domains manage the DNS record.
Set the encryption key as a Cloudflare Worker secret:
npx wrangler secret put CONNECTION_TOKEN_KEYFor local development, create .dev.vars from .dev.vars.example and replace
the placeholder with a generated key. Wrangler loads .dev.vars automatically
when running npm run dev; do not commit that file.
cp .dev.vars.example .dev.vars
openssl rand -base64 32 | tr '+/' '-_' | tr -d '='Never put the encryption key in wrangler.jsonc, source code, or client configuration.
Available tools
All tools operate on the calendar selected by calendarUrl in the token, or accept an explicit calendarUrl where appropriate.
Tool | Purpose |
| Discover calendars in the account. |
| List events for a required |
| Search event data by text. Without |
| Fetch an event by its object URL. |
| Create an event with summary, start, and end. |
| Update an event using its current iCalendar data and object URL. |
| Delete an event, optionally supplying its ETag. |
| Query free/busy data for a time range. |
Dates should be ISO 8601 strings, for example 2026-08-20T10:00:00Z. Event updates require the current iCalendar data so unknown provider-specific properties are preserved.
Tool behavior for agents
Call
list_calendarsfirst when the available calendar URLs are unknown.list_eventsandsearch_eventsrequirestartandend. An explicitcalendarUrlselects one calendar. Without it, the token's configured calendar is used; if none is configured, all calendars are searched.search_eventsperforms a case-insensitive text search over each event's iCalendar data, not only the event title.get_eventrequires the event's current HTTPS object URL.create_eventrequiressummary,start, andend; calendar selection is explicit URL, token calendar, then the first available calendar.update_eventrequires the current eventdata; send only fields that should change because omitted fields are preserved.delete_eventpermanently removes an event. Confirm the deletion with the user first, and pass the current ETag when available.get_free_busyreturns iCalendar free/busy data for the requested range and does not list event details.
Stateless request flow
MCP client
|
| POST /mcp/<encrypted-token>
v
Cloudflare Worker
| decrypt token in memory
| create request-scoped CalDAV client
| perform one operation
| discard credentials and response data
v
CalDAV serverNo calendar data or MCP session state is retained by this Worker. The request body, credentials, and CalDAV response exist only during the request.
Provider notes
CalDAV implementations differ. You may need an app password or provider-specific endpoint:
Nextcloud: usually supports app passwords and calendar collection URLs.
Fastmail: use an app-specific password and the CalDAV endpoint provided by Fastmail.
iCloud: generally requires an app-specific password and the account’s CalDAV endpoint.
Google Calendar: native CalDAV support is limited; use Google’s API instead if CalDAV compatibility is insufficient.
Always test calendar discovery, recurring events, time zones, attendees, ETags, and deletion behavior with the target provider.
Technology
Cloudflare Workers
TypeScript
@modelcontextprotocol/sdktsdavical.jszod
Limitations
The service forwards requests and does not become a calendar synchronization service. It does not maintain a local event index, deduplicate events across calendars, or queue work for later execution. If a CalDAV provider is unavailable, the request fails without being retried from persistent storage.
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.
Related MCP Servers
- Alicense-qualityAmaintenanceAn MCP server that exposes CalDAV calendar operations as tools for AI assistants. It enables users to connect to CalDAV servers to create and list calendar events within specific timeframes.37897MIT
- Flicense-qualityDmaintenanceAn MCP server that enables interaction with CalDAV calendars to manage events and check availability through natural language or voice commands. It provides specific tools for listing, searching, and creating calendar entries using an OpenAI-compatible interface.
- Alicense-qualityFmaintenanceProvider-agnostic CalDAV calendar MCP server that connects any CalDAV calendar to AI assistants, enabling calendar operations like listing, creating, updating, and deleting events.AGPL 3.0
- 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.
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
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/Isaac-To/caldav_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server