Listed from the MCP registry; nobody on Odel publishes it.
Local MCP server for your calendars across Nextcloud, iCloud, Google and any CalDAV server.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y pim-mcp
MCP client config
{
"mcpServers": {
"pim": {
"command": "npx",
"args": [
"-y",
"pim-mcp"
]
}
}
}One thin, local MCP server for all your calendars.
Nextcloud · iCloud · Google · any CalDAV, merged into a single view your agent can read and manage.
Quick start · Accounts · Connect · Tools · Guardrails · Providers · Contributing
you › Find me an hour on Thursday afternoon and put the dentist there.
agent › find_free_time start=Thu 12:00 end=Thu 18:00 duration_minutes=60
↳ 13:00–15:30 · 16:15–18:00
› create_event calendar="icloud/personal" title="Dentist" start=Thu 13:00
↳ ✓ created Thu 13:00–14:00 · icloud/personal
Done. Thursday 13:00 is booked; you're free again from 14:00.
|
🗂️ One merged view |
🧳 Portable |
|
🪶 Thin and local |
🛡️ Safe by default |
flowchart LR
A["🤖 Agent<br><sub>Claude Code · Claude Desktop · Cursor</sub>"] -- "MCP · stdio" --> P["<b>pim-mcp</b><br><sub>on your machine</sub>"]
S[("🔐 OS secret store<br><sub>Keychain · Secret Service · DPAPI</sub>")] -. "app passwords / tokens" .-> P
P -- CalDAV --> N["☁️ Nextcloud"]
P -- CalDAV --> I["🍎 iCloud"]
P -- "CalDAV + OAuth" --> G["📅 Google"]
P -- CalDAV --> O["🌐 any CalDAV"]
Requires Node.js 22+.
npm install -g pim-mcp # 1 · install (or prefix commands with `npx -y`)
pim-mcp init # 2 · write ~/.config/pim-mcp/config.toml
pim-mcp secret set pim-mcp/icloud # 3 · store an app password (prompted, not echoed)
pim-mcp check # 4 · verify every account
claude mcp add pim -s user -- npx -y pim-mcp # 5 · connect your agent
pim-mcp check lists what it found:
✓ nextcloud (nextcloud) — 3 calendar(s)
nextcloud/personal Personal
nextcloud/work Work
✓ icloud (icloud) — 2 calendar(s)
icloud/family Family
icloud/travel Travel
The config lives at ~/.config/pim-mcp/config.toml on every OS (C:\Users\<you>\.config\pim-mcp\config.toml on Windows). Set PIM_MCP_CONFIG to use another path.
Passwords and tokens never go in the config. It holds a reference instead:
| Reference | Resolves to |
|---|---|
keychain:service/account | your OS secret store. Easiest: pim-mcp secret set service/account |
env:NAME | an environment variable |
cmd:<command> | a command's output, e.g. cmd:op read op://Private/iCloud/password, cmd:pass show icloud, cmd:bw get password icloud |
Stored as generic passwords in your login Keychain. You can also manage them in Keychain Access, or with security add-generic-password -s pim-mcp -a icloud -w.
Needs secret-tool:
sudo apt install libsecret-tools # Debian / Ubuntu
sudo dnf install libsecret # Fedora
sudo pacman -S libsecret # Arch
On a headless machine there's usually no keyring running. Use env: refs (set them in your MCP client's env block) or pass:
password = "cmd:pass show pim-mcp/icloud"
Secrets are encrypted with DPAPI, the per-user encryption Credential Manager also uses. They're stored under %APPDATA%\pim-mcp\secrets\, and only your Windows user on this machine can decrypt them. Nothing to install. cmd: refs run in cmd.exe.
pim-mcp secret set pim-mcp/nextcloud[[accounts]]
id = "nextcloud"
provider = "nextcloud"
url = "https://your.next.cloud/remote.php/dav"
username = "your-login"
password = "keychain:pim-mcp/nextcloud"
pim-mcp secret set pim-mcp/icloud[[accounts]]
id = "icloud"
provider = "icloud"
username = "you@icloud.com" # the email you sign into your Apple Account with
password = "keychain:pim-mcp/icloud"
Google only allows OAuth for CalDAV:
pim-mcp secret set pim-mcp/google-client-secretpim-mcp auth google --account google opens your browser and stores the refresh token in your OS secret store.[[accounts]]
id = "google"
provider = "google"
username = "you@gmail.com"
client_id = "xxxx.apps.googleusercontent.com"
client_secret = "keychain:pim-mcp/google-client-secret"
refresh_token = "keychain:pim-mcp/google"
[[accounts]]
id = "fastmail"
provider = "caldav"
url = "https://caldav.fastmail.com/"
username = "you@fastmail.com"
password = "keychain:pim-mcp/fastmail"
Known URLs are in Providers.
Claude Code (any OS)
claude mcp add pim -s user -- npx -y pim-mcp
Claude Desktop, Cursor and other GUI clients. Add this to the client's MCP config:
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"pim": { "command": "npx", "args": ["-y", "pim-mcp"] }
}
}
GUI apps don't always see your shell's PATH. If the server fails to start, replace npx with the full path from which npx, e.g. /opt/homebrew/bin/npx.
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"pim": { "command": "cmd", "args": ["/c", "npx", "-y", "pim-mcp"] }
}
}
npx is a batch script on Windows, so it runs through cmd /c.
Claude Desktop isn't available for Linux; use Claude Code or another MCP client with the same command / args as macOS. env: refs go in the client's env block:
"pim": {
"command": "npx",
"args": ["-y", "pim-mcp"],
"env": { "ICLOUD_PASSWORD": "…" }
}
| Tool | What it does | |
|---|---|---|
| 📚 | list_calendars | All calendars and their ids (icloud/work). Anywhere a tool takes a calendar, a plain name works too. |
| 🗓️ | list_events | Events from all calendars in a range, merged and sorted. Defaults to today through the next 7 days. |
| 🔎 | search_events | Text search over title, location and description. |
| 📄 | get_event | Full details: description, attendees, organizer, recurrence rule, reminders. |
| 🕐 | find_free_time | Free windows of at least N minutes, optionally within working hours. |
| ➕ | create_event | Timed or all-day, with recurrence, up to 3 reminders, and busy/free status. |
| ✏️ | update_event | Changes only the fields you pass. Recurring events take scope: instance or series. |
| 🗑️ | delete_event | Off unless allow_delete = true. Takes the event's title, so approval prompts show its name, and refuses a title that doesn't match the event. |
What agents see:
timezone.YYYY-MM-DD, and their end date is inclusive.timezone = "Europe/Amsterdam" # default: the system timezone
[guardrails]
allow_delete = false # delete_event is refused
allow_invites = false # no adding attendees, no editing/deleting events that have them
[[accounts]]
# …
read_only = true # no writes to this account at all
read_only_calendars = ["Family"] # protect specific calendars
hide_calendars = ["Birthdays"] # don't show these at all
| Provider | Status | Setup |
|---|---|---|
| Nextcloud / ownCloud | ✅ tested | nextcloud · https://<host>/remote.php/dav |
| iCloud | ✅ tested | icloud · app-specific password |
| Google Calendar | 🧪 beta | google · OAuth. Not yet tried with a real account; reports welcome |
| Fastmail | 🟡 untested | caldav · https://caldav.fastmail.com/ |
| Yahoo | 🟡 untested | caldav · https://caldav.calendar.yahoo.com |
| mailbox.org | 🟡 untested | caldav · https://dav.mailbox.org/ |
| Posteo | 🟡 untested | caldav · https://posteo.de:8443/ |
| Radicale · Baïkal · SOGo · Synology | 🟡 untested | caldav · your server's DAV URL |
| Outlook · Microsoft 365 · Exchange | 🚧 wanted | no CalDAV; needs a Microsoft Graph backend |
| Proton Calendar | ❌ n/a | no CalDAV or public API |
🟡 untested means standard CalDAV that should just work but hasn't been confirmed with pim-mcp yet. Tried one? A PR updating this table is very welcome.
New providers, bug fixes and "it works with X" confirmations are all welcome. See CONTRIBUTING.md for dev setup, a throwaway local CalDAV server for testing, and how to add a provider.