Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 67
  • 8 stars
  • 42 a week
  • MIT
  • Updated

Install Agentcairn

Built from the published package, never by AI.

claude mcp add agentcairn -- npx -y agentcairn

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agentcairn in Claude Code

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

A

No 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 →

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.

Agentcairn Install

Add to stack

Loading.