Caldav MCP logo

Caldav MCP

by madbonez

MCP server providing CalDAV protocol integration for any CalDAV-compatible calendar server with event management features.

Install Caldav MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "madbonez-caldav-mcp": {
      "command": "uvx",
      "args": [
        "mcp-caldav"
      ],
      "env": {
        "CALDAV_URL": "YOUR_VALUE_HERE",
        "CALDAV_USERNAME": "YOUR_VALUE_HERE",
        "CALDAV_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CALDAV_URL=YOUR_VALUE_HERE --env CALDAV_USERNAME=YOUR_VALUE_HERE --env CALDAV_PASSWORD=YOUR_VALUE_HERE --transport stdio madbonez-caldav-mcp -- uvx mcp-caldav

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx mcp-caldav

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

This MCP server enables integration with any CalDAV-compatible calendar server such as Yandex, Google (via CalDAV), Nextcloud, ownCloud, and Apple iCloud. It supports listing calendars, creating events with recurrence, categories, priority, attendees, and reminders, as well as retrieving and searching events by date range or UID. Use this server when you need programmatic access to calendar data via the CalDAV protocol within an MCP-compatible client or environment.

Use cases

  • List available calendars from a CalDAV server
  • Create calendar events with recurrence and attendees
  • Retrieve events for today, week, or custom date ranges
  • Search events by text, attendees, or location
  • Delete events by UID

Key features

  • Supports any CalDAV-compatible server (Yandex, Google, Nextcloud, ownCloud, iCloud)
  • Create events with recurrence rules (daily, weekly, monthly, yearly)
  • Manage event categories, priority, attendees, and reminders
  • Retrieve events by UID or date range
  • Search events by text, attendees, or location

Tools8

What Caldav MCP lets your agent do. Expand a tool for its parameters.

Self-reported~130 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · mcp-caldav (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

MCP CalDAV Server

Universal MCP server for CalDAV protocol integration. Works with any CalDAV-compatible calendar server including Yandex Calendar, Google Calendar (via CalDAV), Nextcloud, ownCloud, Apple iCloud, and others.

đź“– Quick Start: See QUICKSTART.md for a quick guide to get started with uv. đź”§ Cursor Setup: See CURSOR_SETUP.md for detailed Cursor IDE configuration instructions.

Features

  • List available calendars
  • Create calendar events with reminders and attendees
  • Get events for today, week, or custom date range
  • Works with any CalDAV-compatible server (Yandex, Google, Nextcloud, ownCloud, iCloud, etc.)

Installation

Using uv (Recommended)

First, install uv if you haven't already:

macOS/Linux:

Terminal
curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then install the project:

bash
uv sync --dev

This will:

  • Create a virtual environment (.venv)
  • Install all dependencies including dev dependencies
  • Generate a uv.lock file

Using uvx (Run without installation)

You can also run the server directly without installing it:

bash
uvx mcp-caldav

Using pip

Terminal
pip install -e .

Configuration

Set the following environment variables:

server.ts
export CALDAV_URL="https://caldav.example.com/"
export CALDAV_USERNAME="your-username"
export CALDAV_PASSWORD="your-password"

CalDAV Server URLs

Common CalDAV server URLs:

  • Yandex Calendar: https://caldav.yandex.ru/
  • Google Calendar: https://apidata.googleusercontent.com/caldav/v2/ (requires OAuth setup)
  • Nextcloud: https://your-domain.com/remote.php/dav/calendars/username/
  • ownCloud: https://your-domain.com/remote.php/dav/calendars/username/
  • Apple iCloud: https://caldav.icloud.com/ (requires app-specific password)
  • FastMail: https://caldav.fastmail.com/dav/calendars/user/

Note: Some servers require app-specific passwords instead of regular passwords. Check your calendar provider's documentation for CalDAV setup instructions.

Usage

IDE Integration (Cursor)

To use this MCP server in Cursor:

  1. Open Cursor Settings → Features → MCP Servers → + Add new global MCP server
  2. Add the following configuration:

Using uvx (Recommended - no installation needed):

config.json
{
  "mcpServers": {
    "mcp-caldav": {
      "command": "uvx",
      "args": ["mcp-caldav"],
      "env": {
        "CALDAV_URL": "https://caldav.example.com/",
        "CALDAV_USERNAME": "your-username",
        "CALDAV_PASSWORD": "your-password"
      }
    }
  }
}

Using local installation (after uv sync or pip install):

config.json
{
  "mcpServers": {
    "mcp-caldav": {
      "command": "mcp-caldav",
      "env": {
        "CALDAV_URL": "https://caldav.example.com/",
        "CALDAV_USERNAME": "your-username",
        "CALDAV_PASSWORD": "your-password"
      }
    }
  }
}

Using local development version:

config.json
{
  "mcpServers": {
    "mcp-caldav": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/caldav", "mcp-caldav"],
      "env": {
        "CALDAV_URL": "https://caldav.example.com/",
        "CALDAV_USERNAME": "your-username",
        "CALDAV_PASSWORD": "your-password"
      }
    }
  }
}

Example for Yandex Calendar:

config.json
{
  "mcpServers": {
    "mcp-caldav": {
      "command": "uvx",
      "args": ["mcp-caldav"],
      "env": {
        "CALDAV_URL": "https://caldav.yandex.ru/",
        "CALDAV_USERNAME": "your-username@yandex.ru",
        "CALDAV_PASSWORD": "your-app-password"
      }
    }
  }
}

⚠️ Note: Yandex Calendar has aggressive rate limiting (60 seconds per MB since 2021). Write operations (create/update/delete) may experience 504 timeouts, so space out requests and introduce manual delays. For write-heavy workloads, consider using Google Calendar or Nextcloud instead. See PROVIDER_NOTES.md for details.

Testing status: End-to-end tests currently run only against Yandex Calendar. Other CalDAV providers follow the same protocol and should work, but they have not been integration-tested yet.

Example for Nextcloud:

config.json
{
  "mcpServers": {
    "mcp-caldav": {
      "command": "uvx",
      "args": ["mcp-caldav"],
      "env": {
        "CALDAV_URL": "https://your-domain.com/remote.php/dav/calendars/username/",
        "CALDAV_USERNAME": "your-username",
        "CALDAV_PASSWORD": "your-password"
      }
    }
  }
}

As MCP Server

The server can be used with MCP-compatible clients:

Using uv (after uv sync):

bash
uv run mcp-caldav

Note: uvx works only with published packages from PyPI. For local development, use uv run mcp-caldav after uv sync.

Using pip (after installation):

bash
mcp-caldav

Or with custom options:

bash
uv run mcp-caldav --caldav-url "https://caldav.example.com/" \
                   --caldav-username "your-username" \
                   --caldav-password "your-password" \
                   --verbose

Available Tools

Basic Operations:

  • caldav_list_calendars - List all available calendars
  • caldav_create_event - Create a new calendar event (supports recurrence, categories, priority, attendees)
  • caldav_get_events - Get events for a date range (returns extended fields: UID, categories, priority, attendees, recurrence)
  • caldav_get_today_events - Get events for today
  • caldav_get_week_events - Get events for the week

Advanced Operations:

  • caldav_get_event_by_uid - Get a specific event by its UID
  • caldav_delete_event - Delete an event by UID
  • caldav_search_events - Search events by text, attendees, or location

Features Supported:

  • Recurring events (RRULE) - Daily, Weekly, Monthly, Yearly patterns
  • Categories/Tags - Organize events with categories
  • Priority - Set priority levels (0-9, 0 = highest)
  • Attendees with statuses - Track acceptance status (ACCEPTED/DECLINED/TENTATIVE/NEEDS-ACTION)
  • Reminders - Multiple reminders per event

Development

Code Quality

This project uses several tools to ensure code quality:

  • mypy - Static type checking with strict rules
  • ruff - Fast linting and code formatting
  • pre-commit - Automatic checks before commits

Run quality checks:

bash
# Install dev dependencies
uv sync --group dev

# Run all checks
make check

# Or individually
make lint
make format
make type-check

# Or using pre-commit
make pre-commit-run

Setup pre-commit hooks:

bash
uv run pre-commit install

See CODE_QUALITY.md for detailed information.

Running Tests

Unit tests (with mocks):

bash
make test
# or
make test-unit

E2E tests (require real CalDAV server):

bash
# Create .env.e2e file with your credentials, then:
make test-e2e

All tests:

bash
make test

With coverage:

bash
make test-cov        # Terminal report
make coverage-html   # HTML report

See tests/e2e/README.md for more details on e2e tests.

Project Structure

Code
caldav/
├── src/
│   └── mcp_caldav/
│       ├── __init__.py      # Main entry point
│       ├── server.py        # MCP server implementation
│       └── client.py         # CalDAV client wrapper
├── tests/
│   ├── test_server.py       # Server unit tests
│   ├── test_client.py       # Client unit tests
│   └── e2e/                 # End-to-end tests with real server
│       ├── test_client_e2e.py
│       └── conftest.py
├── pyproject.toml           # Project configuration
├── Makefile                 # Development commands
└── README.md                # This file

License

See LICENSE file for details.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Caldav MCP

Supports any CalDAV-compatible server including Yandex Calendar, Google Calendar (via CalDAV), Nextcloud, ownCloud, Apple iCloud, and others.

Set environment variables CALDAV_URL, CALDAV_USERNAME, and CALDAV_PASSWORD with your CalDAV server URL and credentials.

Yes, it supports creating and managing recurring events with standard RRULE patterns.

Yandex Calendar has aggressive rate limiting causing possible timeouts on write operations; consider spacing requests or using other providers for write-heavy workloads.

End-to-end tests are currently run only against Yandex Calendar; other providers follow the same protocol but are not fully integration-tested.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCaldav MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/madbonez-caldav-mcp?style=directory)](https://allmcps.com/mcp/madbonez-caldav-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/madbonez-caldav-mcp"><img src="https://allmcps.com/api/badge/madbonez-caldav-mcp?style=directory" alt="Caldav MCP on AllMCPs" /></a>