CalDAV MCP Server
Enables managing calendars, events, contacts, and todos via a CalDAV server (Radicale) through MCP tools.
README
Calendar Server
This repo runs a real CalDAV server with Docker Compose and connects MCP clients through an existing CalDAV MCP server.
Stack:
- CalDAV: Radicale in Docker using
ghcr.io/kozea/radicale:3.7.6 - MCP HTTP:
dav-mcpin Docker, built frommcp/Dockerfile - Public access: Cloudflare Tunnel / Zero Trust
Requirements
- Docker Desktop or Docker Engine with Compose
- Node.js 20 or newer for
npxMCP usage cloudflaredfor Cloudflare Tunnel
Configure
cp .env.example .env
Edit .env:
CALDAV_PORT=5232
CALDAV_BASE_URL=http://127.0.0.1:5232
CALDAV_PUBLIC_URL=https://calendar.example.com
CALDAV_USER=calendar
CALDAV_PASSWORD=use-a-long-random-password
MCP_PORT=3000
MCP_BEARER_TOKEN=use-a-long-random-token
CALDAV_USER and CALDAV_PASSWORD are written into Radicale's htpasswd file when the container starts. Restart the container after changing them.
Start Radicale
docker compose up -d
If you want to use Apple Calendar locally, export and trust Caddy's local HTTPS CA:
npm run export:caddy-ca
npm run trust:caddy-ca
Create the initial calendar collection:
npm run create:default-calendar
Logs:
docker compose logs -f radicale
Stop:
docker compose down
Local CalDAV server:
http://127.0.0.1:5232/
Local HTTPS CalDAV proxy for Apple Calendar:
https://localhost:8443/
Default calendar URL:
http://127.0.0.1:5232/<CALDAV_USER>/default/
Apple Calendar
Use Other CalDAV Account with account type Advanced:
- Account type:
Advanced - User name: value of
CALDAV_USER - Password: value of
CALDAV_PASSWORD - Server address:
127.0.0.1 - Server path:
/<CALDAV_USER>/ - Port: value of
CALDAV_PORT, usually5232 - Use SSL: off
- Use Kerberos: off
For your current .env values:
User name: coretracker
Server address: localhost
Server path: /coretracker/
Port: 8443
Use SSL: on
The calendar itself is at /<CALDAV_USER>/default/, but Apple Calendar should be pointed at the user collection /<CALDAV_USER>/ so it can discover the calendar home. Do not put https://... into Server Address in Advanced mode; use the host only.
If Apple logs anonymous user over plain HTTP, use the HTTPS Caddy endpoint above. Recent macOS builds may refuse to send Basic Auth credentials over plain HTTP even to localhost.
Before retrying Apple Calendar, verify Basic Auth from the terminal:
npm run check:auth
If Radicale logs only say anonymous user, Apple Calendar has not sent the username/password yet. Remove the failed account, delete saved Calendar/CalDAV passwords for the same host from Keychain Access, then add the account again with the fields above.
After Cloudflare is configured, use:
https://calendar.example.com/
Some Apple Calendar versions do not work well behind browser-based Cloudflare Access. Test local CalDAV first. If local works but the Cloudflare URL fails, use a Cloudflare Access service token or bypass Access for trusted client traffic.
HTTP MCP Setup
The Docker Compose stack runs an HTTP MCP server at:
http://127.0.0.1:<MCP_PORT>/mcp
With the current .env, that is:
http://127.0.0.1:9996/mcp
Use bearer authentication:
Authorization: Bearer <MCP_BEARER_TOKEN>
Generate a local MCP client config from .env:
npm run write:mcp-config
That writes mcp.local.json, which is ignored by git because it contains the bearer token.
Smoke test the HTTP MCP endpoint:
npm run smoke:mcp
The MCP container talks to Radicale internally at http://radicale:5232, so it does not need the local Caddy HTTPS certificate.
Logs:
npm run logs:mcp
Expected MCP tools include calendar, event, contact, and todo operations from dav-mcp.
Cloudflare Zero Trust Setup
Create a tunnel:
cloudflared tunnel login
cloudflared tunnel create calendar
Create ~/.cloudflared/config.yml:
tunnel: <TUNNEL_ID>
credentials-file: /Users/<you>/.cloudflared/<TUNNEL_ID>.json
ingress:
- hostname: calendar.example.com
service: http://127.0.0.1:5232
- service: http_status:404
Route DNS:
cloudflared tunnel route dns calendar calendar.example.com
Run the tunnel:
cloudflared tunnel run calendar
In Cloudflare Zero Trust:
- Go to Access -> Applications -> Add an application.
- Choose Self-hosted.
- Set the application domain to
calendar.example.com. - Add an access policy for your user or device.
- Save the application.
CalDAV clients still use Radicale Basic Auth with CALDAV_USER and CALDAV_PASSWORD.
Notes
- Calendar data is stored in
radicale/data/. - The Radicale config is in
radicale/config/config. - The Docker Compose file binds Radicale only to
127.0.0.1, so it is not exposed directly to the LAN. - The htpasswd file uses plain text inside the local Docker volume because Radicale runs behind localhost binding and Cloudflare Access. Use filesystem permissions and full-disk encryption on the host.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。