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.

已驗證STDIO僅桌面效率與工作流溝通與協作

概覽

AI 產生的概覽

本機 MCP 伺服器,透過 27 個工具讓助理管理任何 CalDAV/CardDAV 伺服器上的行事曆、聯絡人與待辦事項。

可以做什麼
  • 列出、建立、更新與刪除行事曆,包含名稱、顏色與時區。
  • 搜尋、建立、更新、移動與刪除活動,並支援批次取得與空閒/忙碌查詢。
  • 列出、搜尋、建立、更新與刪除通訊錄中的聯絡人,包含自訂欄位。
  • 列出、搜尋、建立、更新與刪除待辦事項,含到期日、優先順序與狀態。
  • 以伺服器端篩選條件查詢活動、聯絡人與待辦事項,而非一次抓取全部資料。
適用情境
適合讓助理回答行程問題、建立或調整會議、查詢聯絡人資訊,或在既有的 CalDAV/CardDAV 帳號(例如 Nextcloud、Fastmail、iCloud、Google 行事曆)中追蹤待辦事項。
執行需求
以 npm 套件形式在本機執行,需要 Node.js 22 或更新版本,或使用打包的桌面安裝檔。需要 DAV 伺服器網址、使用者名稱以及密碼或應用程式專用密碼;Google 行事曆使用 OAuth,需要用戶端 ID、用戶端密鑰與更新權杖。HTTP 模式另需至少 32 個字元的 BEARER_TOKEN。
安裝前請注意
伺服器會持有行事曆與聯絡人憑證,建議改用應用程式專用密碼。工具可建立、修改並永久刪除活動、聯絡人、行事曆與待辦事項,刪除行事曆會一併刪除其中所有活動。HTTP 模式下若未指定主機,伺服器會監聽所有網路介面;啟用選用的工具呼叫記錄時會寫下工具參數。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Dav Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

[License: MIT] [npm version]


Quick Start

Claude Code plugin

In Claude Code, run:

/plugin install dav-mcp --marketplace PhilflowIO/dav-mcp

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)

  1. Download dav-mcp-<version>.mcpb from the latest release. Releases from 4.1.2 on carry this file.
  2. Open it with Claude Desktop (macOS or Windows). Claude shows an install dialog.
  3. Enter your server URL, username and password. The password is stored as a secret. Leave the authentication method at Basic unless your server needs Digest.

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:

json
{  "mcpServers": {    "dav-mcp": {      "command": "npx",      "args": ["-y", "dav-mcp"],      "env": {        "CALDAV_SERVER_URL": "https://dav.example.com",        "CALDAV_USERNAME": "your_username",        "CALDAV_PASSWORD": "your_password"      }    }  }}

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:

bash
CALDAV_SERVER_URL=https://dav.example.com \CALDAV_USERNAME=your_username \CALDAV_PASSWORD=your_password \BEARER_TOKEN=$(openssl rand -hex 32) \npx dav-mcp --http

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:

  1. Add AI Agent node
  2. Add MCP Client Tool node and connect to AI Agent
  3. Configure:
    • MCP Endpoint: http://localhost:3000/mcp
    • Authentication: Bearer
    • Token: the BEARER_TOKEN value

Custom port:

bash
npx dav-mcp --http --port=8080

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:

bash
npx dav-mcp --http --host=127.0.0.1

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):

bash
docker run -d --name dav-mcp -p 3000:3000 --env-file .env \  ghcr.io/philflowio/dav-mcp:latest

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:

bash
git clone https://github.com/PhilflowIO/dav-mcp.gitcd dav-mcpcp .env.example .env# Edit .env with your credentials and a BEARER_TOKEN from `openssl rand -hex 32`docker-compose up

The Orchestration

When partial tools force your AI to improvise, complete tools let it execute precise operations across all components.

Capabilitydav-mcpMost MCPs
Calendar ManagementFull CRUD (12 tools)Create + list only (2-3 tools)
Contact ManagementComplete CardDAV (8 tools)Often missing entirely
Task ManagementFull VTODO support (7 tools)Rarely included
Field-Based UpdatesAll RFC properties + custom fieldsRarely available
Free/BusyWorks on every server (client-side)Native REPORT, unsupported by most
Server-Side FilteringEfficient queriesDumps all data
Multi-ProviderAny CalDAV/CardDAV serverLimited provider support
Total Tools27 tools2-6 tools

Available Tools (27 Total)

