Provides CalDAV protocol integration with Google Calendar, enabling tools to list calendars, create and manage events with reminders, attendees, recurrence patterns, and search functionality.
Provides CalDAV protocol integration with Apple iCloud Calendar, enabling tools to list calendars, create and manage events with reminders, attendees, recurrence patterns, and search functionality.
Provides CalDAV protocol integration with Nextcloud Calendar, enabling tools to list calendars, create and manage events with reminders, attendees, recurrence patterns, and search functionality.
Provides CalDAV protocol integration with ownCloud Calendar, enabling tools to list calendars, create and manage events with reminders, attendees, recurrence patterns, and search functionality.
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:
Windows:
Then install the project:
This will:
Create a virtual environment (
.venv)Install all dependencies including dev dependencies
Generate a
uv.lockfile
Using uvx (Run without installation)
You can also run the server directly without installing it:
Using pip
Configuration
Set the following environment variables:
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:
Open Cursor Settings ā Features ā MCP Servers ā + Add new global MCP server
Add the following configuration:
Using uvx (Recommended - no installation needed):
Using local installation (after
Using local development version:
Example for Yandex Calendar:
ā ļø 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:
As MCP Server
The server can be used with MCP-compatible clients:
Using uv (after
Note: uvx works only with published packages from PyPI. For local development, use uv run mcp-caldav after uv sync.
Using pip (after installation):
Or with custom options:
Available Tools
Basic Operations:
caldav_list_calendars- List all available calendarscaldav_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 todaycaldav_get_week_events- Get events for the week
Advanced Operations:
caldav_get_event_by_uid- Get a specific event by its UIDcaldav_delete_event- Delete an event by UIDcaldav_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:
Setup pre-commit hooks:
See CODE_QUALITY.md for detailed information.
Running Tests
Unit tests (with mocks):
E2E tests (require real CalDAV server):
All tests:
With coverage:
See tests/e2e/README.md for more details on e2e tests.
Project Structure
License
See LICENSE file for details.