carddav-mcp

carddav-mcp

A CardDAV MCP server that exposes contacts and address books as tools for AI assistants.

Category
Visit Server

README

carddav-mcp

<div align="center">

šŸ“‡ A CardDAV Model Context Protocol (MCP) server to expose contacts and address books as tools for AI assistants.

Release npm version MIT License MCP Compatible semantic-release: angular

</div>

✨ 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

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 dev

This 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:

  1. Compile:
npx tsc
  1. Run:
node dist/index.js

Available Tools

<!-- TOOLS:START - generated by scripts/gen-tool-docs.ts -->

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, and phones

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 optionally org, title, note) plus the raw vCard in vcard

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: string
  • fn: string — Formatted display name of the contact
  • name: 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 / company
  • title: string (optional) — Job title or role
  • note: 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: string
  • fn: 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 <!-- TOOLS:END -->

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 via claude -p with a JSON output schema, validating that tool names, descriptions, schemas, and error messages are usable by an LLM.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured