Cairn MCP server
io.github.cybort360/cairn-mcp·v0.1.2Log Claude Code work sessions, file edits, and tasks to your Cairn account.
0 stars18 downloads/wk
Reviews
Write oneNobody has reviewed Cairn yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Cairn tools (11, 4 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
daily_summaryMarkdown summary of everything logged on a given day.
file_activity_listRetrieve file activity events with optional filters.
file_activity_logRecord a file activity event (opened/edited/created/deleted/reviewed).
task_createwrite actionCreate a new task.
task_deletewrite actionPermanently delete a task by id.
task_listList tasks with optional status/project/priority filters.
task_updatewrite actionUpdate one or more fields of an existing task.
weekly_summaryMarkdown overview of a full work week.
work_log_addAdd a timestamped entry describing what you worked on (stored in Cairn).
work_log_deletewrite actionPermanently delete a work log entry by id.
work_log_listRetrieve work log entries with optional date/project/category filters.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan10 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 96 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Cairn compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 38% of 48,255 servers
- Tools
- 11
- the typical server has 7
- Tools that change things
- 36%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 18
- more than 5% of 12,191 servers with a package
What its tools let an agent do: 7 read · 4 change
Install Cairn in Claude Code, Cursor or VS Code
claude mcp add cairn-mcp -- uvx cairn-mcp
What the publisher says
From the Cairn repository's README, as published. We do not edit it. Read it on GitHub
Cairn
A work tracker that remembers what you did. It captures your coding sessions, the files you touch, tasks moving from pending to done, and project notes, then keeps them in one place with daily and weekly rollups. The name is the pile of stones that marks a trail.
Cairn runs as a multi-tenant web app on Vercel with a Neon Postgres database. Each account signs up, logs in, and only ever sees its own data.
How it's built
The whole server is the Python standard library plus one dependency (psycopg). No framework.
- api/index.py — the Vercel serverless entrypoint. Vercel's Python runtime treats it as a catch-all, so every request lands here.
- lib/handler.py — routing. The same BaseHTTPRequestHandler runs three ways: the Vercel function, the local dev server, and the tests.
- lib/data.py — every SQL statement, each one scoped by user_id.
- lib/db.py — Neon connection (pooled endpoint) plus small query helpers.
- lib/auth.py — PBKDF2 password hashing, sessions, and token resolution.
- lib/limits.py — signup/login rate limiting and per-account quota caps, both backed by Postgres.
- lib/assets.py — the single-page app and favicon, embedded as base64 so they ship inside the function bundle. Generated by build_assets.py; re-run it after editing static/.
Local development
You need a Postgres to point at. A throwaway one in Docker works:
docker run -d --name cairn_pg -e POSTGRES_PASSWORD=pw -e POSTGRES_DB=cairn -p 5432:5432 postgres:16-alpine
python3 -m venv .venv && .venv/bin/pip install 'psycopg[binary]'
export DATABASE_URL="postgres://postgres:pw@127.0.0.1:5432/cairn"
.venv/bin/python dev.py --init # create the schema, then serve on :8765Tests run against that same database:
.venv/bin/python tests/smoke.py # core CRUD + isolation
.venv/bin/python tests/test_limits.py # rate limiting + quotas
.venv/bin/python tests/test_sp3.py # file activity + filtered listsDeployment
Pushing to main deploys to production through the Vercel GitHub integration. DATABASE_URL and the other Neon variables come from the Vercel ↔ Neon integration; the app reads the pooled connection string. Schema changes go on with initdb.py against the direct (unpooled) URL.
The agent side
The agent/ folder is the MCP server and two Claude Code hooks that run on your machine. They talk to this API over HTTPS using your account's token, so anything Claude Code does flows into your Cairn account. The server gives Claude a set of cairn tools; the hooks log sessions and file edits on their own.
On Claude Code the quickest install is the plugin — this repo doubles as a plugin marketplace (.claude-plugin/marketplace.json):
/plugin marketplace add https://github.com/cybort360/cairn
/plugin install cairn@cairnThat wires up the MCP server and both hooks; you just save your token to ~/.cairn_token (it needs uv on your PATH). The manual route — clone, venv, claude mcp add — is in agent/README.md. The web app deploy ignores agent/; it's client-side only.
Design notes
Each sub-project that built Cairn has a spec under docs/superpowers/specs/: the cloud core, the auth hardening, and the local agent cutover. Read those if you want the reasoning behind a decision rather than just the code.
Nothing above is checked by us. What we check is on the safety report.
Cairn: common questions
- Is Cairn MCP server safe?
- Mostly: it is graded B (72/100). Read the Cairn safety report
- How do I install Cairn?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Cairn need an API key?
- Yes. The registry entry asks for
CAIRN_TOKEN. - Is Cairn maintained?
- The last commit was 135 days ago (2026-06-22). The latest release is v0.1.2.
- What can I use instead of Cairn?
- Servers from other publishers that do the same job: Excel MCP Server.
- How does Cairn compare with other MCP servers?
- safety score 72/100 (higher than 38% of 48,255 servers); tools 11 (the typical server has 7); tools that change things 36% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Cairn
Same job from other publishers: the closest match first, then the best rated.
- Excel MCP ServerCreate and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.not reviewedWidely usedA