Cairn
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CairnWhat's the deploy command for acme/checkout?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cairn
Cairn is an append-only store of typed facts. An agent asserts a fact in one session and recalls it, with a freshness verdict, at the start of the next.
Facts persist in SQLite. The desk is optional. The work happens on JSON and MCP.
Install
npx cairn init --project
npx cairn devinit --project creates .cairn/cairn.db, wires Cursor (.cursor/mcp.json), and wires Pi (.mcp.json).
Global install without a project file:
npx cairn initRelated MCP server: identity-storage-mcp
Commands
Command | Purpose |
| Database + Cursor + Pi MCP config in the current repo |
| Desk and API on port 4721 |
| Production server after |
| Stdio MCP server for agents |
| Print live beliefs as JSON |
Agent contract
Send JSON to POST /api/cairn or call MCP tools cairn_recall and cairn_request.
Every write carries an idempotencyKey. Replay the same key and body after a crash and Cairn returns the original result without writing twice.
Recall returns freshness and assurance on each belief. Branch on response.kind. Rejections include error.remedy.kind.
Example assert
curl -s http://127.0.0.1:4721/api/cairn \
-H 'content-type: application/json' \
-d '{
"kind": "assert",
"idempotencyKey": "s-021-deploy",
"onConflict": "supersede",
"draft": {
"entity": "repo:acme/checkout",
"attribute": "deploy.command",
"value": { "kind": "text", "text": "bin/ship --env staging" },
"provenance": {
"kind": "observed",
"command": "cat Makefile && bin/ship --help",
"session": "s-021"
},
"validity": { "kind": "until-superseded" }
}
}'Harness plugins
Cursor. After cairn init --project, .cursor/mcp.json includes a cairn server that runs npx cairn mcp.
Pi. The same init writes .mcp.json for Pi and other MCP clients. Pi reads .mcp.json and host imports such as cursor.
Desk and canvas
Open Desk (/) for the beliefs table and Agent API console. Open Canvas (/canvas) to see each agent or session as a draggable container with the facts they contributed.
Agents group by provenance.by for told facts and by provenance.session for observed or inferred facts. Drag pods to arrange the board; layout persists in .cairn/canvas.json.
Publish and install from npm
npm publish
npx cairn init --project
npx cairn devThe published tarball ships the full desk, canvas, API, CLI, and MCP server. Requires Node 20+.
Development
npm install
npm test
npm run devDatabase path resolves to ./.cairn/cairn.db when that directory exists, otherwise ~/.cairn/cairn.db. Override with CAIRN_HOME or CAIRN_DB_PATH.
Release trailer (Remotion)
A ~30s product trailer for X lives in cairn-trailer/. Preview with npm run dev inside that folder, or render:
cd cairn-trailer
npx remotion render CairnTrailer out/cairn-v0.4-trailer.mp4See cairn-trailer/x-post-draft.md for suggested post copy.
What Cairn refuses
Free-form JSON values. Semantic search. Editing facts in place. Waiting on a human mid-request.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides a memory layer for personal agents, enabling MCP-compatible agents to store and query profile, factual, episodic, and procedural memory.MIT
- AlicenseAqualityBmaintenanceProvides persistent, inspectable memory storage for AI agents using SQLite. Agents can store, recall, and search memories across sessions via three MCP tools.3MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives agents persistent memory with namespaced facts, tags, full-text search, and TTL expiry, all running locally on SQLite with zero external dependencies.1MIT
- AlicenseNot gradedqualityFmaintenanceLocal-first, auditable memory for AI agents. Provides durable context for MCP hosts with SQLite storage, CLI, and MCP tools for memory management.2Apache 2.0
Related MCP Connectors
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Cross-vendor AI memory over MCP. One semantic store, readable and writeable from every MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuarkOS/Cairn'
If you have feedback or need assistance with the MCP directory API, please join our Discord server