MCP Hub
Back to servers

Mneme

Validation Failed

Memory layer for AI coding assistants. Indexes git history + code, exposes via MCP.

Registrynpm205/wk
Stars
2
Updated
May 6, 2026
Validated
May 7, 2026

Validation Error:

Timeout after 45s

Quick Install

npx -y mneme-ai

μνήμη · Mneme

The memory layer of your codebase.

Pronounced NEE-meh · Greek for "memory"
sister of Lethe (forgetting), mother of the muses.

npm license tests recall local mcp stars

Your codebase remembers everything. Your AI assistant remembers nothing.
Mneme is the bridge.

Every commit, every PR, every late-night fix is recorded in your git history.
But your AI assistant can't see any of it — so it guesses.
Mneme indexes that history and gives it back to you, and to your AI, in 2 seconds.


Mneme — doctor, ask, story, dream, calibrate

═══════════════════════════════════════════════════════════════════════════════

🚀 Install — pick one of three ways

💡 You only need one of these. Pick the row that fits you, run that one command — done.

Pick this if you…Command
🔬 want to try without installing anythingnpx -y mneme-ai init
💼 plan to use it daily (recommended)npm install -g mneme-ai
🛠 want to contribute or run the latest codegit clone …/mneme-ai && cd mneme-ai && npm install && npm run build

After install, run the same 60-second flow on any git repo:

mneme init                       # creates .mneme/ inside the repo
mneme index                      # ~90s for 5k commits with Ollama
mneme ask "why does X exist?"    # query the memory

═══════════════════════════════════════════════════════════════════════════════

🔧 Upgrade

mneme --version                       # 1. see what you have
npm install -g mneme-ai@latest        # 2. pull latest
mneme --version                       # 3. verify

💡 If the version doesn't change, open a fresh terminal — your shell caches the old binary path. On Windows, npm install -g writes to %APPDATA%\npm\ which the parent shell only re-reads on launch.

ActionCommand
📌 Pin a version (reproducible setups)npm install -g mneme-ai@0.14.0
🗑 Uninstallnpm uninstall -g mneme-ai
🔄 Re-index after upgrademneme index (idempotent — your data is safe)
⚡ npx usersnothing to upgrade — npx -y mneme-ai@latest <cmd> always pulls fresh

═══════════════════════════════════════════════════════════════════════════════

✨ Try these 5 commands first

The fastest way to "get it" is to copy-paste any of these on your repo right now:

1️⃣ Ask anything about your code

