Cairntir
@pnmcguire480
About Cairntir
Memory-first reasoning layer for Claude Code. Kills cross-chat AI amnesia. MCP server, verbatim storage, prediction-bound drawers, belief-as-distribution retrieval.
Basic information
Category
AI & Agents
License
MIT
Runtime
python
Transports
stdio
Publisher
pnmcguire480
Submitted by
Patrick McGuire
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"cairntir": {
"command": "cairntir-mcp"
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Cairntir?
Cairntir is a local-first, open-source memory system for Claude Code and other Model Context Protocol (MCP) clients. It stores every decision, fact, and lesson that a model writes down — verbatim, with no summarization — in a SQLite database, so that each new chat session inherits the full context from previous ones. It is designed for solo developers, small teams, tool builders, and researchers who want to eliminate the productivity tax of re‑explaining past work across chat sessions.
How to use Cairntir?
Install with pip install cairntir, then run cairntir setup — an interactive wizard that configures the MCP registration in one command. Fully quit and reopen Claude Code (or any MCP client). The server automatically registers a stable launcher and silently re‑registers if the client can’t find it. Six MCP tools are available over stdio: cairntir_session_start, cairntir_recall, cairntir_remember, cairntir_timeline, cairntir_audit, and cairntir_crucible. Two environment variables (CAIRNTIR_DISABLE_AUTOREGISTER and CAIRNTIR_DISABLE_UPDATE_CHECK) allow opt‑out for CI or air‑gapped use.
Key features of Cairntir
- Verbatim storage – no summarization, full context preserved forever.
- Four‑layer retrieval: identity, essential, on‑demand, and deep.
- Semantic search via
sqlite-vecfor fuzzy recall. - Prediction‑bound drawers with belief‑as‑distribution ranking.
- Portable signed format (content‑addressed, HMAC‑signed) for sharing.
- Consolidation pass with forgetting curve and contradiction detection.
- One‑command installation wizard (
cairntir setup).
Use cases of Cairntir
- Avoiding the Monday re‑explanation cycle for daily Claude Code users.
- Providing a per‑developer memory layer that can later become a shared, gossip‑able memory for small teams.
- Embedding persistent context into products that use an MCP client.
- Tracking which hypotheses held and which failed with prediction‑bound drawer schema (experiment journal).
- Supporting longer‑term projects such as post‑scarcity manufacturing research (horizon goal).
FAQ from Cairntir
What makes Cairntir different from other memory tools?
Cairntir stores everything verbatim, offers a four‑layer retrieval taxonomy, uses semantic search, prediction‑bound drawers, belief ranking, consolidation with forgetting curve, and a portable signed format — features that alternatives like MemPalace or ad‑hoc CLAUDE.md files do not fully cover.
What are the runtime requirements?
Python 3.11+ and a SQLite database with sqlite‑vec support. No other external dependencies or services are required.
Where does the data live?
All memory data is stored locally in a SQLite database on the user’s hard drive. It is not sent to any remote server.
What transport does the MCP server use?
The server communicates over stdio (standard input/output) using the Model Context Protocol.
How do I install and remove it?
Install: pip install cairntir then cairntir setup. Uninstall: pip uninstall cairntir. The setup wizard handles all MCP registration; the server’s launcher is stable across venv moves and Python upgrades.
More AI & Agents MCP servers
LinkedIn MCP Server
stickerdanielOpen-source MCP server for LinkedIn. Give Claude and any MCP-compatible AI agent access to profiles, companies, jobs, and messages.
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
MCP-LLM Bridge
patruffBridge between Ollama and MCP servers, enabling local LLMs to use Model Context Protocol tools
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
Web Agent Protocol
OTA-Tech-AI🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
Comments