Read and write CardDAV address books: contacts, groups and photos over the open standard
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server for CardDAV, the open contacts standard behind Nextcloud, Radicale, Baikal, SOGo, Fastmail, mailbox.org and iCloud.
Lets MCP clients like Claude Code, Claude Desktop or Codex work with your address book: find a person, read their card in full, add and correct contacts, keep groups, and fetch a contact photo β against your own server, with no vendor API in between.
Seventeen tools is the ceiling, not the floor: CARDDAV_ALLOW_TOOLS=essential
registers a curated six instead, and a model picks the right tool far more
reliably from six than from seventeen β see
choosing which tools load.

A listing stays cheap on a real address book. list_contacts asks the
server for a dozen named properties rather than for whole cards, which is the
difference between a few kilobytes and several megabytes once inline photos are
involved. The entries it returns say partial out loud, because a card
retrieved that way is missing everything nobody asked for β and the write path
refuses to build on one, re-fetching every time.
Both group conventions, read and written. vCard 4 defines KIND:group with
MEMBER. Apple got there first and shipped X-ADDRESSBOOKSERVER-KIND on top of
vCard 3, and that is what Apple Contacts, Nextcloud and most of the installed
base actually store. This server reads both and writes whichever the address
book already uses β a group written in the other convention is not a
compatibility footnote, it is invisible in the client the person is looking at.
Writing reads first, and never rebuilds. A CardDAV PUT replaces the entire
resource, so every change here is applied to the card as stored. The
properties this server does not model β an X- property some phone wrote in
2014, a photo nobody mentioned β survive because they are never touched, not
because anything preserves them. Every write carries the card's ETag, so a
change somebody made in the meantime is reported instead of overwritten.
A birthday keeps the year it has, and no more. BDAY:--0415 means "the
fifteenth of April, year unknown", which is what a phone writes when the year
was never entered, and it is a large share of the real birthdays in any address
book. Reported as {month, day} β not dropped for being incomplete, and not
given an invented year.
Contacts are treated as somebody else's writing. An address book is rarely written only by its owner, and the attack that matters here does not run a tool: a card asserting that a bank's real number has changed needs the model to do nothing except believe it. Every string is fenced, datamarked and checked against named injection shapes β including one for exactly that.
Most hosted services want an app-specific password rather than the account password: Nextcloud, Fastmail and iCloud all issue one per application. Google Contacts is not supported β it requires OAuth and has deprecated password authentication for CardDAV.
Tested against Radicale and Baikal (sabre/dav) in CI on every pull request.
| Variable | Required | Description |
|---|---|---|
CARDDAV_URL | yes | Root of the CardDAV server, e.g. https://dav.example.net. An address book collection URL works too and limits the server to that one book. |
CARDDAV_USERNAME | yesΒΉ | Account name. |
CARDDAV_PASSWORD | yesΒΉ | Password or app-specific password. Deleted from the environment once read. |
CARDDAV_TOKEN | yesΒΉ | Bearer token instead of username and password. Not both. |
CARDDAV_ADDRESSBOOKS | no | Comma-separated address books this server may touch, by path or final path segment. Default: every book the account can see. |
CARDDAV_MAX_CONTACTS | no | Contacts a listing returns by default, 1β500. Default 100. |
CARDDAV_READ_ONLY | no | true registers only the read tools. Default false. |
CARDDAV_INSECURE_TLS | no | true accepts a self-signed certificate on the configured host only β and switches off hostname verification with it. Default false. |
CARDDAV_ALLOW_PLAINTEXT | no | true allows a plain http:// URL to a host that is not loopback, which sends the credentials and every contact unencrypted. Otherwise such a URL refuses to start. Default false. |
CARDDAV_ALLOW_TOOLS | no | Tool names, a prefix with one trailing *, or essential. |
CARDDAV_DENY_TOOLS | no | Subtracted from whatever the allow list left. |
ELICITATION | no | Not prefixed β one export reaches every MCP server in the environment. false makes guarded tools use the two-call token instead of a dialog. Default true. |
ΒΉ Either CARDDAV_USERNAME + CARDDAV_PASSWORD, or CARDDAV_TOKEN.
Booleans are compared against the literal string true where the switch lifts
a protection (CARDDAV_INSECURE_TLS, CARDDAV_ALLOW_PLAINTEXT), and read
tolerantly β 1, yes, TRUE β where it turns one on (CARDDAV_READ_ONLY). A
typo should never quietly remove a guard.
The server starts without credentials on purpose, so a registry or a sandbox inspector can list its tools; every call then fails with setup instructions.
Seventeen tools is a lot of context on every request, and a model picks worse from a long list than from a short one.
essential selects list_address_books, list_contacts, get_contact,
search_contacts, create_contact and update_contact β enough to find a
person, read them, add one and correct one, with nothing irreversible in reach
and the whole group surface left out.
Whatever is filtered out does not exist on the protocol rather than failing when called, and a name matching no tool stops the server at startup with the real names listed, instead of leaving a tool quietly missing.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/carddav-address-books)<a href="https://allmcps.com/mcp/carddav-address-books"><img src="https://allmcps.com/api/badge/carddav-address-books?style=directory" alt="CardDAV address books on AllMCPs" /></a>