
Cairn
A self-hosted memory platform that runs as four Docker containers: MCP server, web UI, PostgreSQL with pgvector, and Neo4j for knowledge graphs. Exposes 16 MCP tools including store, search, recall for persistent memory across sessions, plus beliefs for tracking epistemic state, work_items for task management, and code_query for structural analysis of 30 languages via tree-sitter. Memory search fuses vector similarity, recency, keyword matching, and tags through Reciprocal Rank Fusion. Includes bi-temporal tracking to separate event time from creation time, automatic memory consolidation, and optional auto-enrichment via local LLMs or hosted APIs. Auth off by default but supports JWT and OIDC when needed. Built for people who need memory that works across projects and sessions without reinventing it per runtime.
- GitHub stars
- 7
- tool
- 1
- auth
- Secret needed
- transport
- STDIO
- env vars
- 4
- last updated
- Feb 11, 2026
Tools
1 toolsPublic tool metadata for what this MCP can expose to an agent.
code_queryQuery the code graph for relationships such as dependents, callers, call chains, dead code, complexity, impact, hotspots, and symbol search.
Query the code graph for relationships such as dependents, callers, call chains, dead code, complexity, impact, hotspots, and symbol search.
No parameter schema in public metadata yet.
Sponsors
Configuration
CAIRN_DB_HOST*PostgreSQL host (pgvector)
CAIRN_DB_PASS*secretPostgreSQL password
CAIRN_TRANSPORTdefault: stdioTransport mode: stdio or http
CAIRN_LLM_BACKENDdefault: ollamaLLM backend for enrichment: bedrock or ollama
Readme
Cairn — persistent memory for agents and humans
[!IMPORTANT] Cairn is retired, and this repository is archived (read-only). Its successor is rill — a faster, leaner, MCP-native memory server written in Go that learned from everything Cairn got right (and the things it got wrong). Cairn was the first; rill is where the work continues. This repo stays up as a read-only archive — explore it, fork it, but new development lives in rill.
Details
- Repository
- github.com/jasondostal/cairn-mcp
- Categories
- AI & LLM Tools, Search & Web Crawling
- Package
ghcr.io/jasondostal/cairn-mcp:0.21.2- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active