MegaMemory: a persistent knowledge graph MCP server that lets coding agents remember across sessions

tom_doerr · x · 2026-09-29

MegaMemory (568 GitHub stars) is an open-source MCP server that lets coding agents build and query a persistent, per-project knowledge graph of concepts, architecture, and decisions.

The core idea: the LLM is the indexer — no AST parsing, no static analysis. The agent reads code, writes concepts (features, modules, patterns, decisions) in its own words, and queries them before future tasks. The graph stores concepts, not code symbols.

The loop is understand → work → update: call listroots at session start to orient, understand with a natural-language query (or getconcept for exact lookup) before a task, then createconcept/updateconcept after finishing. Everything persists in a per-project SQLite database, with semantic search, in-process embeddings, and a web explorer.

Original post →

More from coding & agent

coding & agent channel →