# Cairn.ink Memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Cairn-ink/cairn-memory  
**GitHub Stars:** 58  
**npm Downloads (last month):** 3412  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cairn-ink-memory

## Description
Cross-session memory for AI agents with a Source Receipt for every memory, over MCP.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "cairn-ink-memory": {
    "command": "npx",
    "args": ["-y","@cairn-ink/memory"]
  }
}
```

## Documentation

## 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:

```sh
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.

_Full upstream README: https://allmcps.com/mcp/cairn-ink-memory/readme_