mneme ask "why does the webhook handler retry?"
📺 Sample output
Q  why does the webhook handler retry?

  ● HIGH CONFIDENCE  ◉ TRUST 95%
  synthesized in 240ms

  ✦ Answer
    Per commit a3f9b21 from 2024-08, the team switched from sessions to
    token-based auth after the rate-limit incident referenced in #482.
    The 3-retry backoff was added in the hotfix that followed, matching
    a third-party API provider's recommended client behavior.

  ◆ Evidence  (showing 3 of 8)
  ● a3f9b21  [2024-08-14 · Alice · 0.045]
    fix: retry webhook on 502 (closes #482)
  ● 2c4d8e0  [2024-08-15 · Alice · 0.039]
    pr#503: tune retry backoff to match upstream guidance

2️⃣ Understand any line in 2 seconds

mneme why src/auth/session.ts:47

Walks the blame, mines the PRs, returns the actual reason — with citations.

3️⃣ Predict regret before you commit

mneme premortem "rewrite the auth flow"
📺 Sample output
🔮  Pre-mortem
═══════════════════════════════════════════════════════════════
intent:  rewrite the auth flow

✦ Verdict
   risk: VERY HIGH  (P(regret) = 78%)
   7 of 9 similar past attempts ended badly.

◆ Top risks
   • token race condition (3× before)
       b2e1f04  fix: stale token served to logged-in users
   • breaking external integrations (2× before)
       9c3593c  hotfix: oauth callback dropped on PATCH

4️⃣ See your file's life as a story

mneme time-machine src/payments/charge.ts

Groups commits into eras: birth → rewrite → firefight → plateau. You read 8 epochs and you understand the file's life.

5️⃣ Ship audit-grade answers (zero hallucination)

mneme ask --audit "is this safe to merge?"

Refuses to answer below confidence threshold. Refuses if any cited commit hash isn't real. Returns trust score 0–100%. Use this for CI gates and AI agent tool calls.

═══════════════════════════════════════════════════════════════════════════════

🎯 Why people use Mneme

💬 "I gave my AI assistant a memory of my repo. It stopped guessing."

🤖 AI assistants stop guessing

Plug Mneme into Claude Code · Cursor · Codex · Continue · Cline via MCP — the AI answers from your real history, not generic advice.

🔎 Find the WHY in 2 seconds

mneme why src/auth.ts:47 walks the blame, mines PRs, tells you the actual reason — with citations to the commit that introduced it.

🔮 Predict regret before you commit

mneme premortem "rewrite auth" mines past attempts and warns:

"7 of 9 similar attempts ended in revert/hotfix. Top risk: token race condition."

🛡 Audit-grade — zero hallucination

mneme ask --audit refuses below confidence floor and refuses if any LLM-cited hash isn't in the evidence. ✨ No other tool ships this.

═══════════════════════════════════════════════════════════════════════════════

🤖 Tell your AI to install it (one prompt)

Paste this into Claude Code, Cursor, Codex CLI, or any agent that can edit files & run shell:

Install Mneme as an MCP server for this repo so you can query my git history
and codebase memory.

Steps:
  1. Run `npx -y mneme-ai init` then `npx -y mneme-ai index`.
  2. Add an MCP server entry pointing to `npx -y mneme-ai mcp` (cwd = this
     repo's absolute path) in the right config file:
       - Claude Code:  ~/.claude/settings.json
       - Cursor:       ~/.cursor/mcp.json
       - Codex CLI:    ~/.codex/config.json
  3. Reload MCP and confirm `mneme_ask`, `mneme_why`, `mneme_search_commits`
     appear.
  4. From now on, before answering "why" questions about this code, call
     `mneme_ask` first.

The agent will install, configure, and start using Mneme as a tool in its reasoning loop.

═══════════════════════════════════════════════════════════════════════════════

⚡ All Commands

💡 Every command supports --help for usage notes. Examples below show what each does in plain English.

🟢 Tier 1 — Essentials (always visible in mneme --help)

CommandPlain-English useExample
initFirst-time setup — picks the best embedder for your machinemneme init
doctor"Is everything ok?" — checks Ollama, OpenAI, hardwaremneme doctor
indexBuild the memory from your git history (secrets auto-redacted)mneme index
statusIs the index up to date with HEAD?mneme status
ask "<q>"The flagship — verdict-shaped answer with citationsmneme ask "why does X exist?"
why <file>:<line>Walk blame + PRs for any file or linemneme why src/auth.ts:47
mcpRun as an MCP server for your AI assistant(used by AI clients)
wisdomA meditation from the Mneme manifestomneme wisdom

🌟 Insights — world-firsts in this category

CommandPlain-English useExample
who-knows <topic>Who's the expert? (active / definitive / stale)mneme who-knows stripe
decisionsAuto-extract architecture decisions from commitsmneme decisions
stack-tracePaste an error → historical context per stack framemneme stack-trace --from error.log
story <topic>Narrate evolution as actsmneme story stripe
dreamSpeculative ideas grounded in YOUR patternsmneme dream
chatMulti-turn REPL over your repo's historymneme chat
regretCommits shipped + immediately fixedmneme regret --window 7
bus-factorFiles where one author owns ≥75% — fragility mapmneme bus-factor
paradoxArchitectural flip-flops (A → B → A)mneme paradox
commit-coachPre-commit AI partnermneme commit-coach --stdin
crystal-ballPredict CI failure for staged diffmneme crystal-ball --stdin
time-machine <file>Narrate a file's life as erasmneme time-machine src/auth.ts
premortem "<intent>"Predict regret % from YOUR repo's failuresmneme premortem "add caching"
ghostSurface haunted code + stale TODOsmneme ghost --top 10
dna [@author]Exportable developer fingerprintmneme dna alice@example.com
driftTopical evolution over timemneme drift --granularity month
chronicleAuto-generate chaptered narrativemneme chronicle --output STORY.md
oraclePredict next-window co-edits + collisionsmneme oracle --window-days 30
constellationGraph view: stars/orbitals/edgesmneme constellation --output graph.json
clusterSemantic clustering of commit messagesmneme cluster
networkAuthor social graph w/ semantic edgesmneme network
manageEngineering management dashboardmneme manage
bundleUniversal codebase exportmneme bundle -o release-q2

💰 Quant — Wall-Street-inspired engineering intelligence

CommandPlain-English useExample
drawdownWorst losing streaks (firefighting periods)mneme drawdown
alphaKelly-criterion allocation across tech debtmneme alpha --items debt.json
backtestValidate any predictor against historymneme backtest --samples s.json
black-swanRare-but-catastrophic file patternsmneme black-swan
insider-tradingAuthors who fix bugs they introducedmneme insider-trading
moneyballUndervalued contributors (high ROI, low LOC)mneme moneyball
greekΔ knowledge loss · Γ risk · Θ file decaymneme greek
correlation-matrixHidden coupling between filesmneme correlation-matrix
implied-volatilityChaos predicted from commit message tonemneme implied-volatility
tax-loss-harvestDead-code deletion candidatesmneme tax-loss-harvest

🧰 More commands available — entity-level similarity, incident correlation, the Wisdom Mutant Engine (self-improving), and several specialized tools live in the Command Tour wiki. Run mneme advanced to list them all.

═══════════════════════════════════════════════════════════════════════════════

🛡 Audit-grade mode — zero hallucination guarantee

mneme ask --audit "why does the webhook retry?"
mneme ask --audit --audit-floor high "..."   # tighten the threshold

In audit mode, Mneme:

  • Refuses below confidence floor (default: medium · --audit-floor low|medium|high)
  • Refuses on unverified citations — every backtick-hash is checked against retrieved evidence
  • Returns trust score 0–100% with every answer (green / cyan / yellow / red)
  • JSON output usable as a CI gate or MCP tool result

🌌 This is the only tool we know of that ships an explicit hallucination guard for git Q&A. The new moat.

═══════════════════════════════════════════════════════════════════════════════

🌌 The Frontier — what makes Mneme one of a kind

After researching the landscape of git, code-search, and AI-coding tools, we confirmed every command below occupies whitespace where no maintained, open-source, local-first tool ships this capability today.

#CapabilityMneme
1Author social graph with semantic edgesnetwork
2Semantic clustering of commit messages (NLP)cluster
3Predictive co-edit detectionoracle
4Exportable, history-derived developer fingerprintdna
5Engineering management dashboardmanage
6Universal codebase export (bundled artifact)bundle
7File evolution narrated as erastime-machine
8Codebase narrative documentarychronicle
9Predictive regret risk grounded in YOUR repopremortem
10Multi-signal ghost-code detectionghost
11Maintained codebase graph data layerconstellation
12Topical drift over time (feature/refactor/firefight)drift
13Audit-grade Q&A — explicit hallucination guardask --audit

13 world-firsts. Local-first by design. One of a kind. The frontier.

🛡 Built to complement existing AI coding assistants — not to replace them.

═══════════════════════════════════════════════════════════════════════════════

📚 Want more? → Wiki

PageWhat's there
🌟 Innovations15 unique commands deep-dive (with output samples)
🗺 Command-TourStory-driven walkthrough — every command, told as workflow
🤖 MCP-IntegrationDrop into Claude Code · Cursor · Codex · Continue · Cline · Zed
🚀 Quickstart · Installation · ConfigurationFirst 5 minutes, in detail
🍳 RecipesMulti-command workflows for real engineering scenarios
🔒 PrivacyWhere data lives · secret redaction · LLM data flow · audit log
FAQ · TroubleshootingShort, direct answers

🏗 Architecture deep-dive: ARCHITECTURE.md · 🔒 Privacy: docs/SECURITY.md · 🗺 Roadmap: ROADMAP.md

═══════════════════════════════════════════════════════════════════════════════

📦 Project links

📦 npmhttps://www.npmjs.com/package/mneme-ai
🌐 MCP Registryio.github.patsa2561-art/mneme-ai at registry.modelcontextprotocol.io
💻 GitHubgithub.com/patsa2561-art/mneme-ai
📚 Wikigithub.com/patsa2561-art/mneme-ai/wiki
📋 CHANGELOG./CHANGELOG.md

═══════════════════════════════════════════════════════════════════════════════

📜 License & support

MIT — use it, fork it, ship it.

🧑‍💻 Solo developer. I read every issue. PRs welcome. Be kind.


"Until Mneme, your code knew what but not why."

μνήμη — the memory layer of your codebase.

Reviews

No reviews yet

Sign in to write a review