Memory Engine is a local-first MCP server that gives coding agents persistent, evidence-backed project memory. It automatically builds a project knowledge base, retrieves relevant architecture, constraints, incidents, and source context before complex tasks, and retains verified lessons after successful work.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"memory-engine": {
"args": [
"run",
"--directory",
"/absolute/path/to/agent-memory-engine",
"memory-engine-mcp",
"--project-root",
"/absolute/path/to/your-project"
],
"command": "uv"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A local-first MCP runtime that gives coding agents persistent, evidence-backed project memory and grounded project knowledge across sessions.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'memory-engine-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked memory-engine-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in education
ARIS ⚔️ (Auto-Research-In-Sleep) — Lightweight Markdown-only skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation. No framework, no lock-in — works with Claude Code, Codex, OpenClaw, or any LLM agent.
MCP server for NotebookLM - Let your AI agents (Claude Code, Codex) research documentation directly with grounded, citation-backed answers from Gemini. Persistent auth, library management, cross-client sharing. Zero hallucinations, just your knowledge base.
A Model Context Protocol server for searching and analyzing arXiv papers
MCP server for Altmetric APIs - track research attention across news, policy, social media, and more
MCP Security Weekly
Get CVE alerts and security updates for Agent Memory Engine and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Local-first persistent memory and project knowledge runtime for coding agents.
A local-first MCP runtime that gives coding agents persistent, evidence-backed project memory and grounded project knowledge across sessions.
Coding agents face a fundamental problem: every session starts cold.
Memory Engine solves this by maintaining a structured, evidence-backed memory tree alongside an indexed project knowledge base — both local, both automatic, no infrastructure required.
| Capability | Details |
|---|---|
| Persistent memory tree | MemoryNode hierarchy: constraints, architecture, modules, decisions, incidents, procedures |
| Evidence-backed memory | Each node links to source Evidence entries (test output, code references, review notes) |
| Candidate staging | Reflection generates MemoryCandidates before promoting to the live tree |
| Confidence-aware promotion | create / update / merge / supersede / discard / needs_review |
| Conflict detection | High-risk areas (auth, schema, state-machine, retry) flagged for review |
| Ancestor consolidation | Parent node summaries auto-updated after each promotion |
| Agent-native recall | Intent-aware retrieval before coding tasks — no manual queries |
| Progressive inspection | Drill down into any memory node, its children, and linked evidence |
| Automatic post-task reflection | Agent reports outcome → system decides whether and how to retain knowledge |
| Knowledge ingestion | Markdown, code, ADR, test reports, runtime logs, git diffs |
| Local FTS5 search | SQLite FTS5 with porter tokenizer; no external search engine |
| Optional semantic retrieval | Persistent local sqlite-vec backend with sentence-transformers / Ollama embeddings (Phase 13); default OFF, no required deps |
| Lexical structured fallback | Full retrieval without vector backend or Docker |
| Unified ContextPack | Memory + knowledge merged, deduplicated, token-budgeted |
| Retrieval traceability | Per-signal score breakdown in every response |
| Local-first privacy | All data stays inside .memory-engine/; no telemetry, no cloud calls |
| Python MCP server | stdio transport; no TypeScript, no Docker, no external daemon |
| Zero-touch bootstrap | Auto-initializes on first MCP connection |
| Incremental indexing | JSON manifest; only changed files re-indexed on subsequent runs |
| Git-aware synchronization | Detects branch, HEAD commit, staged/modified files via safe read-only Git commands |
| Branch-aware retrieval | Prefers memory from the current branch; falls back to mainline then global |
| Branch-scoped memory writes | New memories stamped with branch name and scope; mainline promotion is explicit |
| Multi-granularity memory | Four retrieval layers (proposition → paragraph → chunk → module summary) created at write-time; selected at query-time by intent |
| **Determ |