Cairntir

Cairntir

cairntir•bypnmcguire480

A local-first persistent memory system for AI coding agents, storing verbatim project memories in a local SQLite database and exposing them through an MCP server.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Stores decisions, facts, unfinished work, and outcomes as verbatim drawers in a local SQLite database with sqlite-vec.
  • •Offers a budgeted handoff that restores whole drawers across sessions and semantic and file-anchored recall.
  • •Exposes the memory through an MCP server with 22 tools over stdio.
  • •Supports opt-in, read-only transcript recovery of bounded host-owned transcript tails from selected hosts.

BEST FOR

  • •Developers wanting a shared searchable project history across multiple MCP-capable coding agents.
  • •Agents that need to resume unfinished work across sessions via scoped handoffs.
  • •Recalling past reasoning tied to specific files or changes.

ABOUT CAIRNTIR

Cairntir is cataloged as an MCP server attributed to pnmcguire480. A local-first persistent memory system for AI coding agents, storing verbatim project memories in a local SQLite database and exposing them through an MCP server. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Cairntir are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where is Cairntir's memory stored?

Memory lives in a local SQLite database with sqlite-vec that you own, and embeddings run locally.

What are wings, rooms, and drawers?

A wing is a project, a room is a topic, and a drawer is one verbatim memory.

Does transcript recovery happen automatically?

No. Transcript recovery is opt-in, separately budgeted, read-only, and untrusted, and saving a recovered request requires explicit selection.

上游原版 README

在 GitHub 查看同一版本原文

README.md · eeceb0b49955 · 采集于 2026-11-13 11:34:21 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Cairntir

1.14.0 carries the work toward 2.0: feature status and limits. Upgrading from 1.12 or earlier? Semantic search and saving stop until you run one reindex command; read the upgrade guide first. 2.0.0 is reserved for the finished roadmap.

Persistent, local-first memory for AI coding agents. Claude Code, Codex, Cursor, Qwen Code, and other MCP clients share one searchable project history.

PyPI Python 3.11+ MIT

Cairntir stores decisions, facts, unfinished work, and outcomes as verbatim drawers in a SQLite database you own. A budgeted handoff restores complete drawers across sessions; semantic and file-anchored recall find deeper evidence.

Current release: 1.14.0. See feature status and changelog. Published downloads are on PyPI and GitHub Releases.

Install

pip install --upgrade cairntir
cairntir setup

Python 3.11+ is required. Setup initializes the store and configures supported hosts it detects. Restart your agent afterward.

cairntir version
cairntir doctor

pip install selects 1.14.0, which includes the read-only diagnostics below. Older releases' doctor/status/version may still run registration and update callbacks, and status may open the store for writing.

In this candidate, version reports this CLI's version. status and doctor inspect the store and configuration without registering hosts or checking for updates. A configured MCP entry does not prove a live connection. Setup's local write/read check does not prove host delivery or semantic retrieval: require an actual save receipt, then recover the exact task in a fresh chat using the verification steps.

The change and adoption record distinguishes candidate, released, installed and host-verified changes, with remaining checks and rollback boundaries. Source edits do not update an already-running host.

For one host or project, use cairntir init --host codex; add --user for user-scope configuration. Cursor's global User Rule requires a manual paste; setup prints the rule and reports that step.

Follow the getting-started guide for configuration, verification, recovery, and troubleshooting.

Use

Ask your agent to remember a decision in your project's wing, then start the next task with cairntir_handoff(wing="myproject"). A wing is a project, a room is a topic, and a drawer is one verbatim memory.

cairntir handoff myproject
cairntir handoff myproject --task "repair cache invalidation" --budget 8192
cairntir recall "why did we choose Postgres?" --wing myproject
cairntir recall-for-change src/auth.py
cairntir recover --host codex --wing myproject
cairntir cost myproject

Handoff returns whole drawers or names those omitted by its character budget. It includes recent default-layer writes, open predictions, and optional code anchors. Settlements append observed outcomes without rewriting predictions.

Portable evidence preserves source identities and relationships across stores. Evaluated procedures require holdout evidence and local approval; scoped sharing limits access with owner-issued grants.

Host support

SurfaceSupport
SetupClaude Code, Cline, Codex CLI, Copilot CLI, Cursor, Gemini CLI, OpenCode, Qwen Code
Transcript recoveryClaude Code, Codex, Qwen Code
Other MCP clientsConfigure the cairntir-mcp stdio command manually
Cursor transcriptsUnsupported; an explicit receipt explains the limitation

Transcript recovery is opt-in, separately budgeted, read-only, and untrusted. It reads bounded host-owned transcript tails; it cannot recover text the host never persisted. Saving a recovered request requires explicit selection with cairntir recover ... --write N. Memory is not automatically made authoritative merely because it appeared in a transcript or imported file.

Data and safety

The authoritative store is local SQLite with sqlite-vec. Embeddings run locally; first use may download the embedding model. Optional update checks contact PyPI, and explicitly selected LLM adapters can contact their provider. Cairntir is not a sandbox for the agent using it.

Portable JSONL verifies content hashes and optionally HMAC signatures through the Python API. The CLI imports as untrusted and does not verify signatures. Version 1 cannot safely import source-local history references; use a database backup for linked history. Export/import also enforce the format's external-URL restriction. See data handling for backup and trust boundaries.

Build and integrate

The MCP server exposes 22 tools over stdio. Stable Python protocols support custom backends; see the integration guide.

src/cairntir/
├── memory/       # SQLite storage, embeddings, retrieval
├── mcp/          # stdio server and backend
├── reason/       # prediction, experiment, observation
├── recipes/      # composable workflows
└── cli.py        # cairntir setup | init | handoff | recover | recall | replay | hotfix | doctor | export | import
tests/            # unit, integration, contract, property, evaluation
docs/             # guides, architecture, recipes, release evidence

Contributing documents the locked development environment and required checks. Tests enforce at least 80% coverage of the measured surface; transport entrypoints are excluded and tested separately. The LongMemEval subset is a regression gate, not a general benchmark claim.

Documentation

Cairntir (CAIRN-teer) combines a cairn, a waypoint of stacked stones, with a seeing-stone. Maintained by Patrick McGuire. MIT licensed.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Cairntir from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/cairntir)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent