Persistent memory + causal root-cause analysis for AI coding agents. 124 MCP tools. EU, GDPR.
io.github.cachly-dev/mcp-server β Model Context Protocol (MCP) Server
This MCP server provides persistent memory and causal root-cause analysis for AI coding agents. It exposes 124 MCP tools and is positioned for agent workflows that rely on stored context across sessions, including codebase knowledge.
π οΈ Key Features
Persistent memory
Causal root-cause analysis
EU, GDPR (as stated)
π Use Cases
Remembering conversations (ChatGPT and Claude context)
Remembering a codebase (βcachly remembers your codebaseβ)
Capturing decisions and troubleshooting history (e.g., bug fixes, why Postgres was chosen, and deploy steps)
β‘ Developer Benefits
Context persists when teammates leave
Knowledge follows you when switching assistants
β οΈ Limitations
Only the provided documentation excerpt and metadata are available here; no other operational details are included beyond the listed features and tool count.
The bug you fixed. Why you chose Postgres. The deploy step that always breaks β and
everything your teammates learned. It stays when someone leaves the team, and it
comes along when you switch assistants.
You are a good engineer. You want to ship, not babysit a forgetful assistant.
But every session starts at zero. Your AI doesn't remember the race condition you
chased for three hours on Tuesday. It doesn't know your deploy gotchas. It can't tell
you that Carol already solved this exact bug in March β because Carol's knowledge
lives in Carol's head, and yours in yours.
So you re-explain. You re-research. Your team makes the same mistake in five different
branches. And when someone leaves, their hard-won knowledge walks out the door with them.
The villain isn't your AI. It's amnesia. Context death between sessions, and
knowledge silos between people. The average developer loses ~45 minutes a day
re-establishing context that should already exist.
You don't need a smarter model. You need a memory that doesn't reset β and one that
your whole team shares.
Meet your guide
cachly is the brain layer that sits under whatever AI you already use. We've watched
hundreds of teams lose the same knowledge the same way, and we built the fix:
It learns automatically β from every commit, every fix, every session. No extra calls.
It arrives pre-briefed β your AI opens each session already knowing your stack.
It's shared β one engineer's solved bug becomes the whole team's reflex.
It's provable β 78.6 % Precision@1 on an external labelled corpus, with a CI gate
that fails the build below 71.0 % (see the benchmark). A claim without a
number is marketing; a number without a gate is a screenshot.
It's neutral β speaks MCP, so it works with
Claude, Cursor, Copilot, Windsurf, Cline, Zed. Switch models anytime β your brain stays.
We're not the hero of this story. You are. cachly is the thing that makes you the
engineer whose AI never forgets and whose team compounds knowledge instead of losing it.
Taste it first β no account, no risk
bash
npx @cachly-dev/mcp-server@latest demo
Run it in any project folder. It reads YOUR git history and shows what your AI would
know β your bugs fixed, your patterns, your past decisions. Nothing leaves your machine.
code
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Brain Preview β What your AI would know β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Commits: 847 Lessons: 634 Contributors: 7 β
β Date range: 2024-01-12 β 2026-05-14 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Security fixes your AI would know: β
β β’ fix(auth): JWT expiry check before signature validation β
β β’ security: sanitize webhook payload before JSON.parse β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Bug fixes your AI would remember: β
β β’ fix: Redis pub/sub race condition under high concurrency β
β β’ fix: k8s readinessProbe threshold too low for cold start β
β β’ fix: Stripe idempotency_key missing on retry path β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β With cachly, your AI arrives pre-briefed every session. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Like what you see? Make it permanent in the next step.
Brain-first β Semantic Cache as Proof-Point
cachly is not a semantic cache with a brain bolt-on. The Brain is the product. The
Semantic Cache is the proof-point β it shows ROI in dollars from day one, with zero
trust required. It opens the door. The Brain is why teams never leave.
Wedge β Land
Moat β Retain
Feature
Semantic Cache
AI Brain (Lessons, Recall, Team-Sharing)
Value
Measurable cost savings from day one
Compounding team intelligence
Metric
Cache-hit rate, $/month saved
Lessons retained, WoW trend, recall quality
Analogy
Datadog APM (surfaces the problem)
Stripe (becomes critical infrastructure)
The org-level advantage: Brain lessons and cache hits are shared across the whole
team β one person's fix becomes every agent's reflex. Anthropic Projects Memory is
per-user and model-locked. cachly is team-wide and model-neutral. That's the structural
moat no first-party tool can build.
Claude Code declares the MCP server for you; there is no JSON to write and no
path to set. Paste your brain ID once with /plugin configure cachly-brain@cachly
and you are done. (From v0.10.139 the server sets itself up on first use β
an anonymous 14-day trial brain, nothing to copy.)
Check it worked with claude mcp list β you should see
plugin:cachly-brain:cachly β¦ β Connected. Note that claude plugin details
reports MCP servers (0) even when the server is running; it does not count
them.
VS Code β one click
Install the cachly Brain
extension. It signs you in silently and creates your brain β no account form.
JetBrains β one click
Install Cachly Brain
from the JetBrains Marketplace (IntelliJ, PyCharm, GoLand, WebStorm, Rider).
Status bar, brain health and the lessons view live in the IDE; the source is
at cachly-dev/cachly-intellij.
The npx β¦ autopilot path below also configures JetBrains AI Assistant.
MCP Registry β for any client that reads it
The server is listed in the official MCP Registry
as io.github.cachly-dev/mcp-server, every release, same day. Clients that
browse the registry (Claude Desktop, Goose, VS Code's MCP gallery and others)
find it there by name; the entry points at this npm package.
Anything else β one command
bash
npx @cachly-dev/mcp-server@latest autopilot
Autopilot does everything in a single command: it auto-detects every AI editor you use,
writes the MCP config, signs you in via browser device-flow (one click, no password, no
credit card), and bootstraps your brain from git history. Restart your editor and your AI
arrives pre-briefed β every session, automatically.
Already inside Claude / Cursor / Copilot? Paste this to your AI and it configures everything itself:
code
Set up cachly for this project. Run: npx @cachly-dev/mcp-server@latest autopilot
It gives my AI persistent memory across sessions. Follow the browser login
(one click, no credit card), then restart the editor.
Our agreement with you: Free forever tier. GDPR, EU servers. No model lock-in β
leave anytime and take your data: npx @cachly-dev/mcp-server@latest export writes
every lesson to lessons.md (to read) and lessons.jsonl (to reuse). Code excerpts
are stored only if you call index_project yourself β and only on your own EU
instance.
What changes the moment you turn it on
The moment
Without cachly
With cachly
Session start
"What's your architecture again?"
"Ready. 23 lessons. Last session: deployed API."
A known bug returns
Re-researches from scratch
"You fixed this March 12 β here's the exact command."
This is the transformation: from the engineer who re-explains everything every
morning β to the team whose collective brain never forgets and gets sharper with
every commit.
cachly vs. Claude's built-in memory
Anthropic now ships memory for Claude β and it's genuinely good for one developer,
using only Claude, alone. That's not the game we're playing. Here's the honest map:
β 78.6 % Precision@1, CI gate at 71.0 % (benchmark)
β no public metric
Governance (review, attribution, audit)
β team_confirm, roles, audit trail
β
Self-hosting / BYOK / VPC
β data stays in your infra
β Anthropic-hosted
Survives a model switch
β your brain is yours
β memory is gone or fragmented
Zero-setup for one solo user
β οΈ ~1 command
β built in
The honest takeaway: if you're a solo dev who only ever uses Claude, the built-in
memory is great β use it. If you work on a team, switch tools, care about proof,
or need governance and data residency, that's a gap Anthropic structurally can't
close without breaking its own lock-in. That gap is where cachly wins.
vs. other memory tools
cachly
mem0
MemGPT / Letta
Plain CLAUDE.md
Persistent memory
β
β
β
Manual
MCP server (no code changes)
β
β
β
β
Causal root cause analysis
β
β
β
β
Fully automatic (no explicit calls)
β
β
β
β
Team knowledge graph + attribution
β
Paid
β
β
Provable recall lift (published)
β
β
β
β
Git-ambient learning
β
β
β
β
GDPR / EU servers
β
β
β
β
Free tier forever
β
Limited
β
β
The standout moves
Capability
What it does
causal_trace
Root-cause analysis through memory: problem β causal chain β the fix that worked, with date and commands. No other system builds and queries a causal graph.
brain_who_knows
"Who on my team knows about Kubernetes deploys?" β ranked experts π₯π₯π₯, built automatically from authorship.
brain_file_map
Before you touch a file: who's worked on it and which lessons reference it.
team_expertise_map
The whole team's skills matrix in one table β onboarding and bus-factor insurance.
brain_collab_pairs
PersonβPerson Collaboration Graph β "Frag X und Y, die haben das zusammen gelΓΆst." Bus-factor alerts included.
brain_portability
W9 Model-Neutrality β config for 7 clients (Claude, Cursor, Copilot, Windsurf, Cline, Zed, Continue). "Same Brain, any model."
brain_from_git
Reads your entire git history and populates the team knowledge graph (people + files + lessons) β zero setup, retroactively.
brain_coverage / skill_gaps
A 0β100 health score for your knowledge + a ranked list of blind spots to fix.
brain_predict
Predicts likely failures before they happen, from past incident patterns.
Ambient Git
A git hook auto-extracts lessons from every commit. Zero extra calls.
causal_trace in action:
code
causal_trace(problem="auth breaks after restart")
β Root: k8s:namespace-terminating
β Via: keycloak:jwks-race
β Fix: PollUntilContextTimeout 3min β used this March 12, worked
30 minutes of git blame in one call.
What runs automatically after setup
Trigger
What the Brain does β no prompting
First tool call
Session starts; project indexed in background
Before every task
Recalls relevant past lessons
During debugging
Traces root causes through causal memory
Before deploys
Predicts failure risks from past patterns
After every fix
Stores the lesson with commands + file paths + author
Every git commit
Hook extracts a lesson from the commit
Editor closes
Session summary saved for next time
CLI Commands
bash
npx @cachly-dev/mcp-server@latest autopilot # One command β signs in, configures every editor, bootstraps from git
npx @cachly-dev/mcp-server@latest demo # Preview your Brain (no account needed)
npx @cachly-dev/mcp-server@latest bench # Recall quality vs flat-file memory (no auth required)
npx @cachly-dev/mcp-server@latest autosetup # Interactive variant β pick editors yourself
npx @cachly-dev/mcp-server@latest health # Check token, API, editors, git hook
npx @cachly-dev/mcp-server@latest digest # Weekly Brain summary β shareable
npx @cachly-dev/mcp-server@latest share # Generate a shareable stats card + tweet
npx @cachly-dev/mcp-server@latest publish # Publish your Brain as an importable link (--public)
npx @cachly-dev/mcp-server@latest badge # Get a live README badge for your Brain
npx @cachly-dev/mcp-server@latest invite # Invite a teammate to share your Brain
npx @cachly-dev/mcp-server@latest index . # Index a project's code into the Brain (CI-friendly)
npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git commits
Tip β auto-learn on every merged PR: run learn-git in CI via the
cachly-brain-setup GitHub Action
with mode: learn. Each merged PR teaches your Brain automatically.
CI integration β your pipeline teaches the Brain
Every CI run is a lesson: a redβgreen transition is a proven fix, a greenβred one is a
known cause. Ready-to-paste templates live in
src/ci-integration/:
GitHub Actions β copy brain-from-ci-action.yml
into .github/workflows/. It triggers on workflow_run (completed) and pushes the
outcome to your Brain. Requires CACHLY_API_KEY + CACHLY_BRAIN_INSTANCE_ID secrets
(CACHLY_JWT still works as a fallback).
GitLab CI β copy brain-from-ci-gitlab.yml
into your pipeline: two .post jobs (on_success / on_failure) with allow_failure: true.
Want more than outcome pushes? The full GitLab template
cachly.gitlab-ci.yml
adds hidden jobs for learn / scan / confirm β pull it in with
include: remote: (it is an includable template, not a CI/CD Catalog component).
Anything else β push-ci-outcome.mjs is a
standalone Node.js helper with zero dependencies. It always exits 0 β your CI never
fails because of a Brain push.
Already have months of CI history? Backfill it in one call with the brain_from_ci
MCP tool β bulk-ingests past outcomes the same way brain_from_git ingests commits.
MCP Tools (123 total, 27 in the default catalogue)
Your editor sees 27 of them, not 123 β on purpose. The full list cost
~27,750 tokens in every request, which is 14 % of a 200k window gone before
you type anything. The tools you use daily are listed individually; the other
96 sit behind one dispatcher:
code
cachly_tool(tool: "team_roster") run any of them by name
cachly_tool(tool: "team_roster", describe: true) get its schema first
Nothing is unreachable: the server dispatches by name and never consults the
catalogue, so team_roster called directly still works. Set
CACHLY_ALLE_WERKZEUGE=1 to get all 123 listed again.
Specialist AI agents vote to resolve contradictory lessons
memory_crystalize
Distill all lessons into a Crystal for instant team context
team_crystallize
Team Crystal β fixes that 2+ teammates independently converged on (the cross-person, causal layer)
𧬠Causal Intelligence
Tool
What it does
causal_trace
Root-cause analysis through the Causal Knowledge Graph
brain_predict / brain_predict_failures
Predict likely failures before they happen
brain_from_git
Bootstrap people + files + lessons from git history β incremental
brain_from_ci
Bulk-ingest CI outcomes: redβgreen becomes a fix lesson + causal fixes edge, greenβred a causes edge β brain_from_git for CI logs
memory_consolidate
Detect contradictions, merge duplicates, expire stale lessons
ckg_inspect
Inspect the causal graph around any concept
π Shareable & Public Brains
Tool
What it does
brain_seed_starter
Seed 16 universal lessons so your firstsmart_recall hits β auto-runs on a fresh repo
brain_share
Publish a Brain snapshot as a shareable link (public or unlisted) β a link to show off, not your data. For that, run npx @cachly-dev/mcp-server export
brain_import
Import any shared Brain into yours β topic_prefix, min_confidence, dry_run
brain_share_list / brain_unshare
List your shares Β· revoke a share (link goes dead)
brain_discover
Search the Brain marketplace for ready-made knowledge bases
Cache + semantic ops β pass org_id on cache_get/cache_set to share the cache org-wide (writes mirror to org:{org_id}:sem, reads fall back to it on miss)
cache_stats / cache_org_stats
Tokenmaxxing ROI: hits, estimated USD saved + monthly projection β per instance or aggregated across your whole org. Zero hits yet? You get a day-1 ROI projection instead.
β¦and ~70 more. Run health to see what's wired up in your editor.
FAQ
Does my AI need to call session_start manually?
No. Sessions start and end automatically on the first tool call and when the editor closes.
How is this different from Claude's built-in memory?
Claude's memory is per-user, Claude-only, flat-file, and unbenchmarked. cachly is
team-shared, model-neutral (any MCP client), structured + causal, governed, and has a
published recall benchmark. See the comparison table above.
Can my whole team share one Brain?
Yes β that's the point. team_learn / team_recall, or
npx @cachly-dev/mcp-server@latest invite teammate@example.com.
Is my code sent to cachly servers?
Only if you call index_project yourself: it stores a short excerpt (up to
summary_chars, default 1200 characters) per indexed file, on your own EU
instance. Every other tool stores lesson text, commit messages, session
summaries, and key-value context β no source code. All data on EU servers,
GDPR-compliant.
What is causal_trace and why is it unique?
Given any error, it walks the Causal Knowledge Graph to find root cause, intermediate
causes, and the exact fix that worked β including date and commands. No other memory
system builds or queries a causal graph.
What if I hit the context-window limit mid-session?
Call compact_recover. It reconstructs full context from Memory Crystal + recent
sessions + WIP registry β typically one tool call.
Editor support matrix
npx @cachly-dev/mcp-server@latest autopilot auto-detects and configures all of the
following. Manual snippets are in the Manual Setup section below.
Editor / Client
Auto-setup
Config file written
Global config
Notes
Claude Code
β
~/.claude/mcp.json + .mcp.json
β global always
Runtime device-flow sign-in on first tool call
Cursor
β detected via .cursor/
.cursor/mcp.json
β
Project-level; restart Cursor after setup
Windsurf
β detected via .windsurf/
.windsurf/mcp.json
β
Project-level; restart Windsurf after setup
VS Code + Copilot
β detected via .vscode/
.vscode/mcp.json
β
Requires VS Code MCP extension or Copilot chat
Cline
β detected via VS Code
.vscode/mcp.json
β
Shares config with Copilot; restart VS Code
Continue.dev
β detected via .continue/
.continue/config.json
β
Uses modelContextProtocolServers key
Zed
β detected via .zed/
.zed/settings.json
β
Uses context_servers key
Windsurf (global)
autosetup --editor windsurf
~/.windsurf/mcp.json
β
Pass --editor to target global config
Any other MCP client
autosetup --editor claude
.mcp.json
β
Standard mcpServers stdio format
Which sign-in path each editor uses:
Scenario
Path
autosetup from a real terminal (TTY)
OAuth device-flow β browser click β API key saved automatically
autosetup from VSCode task / CI (non-TTY)
Auto-detects non-interactive, opens browser with step-by-step guide, prints CACHLY_JWT=... autosetup instruction
cachly is bring-your-own-key and self-host friendly out of the box β no
enterprise contract required to keep data in your own infra.
Bring your own embedding key (BYOK). Semantic search runs on the embedding
provider you choose. Set one env var and cachly auto-detects it; no key needed if
you prefer cachly's server-side embeddings (uses your JWT):
Provider
Env var
Model
OpenAI
OPENAI_API_KEY
text-embedding-3-small
Google Gemini
GEMINI_API_KEY
text-embedding-004
Mistral
MISTRAL_API_KEY
mistral-embed
Cohere
COHERE_API_KEY
embed-english-v3.0
Ollama (local, free)
OLLAMA_BASE_URL
nomic-embed-text
cachly (server-side)
(none β uses JWT)
managed
Force a specific one with CACHLY_EMBED_PROVIDER=openai. Run
npx @cachly-dev/mcp-server@latest health to confirm which provider is active.
Point at your own backend (self-hosting). Every cachly install can talk to a
private backend instead of api.cachly.dev:
bash
# One-shot: wire up the wizard against your self-hosted backend
npx @cachly-dev/mcp-server@latest autopilot --api-url https://cachly.mycorp.internal
# Or non-interactively
npx @cachly-dev/mcp-server@latest autosetup \
--instance-id <uuid> --api-key <cky_live_...> \
--api-url https://cachly.mycorp.internal
autosetup bakes CACHLY_API_URL into the editor config only when it differs
from the default cloud β so default installs stay clean, and self-hosted installs
keep talking to your backend on every editor launch. All data stays in your infra.
Pricing
Tier
RAM
Price
Best for
Free
25 MB
β¬0/mo forever
Dev & side projects
Dev
200 MB
β¬19/mo
Individual developers
Pro
900 MB
β¬49/mo
Teams
Speed
900 MB + Dragonfly
β¬79/mo
AI-heavy workloads
Business
7 GB
β¬199/mo
Scale-ups
β All plans: EU servers Β· GDPR-compliant Β· No credit card for Free
Set to 1 to disable usage pings (these include your API token and up to 80 characters of smart_recall queries)
π§ Brain v3 β what's new
Feature
Tool
What it does
Autonomous hygiene
brain_hygiene
Sweeps stale lessons, flags provisional, archives orphans
PR risk scan
cachly-actionscan / predict modes
Matches PR title, body and changed files against Brain lessons via the /scan API β posts a PR comment with risk score before CI runs
Multi-agent arbitration
brain_conflicts Β· brain_resolve_conflict
Detects + resolves conflicting lessons across agents
Plans dashboard
brain_plan
Persistent plans in the UI with step tracking and brain-viz overlay
Privacy federation
brain_contribute_signal Β· brain_import_meta
Share patterns without sharing data β k-anonymous global commons
π οΈ Ecosystem & Docs
One brain, wherever you work. Start with the MCP server, or drop the same memory
straight into your editor β your lessons follow you across all of them.