nano-brain weekly downloads statistics
By nano-step · npm · MCP servers
Persistent memory and code intelligence for AI coding agents
nano-brain has 8,307 recorded weekly downloads on npm.
About nano-brain
nano-brain
Built for agents. Not humans.
Agent-oriented memory and code intelligence over MCP. AI agents don't read docs — they call tools. nano-brain gives them structured context, symbol lookup, call-chain tracing, and change-impact analysis across sessions and repos.
What it is
nano-brain is an infrastructure layer between your AI agent and your code. It solves two problems agents have:
- Session amnesia — agents forget everything when a session ends. nano-brain harvests, indexes, and retrieves past sessions and saved decisions.
- Codebase blindness — agents can't cheaply trace dependencies, measure blast radius, or map an execution path. nano-brain builds a code graph and exposes it as MCP tools.
Self-hosted (Go binary + PostgreSQL), works with any MCP client (Claude Code, OpenCode, Cursor, …), and returns structured results — not raw file bytes.
Install
# Recommended — one-line installer (no Node.js needed): downloads the prebuilt
# binary for your platform from GitHub Releases and verifies its SHA-256.
curl -fsSL https://raw.githubusercontent.com/nano-step/nano-brain/master/install.sh | bash
# Or via npm (handy if you're already in a JS/agent toolchain)
npm install -g @nano-step/nano-brain
# Or build from source
CGO_ENABLED=0 go build -o nano-brain ./cmd/nano-brain
Prefer to read the installer first? curl -fsSL -o install.sh https://raw.githubusercontent.com/nano-step/nano-brain/master/install.sh && less install.sh && bash install.sh.
Start
# One command — the interactive wizard provisions PostgreSQL (Docker or remote URL),
# configures embeddings, starts the server, registers this project, and wires up your MCP client.
nano-brain init
Manual, per-step setup (VPS / team / no Docker / Windows): docs/SETUP_AGENT.md.
Connect your agent
Add to your MCP client config:
{
"mcp": {
"nano-brain": { "type": "remote", "url": "http://localhost:3100/mcp" }
}
}
Bind a default workspace by appending ?workspace=<name-or-hash> to the URL (e.g. …/mcp?workspace=my-project) so tool calls can omit the workspace argument. An explicit workspace argument always overrides it; the value must be a name or full hash (not "all"). Run nano-brain workspaces list to see registered names/hashes.
For OpenCode, you can bootstrap the current workspace with npx @nano-step/nano-brain init -- opencode. It installs a /nano-brain slash command that keeps the workspace config local at .nanobrain/config.yml.
The agent workflow
A cold agent should follow this order — it maps 1:1 to the tools:
- Orient —
memory_wake_upfor a workspace briefing (recent activity, collections, stats). - Locate the workspace —
memory_workspaces_resolve(path)returns a deterministic hash and whether it's registered. Registering the repo root also covers its subdirectories, so resolve the root, not a single sub-repo. - Understand —
memory_query(hybrid, best for natural-language questions),memory_search(exact identifiers/errors), ormemory_vsearch(fuzzy concepts). Search returns 500-char snippets; fetch full text withmemory_getonly for the hits you keep. - Navigate code —
memory_symbolsto find a definition (no indexing needed), thenmemory_graph/memory_tracefor call chains andmemory_flowfor an HTTP route's execution. - Before a risky edit —
memory_impact(node, direction="in")for the blast radius (who calls / imports this). - Persist —
memory_writeto save a decision, lesson, or handoff for the next session.
wake_up → resolve ─▶ query / search / symbols ─▶ graph / trace / flow / impact ─▶ (edit) ─▶ write
MCP tools (18)
Search & recall
| Tool | Use it for |
|---|---|
memory_query | Hybrid BM25 + vector + RRF + recency — default first tool for broad questions |
memory_search | Exact keyword/BM25 — error strings, identifiers, config keys, channel/topic names |
memory_vsearch | Vector similarity — fuzzy concepts (best on single-concept queries) |
memory_get | Fetch full content (or a line range) for one known document/symbol |
memory_write | Persist a decision/lesson/handoff (supports supersedes) |
memory_ticket | All sessions tagged with a ticket ID (e.g. PROJ-1234) across the workspace |
memory_wake_up | Session-start briefing: recent memories, active collections, stats |
memory_tags | List collections and document counts |
Code intelligence
| Tool | Use it for |
|---|---|
memory_symbols | Find a function/type/interface/const by name (reads the filesystem — no indexing required) |
memory_graph | One-hop neighbors: direct callers/callees, imports, containment |
memory_trace | Downstream call chain from an entry symbol |
memory_impact | Reverse blast radius before an edit: who calls/imports this |
memory_flow | HTTP route execution flow (middleware → handler → downstream), Mermaid/sequence/JSON |
memory_flowchart | Control-flow graph of a single function (branches, loops, returns) |
Workspace & ops…
Description from the npm listing.
- ai
- memory
- mcp
- coding-agent
- search
- pgvector
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm MCP servers plugins
All 20 nano-brain alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/nano-brain. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.