caldav-todo-mcp
Integrates with iCloud Reminders over CalDAV using an app-specific password, enabling management of reminders/TODO items through the server's task tools.
Integrates with Nextcloud Tasks over CalDAV, allowing AI assistants to list, create, update, complete, move, delete, sync, import, and export TODO items stored in Nextcloud task collections.
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., "@caldav-todo-mcp Create a todo in my Tasks list to buy milk tomorrow morning"
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.
caldav-todo-mcp
An MCP server that lets an AI assistant read and write TODO items over CalDAV. Your tasks live on your own server (Nextcloud Tasks, Radicale, iCloud Reminders, Fastmail, Baïkal, …) and every other CalDAV client you use sees the same data.
Lists are CalDAV collections; items are RFC 5545 VTODO components. The server
exposes tools to list, create, update, complete, move and delete items, plus a
sync_todos tool that pushes a whole batch to the remote server in one call.
It speaks both MCP transports: stdio for local clients that spawn it, and streamable HTTP for running it as a service, e.g. in Docker.
Requirements
Python 3.11+
A CalDAV account (URL, username, password or app-specific password)
Related MCP server: Task / To-Do Manager — MCP Server
Install
# with uv (recommended)
uv tool install caldav-todo-mcp # once published; or from a checkout:
uv tool install /path/to/caldav-todo-mcp
# or with pip
pip install /path/to/caldav-todo-mcpFor development:
uv venv && uv pip install -e ".[dev]"
uv run pytestConfiguration
The server reads its settings from environment variables (see .env.example):
Variable | Required | Meaning |
| yes | Base URL of the CalDAV server, e.g. |
| usually | Login name |
| usually | Password or app-specific password |
| no | List id or name used when a tool call omits |
| no |
|
| no |
|
| no | HTTP timeout in seconds (default |
Typical URLs:
Provider |
|
Nextcloud |
|
Radicale |
|
iCloud |
|
Fastmail |
|
Baïkal |
|
Running in Docker (HTTP transport)
The image serves MCP over streamable HTTP on port 8000 at /mcp, and a liveness
probe at /health. CalDAV credentials are passed as environment variables; nothing is
baked into the image.
cp .env.example .env # fill in CALDAV_URL / CALDAV_USERNAME / CALDAV_PASSWORD
docker compose up -d --build
curl http://127.0.0.1:8000/healthOr without compose:
docker build -t caldav-todo-mcp .
docker run -d --name caldav-todo-mcp -p 127.0.0.1:8000:8000 \
-e CALDAV_URL=https://cloud.example.com/remote.php/dav/ \
-e CALDAV_USERNAME=alice \
-e CALDAV_PASSWORD=app-password \
-e CALDAV_DEFAULT_LIST=Tasks \
-e MCP_AUTH_TOKEN=change-me \
caldav-todo-mcpThen point your client at http://127.0.0.1:8000/mcp:
claude mcp add --transport http caldav-todo http://127.0.0.1:8000/mcp \
--header "Authorization: Bearer change-me"Server-side settings (all optional):
Variable | Default | Meaning |
|
|
|
|
| Bind address for HTTP |
|
| HTTP port |
|
| HTTP endpoint path |
| unset | When set, |
| unset | Comma-separated |
|
| Stateless streamable HTTP mode (no server-side sessions) |
|
| Plain JSON responses instead of SSE |
|
| Log level |
The same options are available as CLI flags (caldav-todo-mcp --transport http --port 8000),
which take precedence over the environment. The compose file binds the port to
127.0.0.1 only; if you expose it more widely, set MCP_AUTH_TOKEN, because whoever
can reach the endpoint can read and write your tasks.
Using it with a local (stdio) MCP client
Claude Code
claude mcp add caldav-todo \
-e CALDAV_URL=https://cloud.example.com/remote.php/dav/ \
-e CALDAV_USERNAME=alice \
-e CALDAV_PASSWORD=app-password \
-e CALDAV_DEFAULT_LIST=Tasks \
-- caldav-todo-mcpClaude Desktop / other stdio clients
{
"mcpServers": {
"caldav-todo": {
"command": "caldav-todo-mcp",
"env": {
"CALDAV_URL": "https://cloud.example.com/remote.php/dav/",
"CALDAV_USERNAME": "alice",
"CALDAV_PASSWORD": "app-password",
"CALDAV_DEFAULT_LIST": "Tasks"
}
}
}
}You can also run it directly with python -m caldav_todo_mcp, or serve HTTP outside
Docker with caldav-todo-mcp --transport http.
Tools
Tool | What it does |
| List the TODO-capable collections on the server |
| Create a new list |
| Delete a list and everything in it |
| List items (open first, by due date then priority); filters: |
| Fetch one item by UID |
| Create an item: |
| Change any of those fields; |
| Toggle completion (sets |
| Delete an item |
| Move an item to another list |
| Upsert a batch of items by UID; |
| Export a list as an |
| Import VTODOs from |
Every tool takes an optional list_id, which may be the collection id, its display
name (case-insensitive) or its URL. When omitted, CALDAV_DEFAULT_LIST is used; if
that is unset and the server holds exactly one TODO list, that list is used.
Dates are ISO 8601 strings: 2026-11-10 for an all-day due date,
2026-11-10T17:00:00+01:00 for a specific time. Priority follows RFC 5545
(1 highest … 9 lowest).
Syncing a local list to the server
sync_todos is designed for "push my list to the server" workflows. Give each local
item a stable uid and send the whole list:
{
"list_id": "Tasks",
"delete_missing": true,
"items": [
{"uid": "local-1", "summary": "Renew passport", "due": "2026-12-01", "priority": 2},
{"uid": "local-2", "summary": "Call the bank", "status": "COMPLETED"}
]
}The response reports which UIDs were created, updated, unchanged and
deleted. Without delete_missing the call never removes anything. To pull the
server state instead, use list_todos (structured) or export_todos (iCalendar).
Library use
The CalDAV layer is usable without MCP:
from caldav_todo_mcp import Settings, TodoStore
from caldav_todo_mcp.models import TodoInput
store = TodoStore(
Settings(
url="https://cloud.example.com/remote.php/dav/", username="alice", password="app-password"
)
)
for lst in store.list_lists():
print(lst.id, lst.name)
store.create_todo(TodoInput(summary="Water the plants", due="2026-11-10"), "Tasks")Tests
The test suite starts a throwaway Radicale server and runs the full create/update/complete/sync/import flow against it: in-process, over a real stdio MCP connection, and over streamable HTTP (including the bearer-token check):
uv run pytestLicense
MIT
Available Tools
14 toolscomplete_todoC
Mark a TODO item as completed.
Inputs: uid (required), list_id. Returns: A single VTODO item.
create_todoC
Create a new TODO item.
Inputs: summary (required), due, uid, start, +5 more. Returns: A single VTODO item.
create_todo_listC
Create a new TODO list on the server.
Inputs: name (required). Returns: A CalDAV calendar collection that holds VTODO items.
delete_todoBDestructive
Delete a TODO item permanently.
Inputs: uid (required), list_id. Returns: result
delete_todo_listADestructive
Delete a whole TODO list and every item in it. This cannot be undone.
Inputs: list_id (required). Returns: result
export_todosBRead-onlyIdempotent
Export a list as an iCalendar (.ics) document containing its VTODOs.
Inputs: list_id, include_completed. Returns: result
get_todoCRead-onlyIdempotent
Fetch one TODO item by UID.
Inputs: uid (required), list_id. Returns: A single VTODO item.
import_todosA
Import VTODOs from iCalendar text, creating or replacing items by UID.
Inputs: ics (required), list_id. Returns: object
list_todo_listsBRead-onlyIdempotent
List the TODO lists (CalDAV collections) available on the server.
Inputs: include_non_todo. Returns: result
list_todosBRead-onlyIdempotent
List TODO items, open ones first, sorted by due date then priority.
Inputs: list_id, category, due_before, include_completed. Returns: result
move_todoC
Move a TODO item to another list.
Inputs: uid (required), to_list_id (required), from_list_id. Returns: A single VTODO item.
reopen_todoB
Mark a completed TODO item as needing action again.
Inputs: uid (required), list_id. Returns: A single VTODO item.
sync_todosA
Push a batch of TODOs to the server: create unknown uids, update known ones.
Use this to sync a local list to the remote server in one call. Returns the uids that were created, updated, unchanged and (with delete_missing) deleted.
Inputs: items (required), list_id, delete_missing. Returns: object
update_todoB
Update fields of an existing TODO item. Omitted fields are left unchanged.
Inputs: uid (required), due, start, status, +9 more. Returns: A single VTODO item.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have clearly distinct resource/action targets, especially list-level vs item-level operations. complete_todo and reopen_todo overlap with update_todo, and sync_todos overlaps somewhat with import_todos/create_todo/update_todo, but descriptions make intended use reasonably clear.
All tool names follow a consistent snake_case verb_noun pattern, such as list_todos, create_todo, delete_todo_list, and sync_todos. The naming is predictable throughout the set.
The 14 tools are well-scoped for a CalDAV TODO server, covering list management, item lifecycle, batch sync, and iCalendar import/export. Each tool appears to serve a distinct workflow rather than padding the surface.
Core CRUD and lifecycle operations are covered for TODO items, including completion, reopening, moving, syncing, and import/export. Minor gaps exist at the list level, such as no explicit rename/update_todo_list operation, but agents can work around this.
Related MCP Connectors
Read and write your own Microsoft To Do, Google Tasks or Todoist tasks from any AI agent.
Read and manage To-do Calendar todos, schedules and tags from an AI agent.
Simple, fast todo app: manage tasks, projects and tags from Claude and other MCP clients.
Todoist tasks, projects and labels for AI assistants, plus AI prioritization. Needs a Todoist token.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA persistent todo list server that enables AI assistants to manage tasks across different platforms using the Model Context Protocol. It provides tools for creating, listing, updating, and deleting todos with support for priorities, tags, and due dates.MIT
- FlicenseNot gradedqualityCmaintenanceProvides AI assistants with tools and a resource to manage a personal to-do list, enabling adding, listing, retrieving, completing, and deleting tasks over stdio.-
- AlicenseNot gradedqualityAmaintenanceConnects AI assistants to CalDAV servers so they can list calendars and browse, create, update, or delete events and to-do tasks within a chosen timeframe. Supports scheduling of recurring and all-day events, task filtering and pagination, and completion tracking through natural language.2,881 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to connect to CalDAV servers and manage calendars, events, and tasks through tools for listing, creating, updating, completing, and deleting items.2,881 npmMIT