carddav-contacts
Enables managing contacts through iCloud's CardDAV endpoint: discovering address books, searching and listing contacts, and creating, updating, or deleting vCards using an Apple ID and app-specific password.
Enables managing contacts through Nextcloud's CardDAV endpoint (/remote.php/dav/), including listing address books and searching, creating, updating, and deleting contacts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CardDAV Contacts (carddav-contacts)
A Cursor / Agent Plugin with an MCP server and skill for contacts on any CardDAV server. It can list address books, search contacts, and create, update, or delete them. Authentication is HTTP Basic (username plus password or, preferably, an app password).
Requires Node.js 18 or newer (uses global fetch). There are no runtime npm dependencies.
Repository: https://github.com/albertklein/carddav-plugin
Install
Cursor plugin
Clone this repository (or use it as a plugin repo in Cursor):
git clone https://github.com/albertklein/carddav-plugin.gitFor a local Cursor install, copy or symlink the folder to ~/.cursor/plugins/local/carddav-contacts, then restart Cursor. Set the three variables under Plugins → Configure (or at install time). Never put those values in the repo or in chat.
You can also point Cursor at this GitHub repository from a team marketplace (Teams or Enterprise): Dashboard → Plugins & MCPs.
The plugin manifest is .cursor-plugin/plugin.json. Cursor expands ${CURSOR_PLUGIN_ROOT} in mcp.json to the plugin install path. It does not expand the Agent Plugins ${PLUGIN_ROOT} placeholder. See the Plugins reference.
Plain mcp.json
If you install this as a Cursor plugin, the repo already ships this mcp.json (use it as-is):
{
"mcpServers": {
"carddav": {
"type": "stdio",
"command": "node",
"args": ["server/index.mjs"],
"cwd": "${CURSOR_PLUGIN_ROOT}",
"env": {
"CARDDAV_URL": "${CARDDAV_URL}",
"CARDDAV_USERNAME": "${CARDDAV_USERNAME}",
"CARDDAV_PASSWORD": "${CARDDAV_PASSWORD}"
}
}
}
}For a manual user-level MCP config (~/.cursor/mcp.json) that is not loaded as a plugin, replace ${CURSOR_PLUGIN_ROOT} with the absolute path to your local clone, and set the three CARDDAV_* values in that server's env (or in the environment of the process that starts Cursor). Do not commit real credentials.
Related MCP server: carddav-mcp
Variables
Variable | Example | Notes |
|
| Base URL of the CardDAV server or an address book |
| your account name or email | |
| an app-specific password | Secret. Prefer an app password you can revoke. |
The server discovers address books from the URL: it tries the URL, then /.well-known/carddav, then follows current-user-principal → addressbook-home-set. A URL that already points at an address book works too.
App passwords
Use a dedicated app password (or equivalent) instead of your main account password. You can revoke it without changing the account password. Typical places to create one (UIs change, so check the provider's current help):
iCloud: generate an app-specific password at account.apple.com; do not use your Apple ID password. URL
https://contacts.icloud.com/. Username is your Apple ID email.Fastmail: create an app password with Contacts access. URL
https://carddav.fastmail.com/.Nextcloud: Settings → Security → app password. URL
https://<host>/remote.php/dav/. Username is your Nextcloud login.
Usage
Once the MCP server is running, the agent can use these tools:
Tool | What it does |
| Discover and list address books |
| List contacts, optionally filtered by |
| Get one contact by |
| Create a contact ( |
| Patch fields of a contact ( |
| Delete a contact ( |
All tools return the same shape:
type Contact = {
uid: string | null;
fullName: string;
emails: { value: string; type?: string }[];
phones: { value: string; type?: string }[];
org: string | null;
etag: string | null;
href: string;
vcard?: string; // only on carddav_get_contact
};Updates and deletes are protected by etag, so a stale copy is refused instead of overwriting a newer change. Fields the tools do not touch (addresses, notes, photos, and other vCard properties) are kept as they are.
Search downloads the address book and filters it locally, so it may be slow on very large address books.
Tested servers
Radicale: full create, read, update, and delete are covered by the local end-to-end suite (
test/e2e.mjs).Other CardDAV servers (Nextcloud, iCloud, Fastmail, Baikal, SOGo, and similar) follow the same protocol. The provider URLs above are general guidance only; this plugin has not been verified against those hosted services in this repository.
Layout
.cursor-plugin/plugin.json Cursor Plugin manifest (name, variables schema)
.cursor-plugin/marketplace.json Optional team marketplace catalog (plugin at repo root)
plugin.json Agent Plugins manifest
mcp.json stdio MCP server: node server/index.mjs (cwd: ${CURSOR_PLUGIN_ROOT})
server/ MCP server source
skills/carddav-contacts/ skill: which tool to use, safety rules
test/e2e.mjs end-to-end test against a local Radicale
test/e2e-remote.mjs same CRUD steps against a real server (env credentials)
test/unit.mjs unit tests for vCard/Contact functionsTest
python3 -m venv .venv-radicale && .venv-radicale/bin/pip install radicale
node test/unit.mjs
node test/e2e.mjs # starts a throwaway Radicale with a random test password
CARDDAV_URL=... CARDDAV_USERNAME=... CARDDAV_PASSWORD=... node test/e2e-remote.mjsLicense
MIT, copyright Albert Klein. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your own email, calendars and contacts (IMAP, SMTP, CalDAV, CardDAV) for any agent.
Keeps your contacts in sync across Google, Microsoft, Apple and CardDAV, and cleans up duplicates.
A private address book your AI can search, update and import into.
Email, calendar and contacts for AI agents: Gmail, Microsoft 365 and IMAP accounts behind one API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage contacts with full CRUD, dedup, merge, import/export, sync with Google/Apple/CardDAV, and git-backed rollback.AGPL 3.0
- AlicenseAqualityBmaintenanceRead and write CardDAV address books: contacts, groups and photos over the open standard17113 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to list CalDAV calendars, query events by time range, and create, update, or delete events while keeping credentials in environment variables and never exposing passwords in responses.64 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to search and edit notes, manage calendar events and contacts, and browse, read, write, and delete files on a self-hosted Nextcloud instance.56 npmMIT