carddav-mcp
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-mcp
📇 A CardDAV Model Context Protocol (MCP) server to expose contacts and address books as tools for AI assistants.
✨ Features
Connect to CardDAV servers
List address books
List contacts in an address book
Get the full details of a single contact
Create contacts (vCard)
Update contacts — partial updates that preserve vCard properties written by other clients
Delete contacts by UID
Related MCP server: calendar-mcp
Setup
{
"mcpServers": {
...,
"contacts": {
"command": "npx",
"args": [
"carddav-mcp"
],
"env": {
"CARDDAV_BASE_URL": "<CardDAV server URL>",
"CARDDAV_USERNAME": "<CardDAV username>",
"CARDDAV_PASSWORD": "<CardDAV password>"
}
}
}
}Development
Quick Start
Run the MCP server in development mode with auto-reload:
npm run devThis will run the TypeScript code directly with watch mode and automatically load environment variables from .env.
Manual Build
Alternatively, you can compile TypeScript to JavaScript and run it:
Compile:
npx tscRun:
node dist/index.jsAvailable Tools
list-address-books
List all address books returning both name and URL
Parameters: none
Returns:
List of all available address books
list-contacts
List all contacts in the address book specified by its URL. Returns a summary per contact; use get-contact for full details.
Parameters:
addressBookUrl: string
Returns:
A list of contacts, each containing
uid,fn(formatted name),emails, andphones
get-contact
Get the full details of a single contact in the address book specified by its URL
Parameters:
uid: string — Unique identifier of the contact to fetch (obtained from list-contacts)addressBookUrl: string
Returns:
The contact's parsed fields (
uid,fn,name,emails,phones, and optionallyorg,title,note) plus the raw vCard invcard
create-contact
Creates a contact (vCard) in the address book specified by its URL. If name is omitted, structured name parts are derived from fn.
Parameters:
addressBookUrl: stringfn: string — Formatted display name of the contactname: object (optional) — Structured name parts (family, given, middle, ...)family: string (optional)given: string (optional)middle: string (optional)prefix: string (optional)suffix: string (optional)
emails: array of string (optional)phones: array of string (optional)org: string (optional) — Organization / companytitle: string (optional) — Job title or rolenote: string (optional)
Returns:
The unique ID of the created contact
update-contact
Updates an existing contact in the address book specified by its URL. Only provided fields are changed; emails and phones replace the full list (pass an empty array to clear them, or an empty string to clear org, title, or note). Other vCard properties are preserved.
Parameters:
uid: string — Unique identifier of the contact to update (obtained from list-contacts)addressBookUrl: stringfn: string (optional)name: object (optional)family: string (optional)given: string (optional)middle: string (optional)prefix: string (optional)suffix: string (optional)
emails: array of string (optional)phones: array of string (optional)org: string (optional)title: string (optional)note: string (optional)
Returns:
The unique ID of the updated contact
delete-contact
Deletes a contact in the address book specified by its URL
Parameters:
uid: string — Unique identifier of the contact to delete (obtained from list-contacts)addressBookUrl: string
Returns:
Confirmation message when the contact is successfully deleted
Smoke Tests
Two complementary end-to-end checks against a real CardDAV server (both read credentials from .env):
npm run smoke— deterministic SDK harness (scripts/smoke.ts). Spawns the built server over stdio via the MCP client SDK and asserts the create → list → get → update → delete contact round-trip.npm run smoke:agent— agent-ergonomics harness (scripts/smoke-agent.sh). Drives the server viaclaude -pwith a JSON output schema, validating that tool names, descriptions, schemas, and error messages are usable by an LLM.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
ppl: the personal CRM for AI agents. Structured relationship memory over hosted MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Machine Conversation Protocol server that enables AI assistants to manage Google Contacts and search Google Workspace directories, providing tools for listing, creating, updating, and deleting contacts within your Google account.933MIT
- AlicenseNot gradedqualityFmaintenanceProvider-agnostic CalDAV calendar MCP server that connects any CalDAV calendar to AI assistants, enabling calendar operations like listing, creating, updating, and deleting events.31 PyPIAGPL 3.0
- AlicenseAqualityAmaintenanceAn MCP server that exposes Nextcloud APIs as tools for AI assistants, enabling management of files, calendar, contacts, conversations, and more.2221MIT
- AlicenseNot gradedqualityAmaintenanceA local-first contact management MCP server with SQLite storage and Google Contacts sync, enabling AI agents to upsert, search, log interactions, and surface follow-ups for relationships.1,225 npmMIT