Skip to main content

cairn-mcp-server

An MCP server that exposes Cairn's local-first file-organization tools to Claude Code, Codex, Cursor, and any MCP client. Point it at a folder and your agent gains file tools: list, read, search, grep, edit, move, tag, query, digest, and retrieve — over the .uni document format and plain markdown with YAML frontmatter.

This is the flagship, UI-less face of the product. The MCP client supplies the agent loop, the approval prompts, and the chat. Nothing of ours runs remotely; the server is a local process over your own files.

Install & run

uvx cairn-mcp-server --workspace ~/Documents/notes

To import real documents (docx/pdf/pptx/xlsx/md), install the converter extra:

uvx --with "cairn-core[convert]" cairn-mcp-server --workspace ~/Documents/notes

Use it in Claude Code

claude mcp add cairn -- uvx cairn-mcp-server --workspace ~/Documents/notes

Or in any MCP client config:

{
  "mcpServers": {
    "cairn": {
      "command": "uvx",
      "args": ["cairn-mcp-server", "--workspace", "~/Documents/notes"]
    }
  }
}

Tools

Tool Kind Purpose
list_dir, get_file_tree, read_detail read-only inspect the workspace
search_files, grep, semantic_retrieve read-only find things
find_by_meta, digest_workspace read-only exact metadata queries; a token-efficient workspace map
get_file_tags, get_tag_tree, list_templates read-only inspect tags; list document templates
create_file, create_folder, update_file_tags write add content (create_file supports template/fields)
import_document, import_folder write convert docx/pdf/pptx/csv/xlsx/md → editable .uni
multi_edit, rename_item, move_item, delete_item destructive change/relocate (client confirms)

Read-only tools carry readOnlyHint; destructive tools carry destructiveHint, so clients like Claude Code run reads freely and prompt before destructive edits.

Also exposes workspace://tree and workspace://tags resources, and organize / tag_all prompts (slash-commands in the client).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cairn_mcp_server-0.3.1.tar.gz (74.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cairn_mcp_server-0.3.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file cairn_mcp_server-0.3.1.tar.gz.

File metadata

  • Download URL: cairn_mcp_server-0.3.1.tar.gz
  • Upload date:
  • Size: 74.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cairn_mcp_server-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2d763774330545d3e7639f61595dbd3eb63b978bd20f0b1840e4ec60468894e4
MD5 503232500bee0255cdcd5e6dd9f2eef1
BLAKE2b-256 ed15af4b7c925a5878ba038d927e3017d7422ad7b86aafdc1cb7d7ae866943d7

See more details on using hashes here.

File details

Details for the file cairn_mcp_server-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: cairn_mcp_server-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cairn_mcp_server-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f17ccfad8319d807e5549cbcbb5f9adafbc909e5832f67ceb71b834d3f395535
MD5 a6aa5565c72c922199be35286a594f45
BLAKE2b-256 b82ce4c3fa914fc75ec854a19de6315caf2538988d765d28de77bf2e25e146f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page