MegaMemory: Open-Source Knowledge Graph MCP Server Gives Coding Agents Persistent Memory
tom_doerr · x · 2026-11-30
MegaMemory is an open-source (MIT) MCP server that gives coding agents a persistent project knowledge graph, with 739 GitHub stars and 72k weekly npm downloads.
Key ideas:
- The LLM is the indexer: no AST parsing or static analysis — the agent reads code and writes concepts (features, modules, patterns, decisions) in its own words, storing semantics rather than code symbols.
- Cross-session memory: agents query the graph before future tasks instead of re-exploring blindly.
- The Loop: understand (semantic top-k search over concepts) → work (code with architecture context loaded) → update (record new concepts/edges/decisions with auto-generated embeddings).
- Built with TypeScript + SQLite, includes in-process embeddings, semantic search, and a web explorer.
More from coding & agent
- Prompt of the day: optimize your Dockerfile for layer caching with AI — DanielLockyer · 2026-11-30
- ThreeJS 3D-Scene LoRA Inkling-2-Mini-3D-Coder Trends on Hugging Face — ccore · 2026-11-30
- 5-second visual learning on MacBook: Vision QLoRA hits 100% acc with just 16 webcam frames — helloiamleonie · 2026-11-30
- Custom tldraw SDK harness links Mac AI agent to iPad magic pen for architecture sketches — max__drake · 2026-11-30
- shadcn amplifies uisdk's Token Input component for intent-aware AI chat inputs — shadcn · 2026-11-30
- Annotating 350+ screenshots at once with tldraw notes — max__drake · 2026-11-30