Local memory your AI tools share: decisions, notes and corrections that carry across sessions.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Build knowledge. Leave signals. β Tools for modern explorers.
Local-first episodic memory for AI agents β and for you.
A cairn is a stack of stones that marks a trail. This one marks the trail of your thinking: every decision, dead end, and reason becomes a node you β and any model β can find again, across sessions and across model generations.
~/.cairn/. No cloud, no account, no telemetry.Two ways in:
Keep the decisions, reasons and unfinished work you want to return to. Cairn stores them in a local vault that you and your connected AI tools can read and add to. Each AI keeps its own memory and context. These demos show the optional dashboard for exploring the record.
| Hub | Projects | Connections |
|---|---|---|
![]() | ![]() | ![]() |
| Pick up unfinished work. | Keep related work together. | Explore linked memories. |
Explore all five demos and descriptions.
Two places, never mixed up: π₯οΈ Your terminal (PowerShell / Terminal) β every command on this page runs here, on your computer. Wiring is always a terminal command or a config-file edit β an AI can run those terminal steps for you (that's the fastest path below), but wiring is never something you paste into the chat box. π¬ The AI chat β where memory shows up, and where you test the wiring by asking the AI to use it.
Open Claude Code, Codex, or Cursor and paste:
Install and set up Cairn for me from https://github.com/CairnRemembers/cairn
Your AI runs the terminal steps and asks before switching memory on β one yes/no per AI on your machine, default No. Nothing records without your yes. (Using Codex? There's one extra paste after that β see Wire up your AI.)
1 β Install π₯οΈ (installs software only β records nothing, the vault starts empty)
β οΈ Installing
[all]on Linux / WSL? Runpip install torch --index-url https://download.pytorch.org/whl/cpufirst, or pip pulls a multi-GB CUDA torch stack you don't need. Windows and macOS torch wheels are already CPU-only.
Still the richer path β the installer handles the CPU-torch step for you:
Get the code π₯οΈ
Run the installer π₯οΈ
The installer finds Python 3.11+, installs everything (first run downloads PyTorch β the lean CPU build on Linux/Windows, a few minutes), and checks itself.
2 β Wire up your AI. This is where memory actually turns on, and each AI needs
different wiring β a y in setup finishes the job for Claude Code, but not for
Codex or Claude Desktop. Find your AI below and follow it to its β
.
Cairn has two separate wires, and knowing the difference prevents every common surprise:
Some AIs need one wire, some need both. Don't stop at the first β β follow your AI to its β line.
π₯οΈ In the terminal:
That wires capture: every new Claude Code chat auto-orients (you'll see the
banner), records as you work, and compiles when it ends. Machine-wide, one-time,
reversible (cairn disconnect --global). Prefer one project only? Run cairn connect
inside that repo instead (global and per-project are mutually exclusive β doctor flags it).
β
Done when: a new chat opens with a "CAIRN β inherited context" banner,
and π₯οΈ python -X utf8 -m cairn doctor shows β capture.
Optional β native tools: Claude Code can already read the vault by running cairn
commands in its shell. For native cairn_* tools instead, register the MCP server
user-wide, pointing at the Python that can import cairn (a bare python that can't
is the #1 failure β prove the path first, QUICKSTART Β§6a):
π¬ Proof: ask the chat to "call cairn_orient". (doctor can't see this wire β the ask is the test.)
python -X utf8 -m cairn setup β y for Codex (= codex-hook install).
Captures turns live as Codex fires notify (deduped by turn id). For a comprehensive
sweep of everything on disk, run π₯οΈ python -X utf8 -m cairn import codex-sessions --apply anytime.~/.codex/config.toml, then fully restart Codex
(full Β§6 walk-through):~/.codex/AGENTS.md and paste the memory protocol from
QUICKSTART Β§6c so Codex orients, fetches,
and notes unprompted. (Needs piece 2 β the protocol calls those tools.)β
Done when: π₯οΈ python -X utf8 -m cairn codex-hook status prints INSTALLED,
and π¬ a Codex chat answers "call cairn_orient" with a digest (with piece 3, its first
reply starts [cairn: oriented β N]).
β οΈ Honest note: cairn doctor structurally detects Codex MCP registration (the
[mcp_servers.cairn] block), but it does not prove the server launches or that the notify
hook captures β the checks above are the real proof of those.
π Add to claude_desktop_config.json (or Cursor's MCP settings), then restart the app:
That's the tools wire β search, fetch, wander, note from inside the chat. These
surfaces have no ambient capture; what you ask the AI to cairn_note is what lands.
(If the app can't find Python, use the full path of the Python that installed Cairn.)
β
Done when: doctor shows β MCP β registered in Claude Desktop config
(Desktop), or π¬ the "call cairn_orient" smoke test answers (Cursor).
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-remembers)<a href="https://allmcps.com/mcp/cairn-remembers"><img src="https://allmcps.com/api/badge/cairn-remembers?style=directory" alt="Cairn Remembers on AllMCPs" /></a>