Log Claude Code work sessions, file edits, and tasks to your Cairn account.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
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/.You need a Postgres to point at. A throwaway one in Docker works:
Tests run against that same database:
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/ 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):
That 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.
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.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cairn-2)<a href="https://allmcps.com/mcp/cairn-2"><img src="https://allmcps.com/api/badge/cairn-2?style=directory" alt="Cairn on AllMCPs" /></a>