🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

cairn-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cairn-mcp-server

MCP server exposing Cairn's local-first file-organization tools to Claude Code, Codex, Cursor, and any MCP client.

pipPyPI
Version
0.3.1
Weekly downloads
437
Maintainers
1

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

ToolKindPurpose
list_dir, get_file_tree, read_detailread-onlyinspect the workspace
search_files, grep, semantic_retrieveread-onlyfind things
find_by_meta, digest_workspaceread-onlyexact metadata queries; a token-efficient workspace map
get_file_tags, get_tag_tree, list_templatesread-onlyinspect tags; list document templates
create_file, create_folder, update_file_tagswriteadd content (create_file supports template/fields)
import_document, import_folderwriteconvert docx/pdf/pptx/csv/xlsx/md → editable .uni
multi_edit, rename_item, move_item, delete_itemdestructivechange/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).

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts