Share what
your team knows.
Your team writes things down. Brain makes those notes findable. It stores markdown in git, indexes it with SQLite FTS5, and lets AI agents access it through MCP.
$ npm install -g @vraspar/brain@alpha
Git as storage
Entries are markdown files in a git repo. No server, no database. You get version history and access control for free.
FTS5 search
SQLite full-text search with BM25 ranking. Fast enough that you won't notice it. Works offline. Rebuilt from source on every sync.
MCP for agents
10 tools and 2 resources over Model Context Protocol. Your AI agent can read what your team has written. brain serve starts it.
Knowledge trails
Entries link to each other through tags and content overlap. brain trail <topic> walks the connections.
Also: repo ingest · freshness scoring · Obsidian vault · interactive search · 20 commands · --format json
Add brain to your MCP client:
Requires Node.js 20+ and git.
Brain stores entries as markdown files with YAML frontmatter in a git repository. The search index is a local SQLite FTS5 table, rebuilt from the markdown on every sync. Read receipts are JSON files committed alongside entries. Analytics with zero infrastructure.