CalDAV Tools (12 tools)

  1. list_calendars - List all available calendars
  2. list_events - List ALL events (use calendar_query for filtered searches)
  3. create_event - Create a new calendar event
  4. 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
  5. update_event_raw - Update event with raw iCal data (advanced)
  6. delete_event - Delete an event permanently
  7. calendar_query - PREFERRED: Search and filter events efficiently by text, date range, or location
  8. make_calendar - Create a new calendar collection, optionally with a time zone (an IANA name such as Europe/Berlin, sent as a VTIMEZONE)
  9. update_calendar - Update calendar properties (display name, description, color, time zone)
  10. delete_calendar - Delete a calendar and all its events
  11. calendar_multi_get - Batch fetch multiple specific events by URLs
  12. freebusy_query - Find free and busy time in a range ("when am I free?"), calculated client-side

CardDAV Tools (8 tools)

  1. list_addressbooks - List all available address books
  2. list_contacts - List ALL contacts (use addressbook_query for filtered searches)
  3. create_contact - Create a new contact (vCard)
  4. update_contact - PREFERRED: Update any contact field (FN, EMAIL, TEL, ORG, ADR, custom X-* properties)
  5. update_contact_raw - Update contact with raw vCard data (advanced)
  6. delete_contact - Delete a contact permanently
  7. addressbook_query - PREFERRED: Search and filter contacts efficiently by name, email, or organization
  8. addressbook_multi_get - Batch fetch multiple specific contacts by URLs

VTODO Tools (7 tools)

  1. list_todos - List ALL todos/tasks (use todo_query for filtered searches)
  2. create_todo - Create a new todo/task with optional due date, priority, status
  3. update_todo - PREFERRED: Update any todo field (SUMMARY, STATUS, PRIORITY, DUE, PERCENT-COMPLETE, custom X-* properties)
  4. update_todo_raw - Update todo with raw VTODO iCal data (advanced)
  5. delete_todo - Delete a todo/task permanently
  6. todo_query - PREFERRED: Search and filter todos efficiently by status/due date
  7. 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):

AUTH_METHODCredentialsUse for
Basic (default)CALDAV_USERNAME, CALDAV_PASSWORDAlmost every server. If the server only offers Digest (for example Baikal set to Digest), dav-mcp switches to Digest by itself — no setting needed.
DigestCALDAV_USERNAME, CALDAV_PASSWORDServers that only accept Digest (RFC 7616). Unlike the automatic switch under Basic, which first sends the password once Basic-encoded and is then rejected, Digest never sends the password — use it when the connection is not HTTPS.
OAuth (or OAuth2)GOOGLE_*, see belowGoogle Calendar

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:

bash
CALDAV_SERVER_URL=https://caldav.fastmail.com/dav/CALDAV_USERNAME=your_usernameCALDAV_PASSWORD=your_app_passwordCARDDAV_SERVER_URL=https://carddav.fastmail.com/

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:

json
{  "mcpServers": {    "dav-mcp": {      "command": "npx",      "args": ["-y", "dav-mcp"],      "env": {        "AUTH_METHOD": "OAuth",        "GOOGLE_USER": "[email protected]",        "GOOGLE_CLIENT_ID": "your-client-id",        "GOOGLE_CLIENT_SECRET": "your-client-secret",        "GOOGLE_REFRESH_TOKEN": "your-refresh-token"      }    }  }}

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_PROXY to the proxy's address (TRUST_PROXY=172.18.0.2 for 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's X-Forwarded-For. CIDR ranges and Express's names loopback, linklocal and uniquelocal are accepted, but trust every peer in the range, and a peer counted as a proxy never gets the raised limit: with uniquelocal, n8n and every other container on the compose network get 100, and with loopback so 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/96 is all of IPv4). TRUST_PROXY=true and 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. Without TRUST_PROXY, X-Forwarded-For is ignored, and a request that carries it or Forwarded gets 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. With TRUST_PROXY set, a request whose address is itself a trusted proxy — the proxy sent no X-Forwarded-For, or only Forwarded, 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 while TRUST_PROXY is unset: dav-mcp cannot tell it from a local client, so it and everyone behind it get the raised limit. Set TRUST_PROXY for 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_TOKEN of 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=true records every tool call with its arguments, for debugging — to ~/.local/state/dav-mcp/tool-calls.jsonl (or $XDG_STATE_HOME, %LOCALAPPDATA% on Windows, or TOOL_CALL_LOG_FILE), readable by you only. TOOL_CALL_LOG_MODE=console sends 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


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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

7
  1. v5.1.2最新Nov 19, 2026
  2. v5.0.0Oct 9, 2026
  3. v4.3.1Oct 8, 2026
  4. v4.3.0Oct 7, 2026
  5. v4.1.2Oct 2, 2026
  6. v4.1.1Oct 2, 2026
  7. v4.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分