Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Nano Brain

MCP server by nano-step Verified · npm:nano-brain

Gives AI coding agents persistent memory and code intelligence over MCP. It offers symbol lookup, call-chain tracing and change-impact analysis across sessions and repos.

  • Score 85
  • 14 stars
  • 3.2k a week
  • MIT
  • Updated

Install Nano Brain

Built from the published package, never by AI.

claude mcp add nano-brain -- npx -y nano-brain

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Nano Brain in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the nano-brain block.

About

nano-brain is an MCP server that gives AI coding agents persistent memory and code intelligence. It harvests and indexes past sessions and saved decisions so agents can retrieve them later. It also builds a code graph and exposes symbol lookup, call-chain tracing, HTTP route flow and change-impact analysis as MCP tools, returning structured results rather than raw file bytes.

It is self-hosted as a Go binary backed by PostgreSQL with pgvector, and works with any MCP client such as Claude Code, OpenCode and Cursor. Search combines BM25 full-text, vector similarity and reciprocal rank fusion. The project is built for AI agents that call its tools rather than for human readers.

Written from the project's README and checked against it.

Tools it gives your assistant

  • memory_queryHybrid BM25, vector and RRF search, the default first tool for broad questions.
  • memory_searchExact keyword search for error strings, identifiers and config keys.
  • memory_vsearchVector similarity search for fuzzy concepts.
  • memory_writeSaves a decision, lesson or handoff for the next session.
  • memory_wake_upReturns a session-start briefing with recent memories, collections and stats.
  • memory_symbolsFinds a function, type, interface or const by name without indexing.
  • memory_graphShows one-hop neighbors such as direct callers, callees and imports.
  • memory_traceShows the downstream call chain from an entry symbol.
  • memory_impactShows the reverse blast radius of a symbol before an edit.
  • memory_flowShows the execution flow of an HTTP route as Mermaid, sequence or JSON.

What you need

  • PostgreSQL, via Docker or a remote URL
  • Ollama or an OpenAI-compatible embeddings provider
  • An MCP client such as Claude Code or OpenCode
  • Node.js only if installing through npm

Try asking

  • Where is the login handler defined in this repo?
  • What could break if I change the login function? Run impact analysis.
  • Save a note about why we chose pgvector for the next session.

Good to know

  • Writes go through MCP. The REST API is for scripting and ops.
  • Requires a PostgreSQL database and an embeddings provider.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://raw.githubusercontent.com/nano-step/nano-brain/master/install.sh | bash
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Nano Brain

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Nano Brain: common questions

Does nano-brain need Node.js?

No. The recommended one-line installer downloads a prebuilt binary and does not need Node.js. npm is offered as an alternative install path.

Where is the data stored?

nano-brain is self-hosted and stores data in PostgreSQL with pgvector.

How does search work?

Search combines BM25 full-text, pgvector HNSW cosine similarity, Reciprocal Rank Fusion and recency decay.

How do I install Nano Brain?

In Claude Code run claude mcp add nano-brain -- npx -y nano-brain. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Nano Brain the official server?

Nano Brain is published by npm:nano-brain from its verified domain in the official MCP Registry.

Is Nano Brain free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Nano Brain safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Nano Brain?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Nano Brain work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Nano Brain Install

Add to stack

Loading.