dav-mcp
Enables interaction with Apple Calendar and Contacts Server (macOS Server) via WebDAV, allowing management of calendars and contacts.
Enables interaction with Google Calendar via DAV interface, allowing management of calendars and events.
Enables interaction with Nextcloud's CalDAV and CardDAV services via WebDAV, allowing management of calendars and contacts.
Enables interaction with ownCloud's CalDAV and CardDAV services via WebDAV, allowing management of calendars and contacts.
Click on "Deploy 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., "@dav-mcp list my calendars from my Nextcloud server"
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.
dav-mcp
An MCP (Model Context Protocol) server written in TypeScript that handles authentication and forwards WebDAV requests to DAV servers. This server acts as an authenticated proxy, allowing MCP clients to send properly-formed WebDAV requests while the server handles authentication.
Features
WebDAV Request Forwarding: Forward any WebDAV request (PROPFIND, GET, PUT, DELETE, MKCOL, etc.) to configured servers
Authentication Handling: Support for Basic and Bearer token authentication
Simple Design: No parsing - just forward requests with authentication headers
TypeScript: Fully typed implementation with comprehensive error handling
MCP Integration: Compatible with MCP clients and Claude Desktop
Related MCP server: calendar-mcp
Installation
npm install
npm run buildUsage
As an MCP Server
The server can be used with any MCP-compatible client. For Claude Desktop, add to your configuration:
{
"mcpServers": {
"dav-mcp": {
"command": "node",
"args": ["/path/to/dav-mcp/dist/index.js"]
}
}
}Available Tools
1. Configure WebDAV Server
Configure a connection to a WebDAV server:
{
"name": "configure_webdav_server",
"arguments": {
"name": "my-server",
"baseUrl": "https://dav.example.com/remote.php/dav/",
"username": "user@example.com",
"password": "your-password",
"authType": "basic"
}
}2. Test WebDAV Connection
Test if the configured server is accessible:
{
"name": "test_webdav_connection",
"arguments": {
"serverName": "my-server"
}
}3. WebDAV Request
Forward any WebDAV request to the configured server:
{
"name": "webdav_request",
"arguments": {
"serverName": "my-server",
"method": "PROPFIND",
"path": "/calendars/user@example.com/personal/",
"headers": {
"Content-Type": "application/xml; charset=utf-8",
"Depth": "1"
},
"body": "<?xml version=\"1.0\" encoding=\"utf-8\" ?><d:propfind xmlns:d=\"DAV:\"><d:prop><d:displayname /><d:resourcetype /></d:prop></d:propfind>"
}
}Supported WebDAV Methods
The server can forward any HTTP method, including WebDAV-specific methods:
GET: Retrieve resources
PUT: Create/update resources
DELETE: Remove resources
PROPFIND: Get properties of resources
PROPPATCH: Modify properties of resources
MKCOL: Create collections (folders)
COPY: Copy resources
MOVE: Move resources
LOCK: Lock resources
UNLOCK: Unlock resources
REPORT: Extended queries (CalDAV/CardDAV)
Example WebDAV Operations
List Calendars (CalDAV)
{
"name": "webdav_request",
"arguments": {
"serverName": "my-server",
"method": "PROPFIND",
"path": "/calendars/user@example.com/",
"headers": {
"Content-Type": "application/xml; charset=utf-8",
"Depth": "1"
},
"body": "<?xml version=\"1.0\" encoding=\"utf-8\" ?><d:propfind xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\"><d:prop><d:displayname /><d:resourcetype /><c:calendar-description /></d:prop></d:propfind>"
}
}Get Calendar Events
{
"name": "webdav_request",
"arguments": {
"serverName": "my-server",
"method": "REPORT",
"path": "/calendars/user@example.com/personal/",
"headers": {
"Content-Type": "application/xml; charset=utf-8",
"Depth": "1"
},
"body": "<?xml version=\"1.0\" encoding=\"utf-8\" ?><c:calendar-query xmlns:d=\"DAV:\" xmlns:c=\"urn:ietf:params:xml:ns:caldav\"><d:prop><d:getetag /><c:calendar-data /></d:prop><c:filter><c:comp-filter name=\"VCALENDAR\"><c:comp-filter name=\"VEVENT\"></c:comp-filter></c:comp-filter></c:filter></c:calendar-query>"
}
}List Address Books (CardDAV)
{
"name": "webdav_request",
"arguments": {
"serverName": "my-server",
"method": "PROPFIND",
"path": "/addressbooks/user@example.com/",
"headers": {
"Content-Type": "application/xml; charset=utf-8",
"Depth": "1"
},
"body": "<?xml version=\"1.0\" encoding=\"utf-8\" ?><d:propfind xmlns:d=\"DAV:\" xmlns:card=\"urn:ietf:params:xml:ns:carddav\"><d:prop><d:displayname /><d:resourcetype /><card:addressbook-description /></d:prop></d:propfind>"
}
}Supported DAV Servers
This MCP server works with any WebDAV-compatible server, including:
Nextcloud: Full CalDAV/CardDAV support
ownCloud: Calendar and contacts
Radicale: Lightweight CalDAV/CardDAV server
Apple Calendar/Contacts Server: macOS Server
Google Calendar/Contacts: Via DAV interface (with app passwords)
Generic WebDAV: Any RFC 4918 compliant server
Authentication
Basic Authentication
Username and password authentication:
{
"authType": "basic",
"username": "your-username",
"password": "your-password"
}Bearer Token Authentication
For OAuth or API token authentication:
{
"authType": "bearer",
"token": "your-access-token"
}Development
Building
npm run buildTesting
npm testDevelopment Mode
npm run devLinting
npm run lintArchitecture
The server is designed as a simple authenticated proxy:
src/index.ts: Main MCP server implementation with 3 toolssrc/types/: TypeScript type definitionssrc/utils/dav-client.ts: WebDAV client for authenticated request forwardingsrc/__tests__/: Test files
Design Philosophy
This server follows the principle of simplicity:
No Parsing: The server doesn't parse or interpret WebDAV responses
Raw Forwarding: Requests are forwarded exactly as received from the client
Authentication Only: The server only adds authentication headers
Client Responsibility: MCP clients must send properly-formed WebDAV requests
This approach provides maximum flexibility and compatibility with any WebDAV server while keeping the server implementation simple and reliable.
Security Notes
Credentials are stored in memory only during the session
HTTPS is recommended for all DAV server connections
Bearer tokens should be preferred over basic auth when available
License
ISC
Contributing
Contributions are welcome! Please ensure all tests pass and follow the existing code style.
Available Tools
3 toolsconfigure_webdav_serverC
Configure a WebDAV server connection
Inputs: name (required), baseUrl (required), authType (required), token, +2 more.
test_webdav_connectionB
Test connection to a configured WebDAV server
Inputs: serverName (required).
webdav_requestC
Forward a WebDAV request to the configured server
Inputs: path (required), method (required), serverName (required), body, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: configure the server, test the connection, and forward an actual WebDAV request. There is little risk of an agent confusing setup or validation with operational requests.
configure_webdav_server and test_webdav_connection follow a clear verb_noun pattern. webdav_request is a minor deviation, reading more like a resource/action label than a verb-first operation.
Three tools are well-scoped for a lightweight WebDAV client: setup, validation, and a generic request gateway. Each earns its place without redundant surface area.
The generic webdav_request enables arbitrary WebDAV operations, so most workflows are reachable after configuration and testing. Minor gaps exist around managing multiple server configurations or removing/updating setup state explicitly.
Related MCP Connectors
Route HTTP requests through the Tor network. Rotating exit IPs, .onion support, no body logging.
Cloud file relay: chunked uploads, folders, share links, inline text reads, ZIP packing.
Hosted MCP server for Gmail, Outlook, iCloud, Fastmail & Yahoo Mail with per-workspace controls.
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that allows users to interact with their CalDAV, CardDAV, and WebDAV services (calendars, contacts, and files) from Fastmail and Apple iCloud accounts.63MIT
- AlicenseNot gradedqualityDmaintenanceProvider-agnostic CalDAV calendar MCP server that connects any CalDAV calendar to AI assistants, enabling calendar operations like listing, creating, updating, and deleting events.44 PyPIAGPL 3.0
- AlicenseAqualityDmaintenanceEnables full CRUD operations on calendar events, free/busy queries, and availability slot finding via CalDAV, supporting Nextcloud, Radicale, iCloud, and other RFC 4791-compliant servers.8MIT
- FlicenseNot gradedqualityCmaintenanceConnects MCP-compatible clients to any CalDAV server for managing calendars, events, and todo tasks.-