skip to content

Radicale

An agent for the calendar, for requests such as “what’s on Saturday?”.

MCP server github.com/dominik1001/caldav-mcp
Transport Streamable HTTP
Authentication bearer

The same MCP server, a CalDAV client, serves Radicale and Baïkal.

The image named in the README of caldav-mcp cannot be pulled: Compose builds it from the Dockerfile of its release tag, beside the server of Ambrogio:

services:
radicale-mcp:
build: https://github.com/dominik1001/caldav-mcp.git#v0.12.1
image: caldav-mcp:0.12.1
environment:
CALDAV_BASE_URL: http://<radicale-host>:5232/
CALDAV_USERNAME: ambrogio
CALDAV_PASSWORD: ${RADICALE_PASSWORD:?}
MCP_AUTH_TOKEN: ${RADICALE_MCP_TOKEN:?}

It serves Streamable HTTP on port 3000 at /mcp, so the server of Ambrogio reaches it at http://radicale-mcp:3000/mcp, the name of its Compose service on a network the two share; from another host, use the name or address of the host that runs it, with the same port and path.

CALDAV_USERNAME and CALDAV_PASSWORD are the account of Radicale the MCP server acts as. Radicale reads its users from an htpasswd file: create the user there, such as with htpasswd -B -c /var/lib/radicale/users ambrogio in its container, then its calendars.

  1. Run the MCP server, as Run the MCP server shows.

  2. Choose the token that the MCP server accepts, a random value such as the output of openssl rand -hex 32: the same value goes to the MCP server, as MCP_AUTH_TOKEN above, and to Ambrogio. Write it in .env as RADICALE_MCP_TOKEN, and pass the variable to the server of Ambrogio in compose.yaml:

    services:
    server:
    environment:
    RADICALE_MCP_TOKEN: ${RADICALE_MCP_TOKEN:?}
  3. Add the agent file agents/radicale.json, with the address of the Streamable HTTP endpoint of the MCP server in mcp.url:

    {
    "description": "Answers the household's requests about the calendar, with the tools of Radicale.",
    "instructions": "You handle the household's requests about the calendar with the tools of Radicale. Requests may come from speech recognition and contain misheard words; interpret them in context. Answer briefly.",
    "llm": {
    "provider": "mistral",
    "model": "mistral-medium-latest",
    "apiKeyEnv": "MISTRAL_API_KEY"
    },
    "maxToolCalls": 4,
    "mcp": {
    "url": "http://radicale-mcp:3000/mcp",
    "auth": {
    "type": "bearer",
    "tokenEnv": "RADICALE_MCP_TOKEN"
    }
    }
    }
  4. Restart with docker compose up -d.

Authentication: a bearer token, which the agent file names through the variable RADICALE_MCP_TOKEN. The description, the instructions, the language model and maxToolCalls are an example: adapt them to the household. See Agents for every field of the file.