
Nan Forget
Give coding agents persistent, local-first memory across sessions and projects so context does not reset every chat.
Overview
io.github.NaNMesh/nan-forget is a MCP server for the Build phase that provides local-first long-term memory across coding sessions and projects.
What is this MCP server?
- Local-first cross-session and cross-project memory for coding tools
- Embeddings via OpenAI API or default local Ollama provider
- NAN_FORGET_PROJECT_ROOT sync for memory files tied to repo roots
- Multi-user support via NAN_FORGET_USER_ID
- npm stdio package nan-forget at registry version 0.6.8
- Default embedding provider ollama via NAN_FORGET_EMBEDDING_PROVIDER
- stdio npm transport package identifier nan-forget
Community signal: 5 GitHub stars.
What problem does it solve?
Coding agents forget prior decisions every new session, forcing solo builders to re-upload context and repeat explanations.
Who is it for?
Solo builders running Claude Code or Cursor daily across several repos who want durable agent memory without a hosted-only lock-in.
Skip if: Teams that forbid local embedding stores or builders who only need ephemeral single-chat context.
What do I get? / Deliverables
After registration, your agent can recall stored memories locally across sessions and projects with embedding-backed retrieval.
- Queryable long-term memory tools exposed over MCP stdio
- Project-scoped memory storage on your machine
- Optional cloud embeddings without mandatory vendor lock-in for local mode
Recommended MCP Servers
Journey fit
Long-term agent memory is primarily adopted while building, when you wire Claude Code or Cursor into real repos—but it also pays off later in operate when you revisit production code. Agent-tooling is the canonical shelf for MCP servers that extend what your coding agent remembers and retrieves, not a one-off API wrapper.
How it compares
Persistent agent memory MCP, not a generic database or note-taking skill.
Common Questions / FAQ
Who is nan-forget for?
Indie developers and agent power users who want cross-session memory inside MCP-aware coding tools.
When should I use nan-forget?
Use it when you repeatedly work on the same products and need the agent to remember conventions, past fixes, and project facts locally.
How do I add nan-forget to my agent?
Install the nan-forget npm package, configure stdio MCP in your client, set NAN_FORGET_PROJECT_ROOT to your repo, and optionally OPENAI_API_KEY or Ollama for embeddings.