jasondostal avatar

Cairn

jasondostal/cairn-mcp

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 tools

Public 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*secret

PostgreSQL password

CAIRN_TRANSPORTdefault: stdio

Transport mode: stdio or http

CAIRN_LLM_BACKENDdefault: ollama

LLM backend for enrichment: bedrock or ollama

Readme

Cairn — persistent memory for agents and humans

Release License MCP PostgreSQL

[!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.



View the full README on GitHub

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

Related AI & LLM Tools MCP servers

View all
1louis49 avatarMelchizedeklouis49/melchizedekPersistent memory for Claude Code — offline, single-file, hybrid search.7stars
2paarths-collab avatarGitHub PR Contextpaarths-collab/github-pr-context-mcpRetrieves GitHub PR history as context material; the connected IDE agent does the reasoning.7stars
3agenerationforwordz-tech avatarStrataagenerationforwordz-tech/strataSelf-hosted AI memory server. Persistent memory on your hardware, not the cloud.6stars
4dgenio avatarChainWeaverdgenio/chainweaverExpose deterministic ChainWeaver flows as MCP tools without LLM calls between steps.6stars
5es617 avatarDbgprobe Mcp Serveres617/dbgprobe-mcp-serverLet AI agents interact with debug probes — connect, flash, read/write memory, and reset.6stars
6continuum-ai-corp avatarOrcaRoutercontinuum-ai-corp/orcarouter-mcp-serverBrowse 160+ LLM models and live pricing — no API key needed for catalog. Add key to route chat.6stars