Cairn.ink Memory logo

Cairn.ink Memory

Shared, inspectable memory for Claude Code and Codex with local SQLite or cloud storage and source text for every memory.

Install Cairn.ink Memory

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "cairn-ink-memory": {
      "command": "npx",
      "args": [
        "-y",
        "@cairn-ink/memory"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio cairn-ink-memory -- npx -y @cairn-ink/memory

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @cairn-ink/memory

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Cairn.ink Memory gives Claude Code and Codex shared memory across sessions, with tools to save, search, inspect, correct, and forget information. It can store data locally in SQLite without an account or use cairn.ink for cross-computer access and automatic recall. Each saved memory retains the submitted source text as a Source Receipt, allowing agents to review its origin before using it. Reach for it when agents need continuity for preferences, project decisions, facts, or searchable past conversations.

Use cases

  • Save user preferences across Claude Code and Codex sessions
  • Search past conversations for project decisions
  • Inspect the source behind a stored memory
  • Correct outdated facts or preferences
  • Forget memories that should no longer be used

Key features

  • Shared memory for Claude Code and Codex
  • Local SQLite or cairn.ink cloud storage
  • Source Receipt attached to each memory
  • Search across memories and saved conversations
  • Memory correction and forgetting tools
  • Optional automatic cloud recall

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 61d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · @cairn-ink/memory (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars58Stargazers on the source repository.
npm downloads3.4kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Cairn.ink Memory works

What Cairn.ink Memory does

Cairn.ink Memory provides cross-session memory for Claude Code and Codex through MCP. It stores preferences, decisions, and facts that an agent or user chooses to retain, then makes them available in later sessions. The same memory store can serve both tools.

Every memory includes a Source Receipt: the text submitted when the memory was created or corrected. This provides context for reviewing a memory, but it is not evidence that the memory is true. Memories can be revised or removed from use when they become inaccurate.

The system also works with saved conversations. In Local mode, conversations are searchable text stored on the computer. In Cloud mode, conversations are sent to cairn.ink, which can extract memories automatically and add relevant memories to prompts. Cloud mode also provides Cards, topic pages that organize related memories; Cards are not built by default in Local mode.

How it works

Setup asks whether memory should live locally or in the cloud. Local mode uses a SQLite database and does not require an account, model key, or network transfer to Cairn. Cloud mode requires a cairn.ink account and uses the same memory across computers after sign-in.

Local lookups can return matching memories and dated excerpts from indexed conversations. New conversation turns are generally searchable within seconds, while older material may take longer to index after setup or an upgrade. Local conversation capture is available on Linux and WSL, and for Claude Code on macOS.

Cloud mode masks likely secrets on the computer before sending conversation text, but masking is best-effort. Users can pause and resume cloud capture with the package commands. Automated Codex runs are not saved unless explicitly enabled, and automatic Codex memory depends on installer-verified Codex versions.

Setup and configuration

Run the package setup command with Node.js 22.16 or later:

Terminal
npx @cairn-ink/memory setup

Use --local or --cloud to choose a mode without the interactive prompt. Claude Code or Codex must be available on PATH. Restart both clients after setup; Codex users must also open /hooks and allow the Cairn entries.

Local data is stored by default at ~/.cairn-memory/data/memory.sqlite, with plaintext search indexes in a neighboring directory. Local conversation capture can be disabled with npx @cairn-ink/memory config --local-capture off or skipped during setup with --no-capture. Cloud capture can be paused with npx @cairn-ink/memory pause and resumed with npx @cairn-ink/memory resume.

Tools and capabilities

  • remember_memory saves a memory with its source text.
  • find_memory_candidates searches memories and saved conversations by keyword without a model key.
  • read_memory_context retrieves searchable memory context without a model key.
  • recall_memory lets a model select relevant memories and requires an OpenAI key.
  • inspect_memory shows a memory, its current revision, and its Source Receipt.
  • correct_memory replaces the content of an existing memory.
  • forget_memory takes a memory out of use.

Local mode also provides commands to list saved conversations without their text and preview or confirm deletion by conversation ID. Deleting a conversation does not automatically remove memories created from it.

Limitations and notes

A computer runs one mode at a time, and memories do not transfer between Local and Cloud mode. Local databases and search indexes are plaintext. Local conversation storage is capped at 200 MB. Cloud mode sends masked, length-limited prompt copies and conversation text to cairn.ink, so its privacy behavior should be reviewed before enabling it for work conversations.

On Node.js 24.22.3, some searches may be slower because of the bundled SQLite version, which can reduce recall for large memory collections without affecting saved data. The project is a developer preview.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cairn.ink Memory

Cairn.ink Memory is an MCP server that gives Claude Code and Codex shared cross-session memory through local or cloud storage. Its main tools save, search, inspect, correct, and forget memories, while retaining the source text submitted with each memory so agents can review its origin before relying on it.

Run `npx @cairn-ink/memory setup` with Node.js 22.16 or later and Claude Code or Codex on your `PATH`. Choose Local or Cloud mode during setup, or pass `--local` or `--cloud`, then restart the clients when setup finishes.

Local mode stores memories and captured conversations in a plaintext SQLite database on the computer, with plaintext search indexes beside it. The default database path is `~/.cairn-memory/data/memory.sqlite`; no Cairn account, model key, or Cairn data transfer is required.

Use `correct_memory` to replace what a memory says, or `forget_memory` to take it out of use. `inspect_memory` shows the current revision and its Source Receipt before you change it.

Local mode automatically captures supported Claude Code and Codex conversations on Linux and WSL, and Claude Code conversations on macOS. Cloud mode saves conversation text after sign-in, while automated Codex runs require opting in.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCairn.ink Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cairn-ink-memory?style=directory)](https://allmcps.com/mcp/cairn-ink-memory)
HTML Embed
<a href="https://allmcps.com/mcp/cairn-ink-memory"><img src="https://allmcps.com/api/badge/cairn-ink-memory?style=directory" alt="Cairn.ink Memory on AllMCPs" /></a>