Skip to main content
MCP server CX Codex

Cairn Remembers — Claude Code MCP server: setup guide

Keeps architectural choices, project notes, and discussion context inside a local SQLite vault. Helps AI agents retain background knowledge across restarts.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add cairn-remembers -- uvx cairn-remembers
Open on GitHub

What Cairn Remembers does

Cairn supplies coding assistants with persistent storage directly on your machine. Every entry sits in an SQLite database at ~/.cairn/. The engine uses an append-only log, marking obsolete entries as void rather than erasing them from history.

Integration splits into two distinct paths: passive session capture and interactive vault queries via MCP tools. The package requires Python 3.11 or higher. You can run the server directly through uvx without manual cloning.

Installing the complete package with dashboard features on Linux demands attention. If you omit the CPU-specific PyTorch repository flag during pip setup, the installer fetches an unnecessary multi-gigabyte CUDA package.

What it helps with

  • share decisions and design rationale across separate chat sessions
  • keep project history in a private local file without cloud sync
  • track abandoned approaches and previous dead ends
  • retain work state between different coding assistants

Example prompts for the agent

  • Check Cairn notes to see why we rejected JWT tokens for session auth
  • Save our conclusion about database indexing into Cairn memory
  • Search previous sessions in Cairn for unfinished tasks in the API module

How to install Cairn Remembers

Platform CLI

claude mcp add cairn-remembers -- uvx cairn-remembers

uvx runs the command named after the package; if the README names another one, use uvx --from cairn-remembers <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Cairn Remembers

How do I install Cairn Remembers in Claude Code?

Run claude mcp add cairn-remembers -- uvx cairn-remembers in your terminal. To enable automatic background capture of conversations, also run python -X utf8 -m cairn setup.

Where does Cairn save collected context?

All recorded notes remain inside a single SQLite file at ~/.cairn/. The server transmits no telemetry and works without external accounts.

What should Linux users know before running pip install?

Run pip install torch --index-url https://download.pytorch.org/whl/cpu before installing cairn-remembers[all]. Otherwise, pip pulls a massive GPU build of PyTorch.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor