
Dav Mcp
io.github.PhilflowIO由 GitHub 账号 PhilflowIO 发布v5.1.2更新于 Nov 19, 2026
AI-orchestrated calendars, contacts & tasks across any DAV platform. 27 tools, field-agnostic.
概览
本地 MCP 服务器,通过 27 个工具让助手管理任意 CalDAV/CardDAV 服务器上的日历、联系人和任务。
- 可以做什么
- 列出、创建、更新和删除日历,包括名称、颜色和时区。
- 搜索、创建、更新、移动和删除事件,并支持批量获取与空闲/忙碌查询。
- 列出、搜索、创建、更新和删除通讯录中的联系人,包括自定义字段。
- 列出、搜索、创建、更新和删除待办事项,含截止日期、优先级和状态。
- 用服务端过滤条件查询事件、联系人和任务,而不是拉取全部数据。
- 适用场景
- 适合让助手回答日程问题、创建或调整会议、查询联系人信息,或在已有的 CalDAV/CardDAV 账户(如 Nextcloud、Fastmail、iCloud、Google 日历)中跟踪任务。
- 运行要求
- 以 npm 包形式在本地运行,需要 Node.js 22 或更高版本,或使用打包的桌面安装包。需要 DAV 服务器地址、用户名以及密码或应用专用密码;Google 日历使用 OAuth,需要客户端 ID、客户端密钥和刷新令牌。HTTP 模式还要求至少 32 个字符的 BEARER_TOKEN。
安装
在 SourceWeft 中
- 打开 控制台中的 Dav Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
dav-mcp
Give your AI agents the power of organization — Transform them into orchestrating assistants managing calendars, contacts, and tasks.
Built on 27 production-ready tools spanning CalDAV, CardDAV, and VTODO protocols.
Quick Start
Claude Code plugin
In Claude Code, run:
Claude Code then asks for your server URL, username and password. The plugin also brings a skill that teaches Claude to use the tools well. Details are in the plugin README.
One-click install (Claude Desktop)
- Download
dav-mcp-<version>.mcpbfrom the latest release. Releases from 4.1.2 on carry this file. - Open it with Claude Desktop (macOS or Windows). Claude shows an install dialog.
- Enter your server URL, username and password. The password is stored as a secret. Leave the authentication method at
Basicunless your server needsDigest.
The .mcpb file is an MCP Bundle: the server with its dependencies, so neither Node.js nor npx needs to be installed.
Claude Desktop / Cursor (Local)
Add to your MCP config file:
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after adding the configuration.
n8n (Remote HTTP)
Start the HTTP server:
BEARER_TOKEN is required and must be at least 32 characters; the server
refuses to start with a shorter one or with the example value from
.env.example. Keep the generated value, n8n needs it.
Then in n8n:
- Add AI Agent node
- Add MCP Client Tool node and connect to AI Agent
- Configure:
- MCP Endpoint:
http://localhost:3000/mcp - Authentication: Bearer
- Token: the
BEARER_TOKENvalue
- MCP Endpoint:
Custom port:
Listen address: the server listens on every interface unless HOST (or
--host=) names one. When n8n runs on the same machine, keep it off the
network:
HOST takes an IP address or localhost; the address in use is logged at
startup.
Docker
Pull the published image (distroless, runs as non-root, no shell):
Tags: latest, the exact release (5.1.0) and the minor line (5.1).
Set PORT to serve on a different port; the healthcheck follows it. Leave
HOST unset in the container: the port mapping needs the server on every
interface of the container.
Or build from source:
The Orchestration
When partial tools force your AI to improvise, complete tools let it execute precise operations across all components.
Available Tools (27 Total)
CalDAV Tools (12 tools)
- list_calendars - List all available calendars
- list_events - List ALL events (use calendar_query for filtered searches)
- create_event - Create a new calendar event
- update_event - PREFERRED: Update any event field (SUMMARY, LOCATION, STATUS, custom X-* properties); move or convert an event with start_date/end_date/all_day
- update_event_raw - Update event with raw iCal data (advanced)
- delete_event - Delete an event permanently
- calendar_query - PREFERRED: Search and filter events efficiently by text, date range, or location
- make_calendar - Create a new calendar collection, optionally with a time zone (an IANA name such as
Europe/Berlin, sent as a VTIMEZONE) - update_calendar - Update calendar properties (display name, description, color, time zone)
- delete_calendar - Delete a calendar and all its events
- calendar_multi_get - Batch fetch multiple specific events by URLs
- freebusy_query - Find free and busy time in a range ("when am I free?"), calculated client-side
CardDAV Tools (8 tools)
- list_addressbooks - List all available address books
- list_contacts - List ALL contacts (use addressbook_query for filtered searches)
- create_contact - Create a new contact (vCard)
- update_contact - PREFERRED: Update any contact field (FN, EMAIL, TEL, ORG, ADR, custom X-* properties)
- update_contact_raw - Update contact with raw vCard data (advanced)
- delete_contact - Delete a contact permanently
- addressbook_query - PREFERRED: Search and filter contacts efficiently by name, email, or organization
- addressbook_multi_get - Batch fetch multiple specific contacts by URLs
VTODO Tools (7 tools)
- list_todos - List ALL todos/tasks (use todo_query for filtered searches)
- create_todo - Create a new todo/task with optional due date, priority, status
- update_todo - PREFERRED: Update any todo field (SUMMARY, STATUS, PRIORITY, DUE, PERCENT-COMPLETE, custom X-* properties)
- update_todo_raw - Update todo with raw VTODO iCal data (advanced)
- delete_todo - Delete a todo/task permanently
- todo_query - PREFERRED: Search and filter todos efficiently by status/due date
- todo_multi_get - Batch fetch multiple specific todos by URLs
Time zones
An event or todo written without a time zone (a "floating" time such as
DTSTART:20261010T090000, or an all-day date) is read in its calendar's time
zone, as CalDAV specifies (RFC 4791 §9.9): the zone set with make_calendar /
update_calendar, which list_calendars shows. A calendar without one is read
in the zone dav-mcp runs in: the TZ environment variable (for example
TZ=Europe/Berlin in Docker or an HTTP deployment), else the system's. A time
without a zone given to the create and update tools is read the same way, and
an event stored without a zone stays without one when it is moved.
freebusy_query prints its slots in the calendar's zone and names it.
Real-World Applications
n8n Automation Workflows
- Meeting Management: "Show me all Friday meetings" → calendar_query with date filter returns only relevant events
- Contact Search: "Find everyone at Google" → addressbook_query with org filter finds matches efficiently
- Task Reporting: "Show overdue high-priority tasks" → todo_query with filters returns specific results
- Scheduled Cleanup: Daily cron job deletes completed tasks using targeted queries
Claude Desktop Integration
- Quick Event Creation: "Create team meeting tomorrow 2 PM" → create_event executes immediately
- Contact Lookup: "What's Sarah's email?" → addressbook_query with name filter finds contact
- Calendar Overview: "What's on my calendar next week?" → calendar_query with date range shows events
- Calendar Management: "Create a new calendar called Project Luna" → make_calendar creates collection
Works Across All Major Providers
Works with any CalDAV/CardDAV server that follows RFC 4791 and RFC 6352:
- Nextcloud - Full support
- Baikal - Full support
- Radicale - Full support
- Fastmail - Full support, with separate CalDAV and CardDAV endpoints (see below)
- iCloud - Works with app-specific password
- Any RFC-compliant server - Standard protocol support
Authentication
AUTH_METHOD selects how dav-mcp logs in (case-insensitive):
dav-mcp needs Node.js 22 or newer. A wrong configuration — an unknown
AUTH_METHOD value, or missing credentials for the chosen method — stops the
server at startup instead of falling back to Basic.
Separate CalDAV and CardDAV endpoints (Fastmail and similar)
Some providers serve calendars and contacts on two different hosts: Fastmail,
for example, uses https://caldav.fastmail.com/dav/ and
https://carddav.fastmail.com/. Point dav-mcp at both with the optional
CARDDAV_* variables:
Each of CARDDAV_SERVER_URL, CARDDAV_USERNAME and CARDDAV_PASSWORD falls
back to its CALDAV_* counterpart when unset or empty, so you only set the
variables that differ (often the URL alone). The variables apply to Basic and
Digest authentication only: OAuth has a single Google server and ignores them.
One fallback is refused: with an https CALDAV_SERVER_URL and a plain http
CARDDAV_SERVER_URL, CARDDAV_PASSWORD must be set, because the calendar
password would otherwise go over plain http. dav-mcp then stops at startup and
says so.
Each login stays on its own endpoint: a redirect from one configured endpoint onto the other's is refused, and the login fails. The hosts a configured server redirects its own login to (iCloud's per-account hosts, a proxy in front of the DAV server) are trusted as that server names them, just as with a single server.
As soon as one CARDDAV_* variable is set, both endpoints are required: if
either login fails (refused, unreachable, or the URL serves no calendars or no
contacts), startup fails with an error naming the half and the endpoint that
failed. Without any CARDDAV_* variable, a server that serves only calendars
or only contacts at CALDAV_SERVER_URL (iCloud, for one) still starts, and the
tools of the other half answer that it is not available there.
Google Calendar (OAuth2)
For Google Calendar, use OAuth2 authentication:
Security
- Input Validation: All inputs validated with Zod schemas before execution
- Rate Limiting (HTTP mode): 100 requests per 15 minutes per client address, counted before the bearer token is checked. Clients on loopback or a private network (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and for IPv6 fc00::/7 and fe80::/10) — another container on the same Docker network, for example — get 10,000. dav-mcp sees the address of whatever connects to it; behind a reverse proxy that is the proxy, for every client. Set
TRUST_PROXYto the proxy's address (TRUST_PROXY=172.18.0.2for a proxy container on a compose network,docker network inspect <network>shows it; comma-separated for several) and the client address is taken from that proxy'sX-Forwarded-For. CIDR ranges and Express's namesloopback,linklocalanduniquelocalare accepted, but trust every peer in the range, and a peer counted as a proxy never gets the raised limit: withuniquelocal, n8n and every other container on the compose network get 100, and withloopbackso does every client on the same host. List only the proxy's own address so other local clients keep the raised limit. Ranges wider than /8 (IPv4) or /32 (IPv6) are refused, and an IPv6 range covering IPv4-mapped addresses counts as the IPv4 range it trusts (::ffff:0.0.0.0/96is all of IPv4).TRUST_PROXY=trueand hop counts (TRUST_PROXY=1) are refused: a hop count trusts whatever connects to the port, so a client that reaches it directly instead of through the proxy could pick its own address. WithoutTRUST_PROXY,X-Forwarded-Foris ignored, and a request that carries it orForwardedgets the standard limit even from a private address — that address is a proxy's, not the client's — so all clients behind an unconfigured proxy share one counter of 100. WithTRUST_PROXYset, a request whose address is itself a trusted proxy — the proxy sent noX-Forwarded-For, or onlyForwarded, which is not read — gets the standard limit too, since the client behind it is unknown. The one gap is a proxy that sends neither header whileTRUST_PROXYis unset: dav-mcp cannot tell it from a local client, so it and everyone behind it get the raised limit. SetTRUST_PROXYfor every proxy in front of dav-mcp, or rate-limit per client at the proxy. - Bearer Auth: Token authentication for HTTP transport; the server does not start without a
BEARER_TOKENof at least 32 characters - No Credential Storage: Pass-through only, never logged or cached
- Structured Logging: Audit trail with request IDs, no PII exposure
- Tool-Call Log Off by Default:
LOG_TOOL_CALLS=truerecords every tool call with its arguments, for debugging — to~/.local/state/dav-mcp/tool-calls.jsonl(or$XDG_STATE_HOME,%LOCALAPPDATA%on Windows, orTOOL_CALL_LOG_FILE), readable by you only.TOOL_CALL_LOG_MODE=consolesends it to stderr instead. - CORS Protection: Whitelist origins, block cross-site attacks
Privacy Policy
dav-mcp runs on your machine (or your own server) and talks only to the DAV server you configure. It has no telemetry and shares nothing with its maintainers or third parties. Tool results go to the AI assistant that called the tool. Credentials and calendar data are not stored by dav-mcp; the optional tool-call log is off by default. Full policy: PRIVACY.md. Contact: [email protected].
Documentation
- MCP Specification - Model Context Protocol docs
- tsdav Docs - CalDAV/CardDAV library reference
- CalDAV RFC 4791 - CalDAV protocol specification
- CardDAV RFC 6352 - CardDAV protocol specification
Contributing
Pull requests are welcome! Please read CONTRIBUTING.md for guidelines.
License
MIT License - see LICENSE for details
Acknowledgments
Built with:
- tsdav - Excellent TypeScript CalDAV/CardDAV library
- tsdav-utils - Field-agnostic utility layer for RFC-compliant field updates
- MCP SDK - Model Context Protocol by Anthropic
- ical.js - RFC-compliant iCalendar parser
Questions? Issues? Create a GitHub issue
Built for AI agents managing calendars, contacts, and tasks
来源:README.md,提交 64d7bad
工具
0版本历史
7- v5.1.2最新Nov 19, 2026
- v5.0.0Oct 9, 2026
- v4.3.1Oct 8, 2026
- v4.3.0Oct 7, 2026
- v4.1.2Oct 2, 2026
- v4.1.1Oct 2, 2026
- v4.0.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分