Agentcairn
MCP server by itsmemac Verified · npm:agentcairn
Agent Cairn gives AI coding agents a shared, persistent project memory stored in Neo4j. Agents connect over MCP and start from a token-budgeted briefing instead of re-reading the repository. It is for developers who work across machines or in teams.
Install Agentcairn
Built from the published package, never by AI.
claude mcp add agentcairn -- npx -y agentcairnRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agentcairn": {
"args": [
"-y",
"agentcairn"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agentcairn": {
"args": [
"-y",
"agentcairn"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agentcairn": {
"args": [
"-y",
"agentcairn"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agentcairn -- npx -y agentcairn{
"mcpServers": {
"agentcairn": {
"args": [
"-y",
"agentcairn"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agentcairn npx -y agentcairnGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agentcairn block.
About
Agent Cairn is a shared, persistent memory for AI coding agents. Memories are stored in Neo4j on a server you run, typically with Docker. Agents record decisions, conventions, gotchas, overviews and checkpoints through MCP tools, and cairn_briefing returns the most important memories for a project within a token budget.
When work moves to another session or machine, the agent writes a handoff and the next agent can resume from it. Projects are private by default and can be shared as viewer, editor or maintainer. A dashboard shows memories, requests and access. The server never calls an LLM itself, so no API key or per-token cost is needed. It is intended for developers using Claude Code on several computers or in a team.
Written from the project's README and checked against it.
Tools it gives your assistant
cairn_briefingReturns a budgeted briefing for a project, or onboarding instructions for an empty project.cairn_resumeGives the full handoff, recent sessions and open threads from someone else's work.cairn_handoffWrites where the work stands so the next agent can carry on.cairn_recallSearches memories by text, kind and area.cairn_rememberRecords a decision, convention, gotcha, overview, open thread or glossary term.cairn_checkpointRecords a finished goal, its decisions and what is next.cairn_areasLists the areas that memories are filed under.cairn_forgetDeletes a memory that was wrong.cairn_statusChecks the connection, the project and memory counts.cairn_initLinks the current folder and installs the hooks from within the conversation.
What you need
- Docker
- Neo4j, bundled in the Docker compose profile or an existing instance
- Claude Code
- Node.js 20.12 or newer for npx
Try asking
- Call cairn_status and tell me whether the project is connected.
- Resume the work from the last handoff in this project.
- Remember this convention: use pnpm for all installs in this repository.
Good to know
- The server never calls an LLM, so agents write the memories themselves.
- The Live, Query and System dashboard views are admin only.
- Request payloads are kept in memory only, the last 2,000 of them.
- Projects are private to their owner until the owner shares them.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agentcairn
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Agentcairn: common questions
Does Agent Cairn need an LLM API key?
No. The source says the server never calls an LLM, so there is no API key and no per-token cost.
Where is the memory stored?
In a Neo4j database on a server you own. The source says you can inspect it directly.
Can several people share one project memory?
Yes. An owner can share a project with other users as a viewer, editor or maintainer.
How do I install Agentcairn?
In Claude Code run claude mcp add agentcairn -- npx -y agentcairn. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agentcairn the official server?
Agentcairn is published by npm:agentcairn from its verified domain in the official MCP Registry.
Is Agentcairn free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Agentcairn safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Agentcairn?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Agentcairn work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
