AIBrain
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AIBrainremember that I prefer dark mode in all my apps"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AIBrain is a local-first, privacy-respecting AI memory manager for
developers who run coding agents. Every agent you use — opencode, Claude Code,
Codex, Cursor, Zed, and 15+ more — reads and writes the same Markdown memory
folder through a local MCP server, with fully offline semantic search
(vendored ONNX all-MiniLM-L6-v2 embeddings), RAG chat with numbered
citations, and a human-brain-like memory lifecycle: noise is filtered at write
time, durable facts are promoted to the library, old entries are archived.
Your memory never leaves your machine — no cloud, no telemetry.
✨ Why AIBrain?
One brain, every agent — a shared memory your whole agent fleet reads and writes through the Model Context Protocol (MCP). No more per-tool memory silos or re-explaining your project to each new agent.
Truly offline — embeddings are computed on your machine with a vendored ONNX model; no API keys, no data exfiltration, no remote model calls.
Semantic, not just keyword — find notes by meaning with local vector search, or ask questions in plain language and get answers grounded in your memory with numbered citations.
Memory that behaves like a brain — noise-gated writing, promote/demote curation, mutation journal with one-click undo, and retention with a hard 7-day safety floor. Nothing is ever silently deleted.
Free & open source — MIT licensed, Rust + Tauri 2 + React, no paid tiers.
Related MCP server: auxly-memory-cli
✨ Features
🔎 Semantic vector search
Fully offline embeddings — the ONNX
all-MiniLM-L6-v2model (384-dim) and its WASM runtime are vendored in-app; remote model fetching is disabled.SQLite vector store (
{brain}/.aibrain/vec.db) with brute-force cosine search — plenty for a personal brain of hundreds of entries.Content-hash auto re-indexing — each entry is FNV-1a hashed; only changed entries are re-embedded, so formatting-only edits never trigger re-indexing.
Model-change safety: vectors from a different embedding model never match.
💬 Ask your brain
RAG chat over your memory: the top vector hits are pulled as context, the model answers only from those notes, with numbered 【n】 citations and source chips (title, date, score).
Backed by OpenRouter (bring a key) or any local OpenAI-compatible provider — LM Studio, Ollama or BionicGPT, auto-detected and applied in one click.
One-shot completions (no streaming yet).
🧠 Human-brain memory lifecycle
Write-time noise gate — greetings, acks and bare pasted commands are classified as chatter and diverted to
inbox/_buffer.mdinstead of the dated session log (off by never losing substance — the classifier errs toward keeping).Mutation journal + one-click undo — every append, promote, demote and archive move is journaled and reversible.
Promote / demote — inbox entries are promoted into
library/concepts/as curated notes (slug per topic, dated sections); demote removes them again.Retention — inbox files older than N days are archived into
archive/YYYY-MM-DD/, with a hard 7-day safety floor: nothing younger than that is ever touched, nothing is ever deleted.Background librarian — periodically consolidates the buffer into today's log (rule-based noise filter + dedup), optionally distilling it through your configured local LLM so only durable facts survive ("human-brain mode").
🔌 Agent MCP server
A small stdio server (mcp-server, bundled as a sibling binary) exposes the
memory to any MCP-capable client — 12 tools, see below. The dashboard scans
your machine, lists only installed agents, and wires each one with a real
MCP handshake (no auto-connect). Connections point at a stable copy of the
server in the app data dir, so they survive reinstalls — and the scan
self-heals stale entries. Works with opencode, Claude Code, Claude Desktop,
Codex, Cursor, VS Code, Zed, Windsurf, Cline, Continue, Gemini CLI, Antigravity,
Goose, Aider, Qwen Code, Kimi CLI, Crush, Amp, OpenHands and Copilot CLI — or
any config file via universal connect.
🛰️ Synapse Observatory UI
14 themes (Synapse, Midnight, Aurora, Dracula, Gruvbox, Nord, Forest, Hacker, Terminal, Paper Dark, Graphite, Solarized Light, One Light, Paper), dark and light, with WCAG-checked accent ink.
Offline fonts — IBM Plex Sans + JetBrains Mono vendored in-app; nothing is fetched from the web.
Pages: Dashboard (agent connections), Memory (searchable, attributed timeline), Ask (RAG chat), Settings (providers, librarian, themes) and Onboarding (pick or create your memory folder).
🔐 Local-first privacy
No telemetry, no cloud. The only outbound traffic is the optional update check and an optional OpenRouter key you add for chat.
Embeddings never leave the machine: in-app vectors are computed locally; agent-side
recallonly ever talks to a localhost endpoint you configured (anything else falls back to keyword search).The
auditMCP tool reports exactly what network calls AIBrain can make.CSP locks the webview to local assets and the update endpoint.
📥 Install
Grab v0.2.0 from the Releases page:
Platform | Installers |
Windows |
|
Linux |
|
macOS |
|
Auto-update is built in: the app checks the Releases page (latest.json) and
keeps itself current; artifacts are signed and verified against a key kept
only on the maintainer's machine.
🚀 Quick start
Install the app for your platform (above).
Pick or create a memory folder — a plain folder of Markdown. The brain layout (
library/,inbox/,index.md) is created for you if missing; empty folders work.Connect your agents — the Dashboard lists what's installed. Click Connect and the agent's config gets one standard MCP entry pointing at the brain. Claude Code and Cursor agents can then use the MCP tools directly in their sessions.
Use Ask — open the Ask page, type a question, get an answer grounded in your memory with 【n】 citations. Optionally add an OpenRouter key or point at a local provider in Settings first.
Agents append durable facts via
append_log; check the Memory page to see everything recorded, attributed by agent and project.
🔌 MCP Tools
Tool | Purpose |
| Read a memory note by path relative to the brain root |
| List every memory note and session log |
| Append a dated, durable fact to today's session log (noise-gated) |
| Return the brain index — "what does this brain know" |
| Keyword search of notes + logs; up to 20 matches |
| Semantic recall — vector search via a localhost embedding endpoint, keyword fallback otherwise |
| The last N memory entries, newest first |
| Heuristic thread finder over the last ~14 days (pending/blocked/todo…) |
| Prove exactly what network calls AIBrain can make (offline guarantee) |
| Track sessions and log their summaries |
| Propose a durable fact for human-reviewed curation |
🛠 Development
Prerequisites: Node 20, Rust stable, and the platform toolchain the
CI uses — on Ubuntu 22.04: libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev; Windows needs the MSVC toolchain; macOS
needs Xcode command line tools.
PowerShell blocks the
npm.ps1shim — on Windows always invokenpm.cmd.
# app/
npm.cmd install
npm.cmd run build # tsc + vite build (+ WASM trim)
npm.cmd run tauri dev # run with hot reload
# app/src-tauri/
cargo test # workspace tests (core, mcp-server)
cargo build -p aibrain-mcp-server --release # agent server binary
# app/ — embedding pipeline smoke test (model, dims, similarity)
node scripts/embed-smoke.mjsWorkspace layout:
app/ React 19 + Vite + TypeScript frontend
app/src-tauri/ Tauri 2 shell + Tauri commands
app/src-tauri/crates/core/ aibrain-core — vectors, lifecycle, librarian,
chat, locals, settings, journal, connectors
app/src-tauri/crates/mcp-server/ the stdio MCP server binary
app/public/models|wasm|fonts| vendored assets — never fetched at runtimeCI (.github/workflows/ci.yml) runs on every push/PR: frontend build + Rust
tests on Ubuntu 22.04 and Windows. Releases (.github/workflows/release.yml)
build all three OSes on v* tags, run tests, and draft a signed release with
installers + updater artifacts.
🗺 Roadmap
Streaming chat (SSE) with tool-call visibility
Knowledge-graph view of the memory
Memory-health lint (orphans, broken wikilinks, duplicate facts)
Lifecycle controls in the UI (undo / promote / retention), frontend tests
❓ FAQ
Is my memory private?
Yes. AIBrain is local-first: notes, embeddings and searches never leave your
machine. The only optional outbound traffic is the auto-update check and an
OpenRouter key you add yourself for the RAG chat. Run audit (MCP tool) to see
exactly what network calls AIBrain can make.
Does it need a GPU or an API key? No. Semantic search runs fully offline on CPU with a vendored ONNX model. For the Ask (RAG chat) page you can bring an OpenRouter key or point at any local OpenAI-compatible server (LM Studio, Ollama, BionicGPT) — or skip chat entirely and use AIBrain purely as an agent memory store.
Which AI agents does it work with? opencode, Claude Code, Claude Desktop, Codex, Cursor, VS Code, Zed, Windsurf, Cline, Continue, Gemini CLI, Goose, Aider, Qwen Code, Kimi CLI, OpenHands, Copilot CLI and more — anything that speaks MCP, plus universal config connect for the rest.
How is this different from AGENTS.md / CLAUDE.md? Those are per-project static rule files. AIBrain is a living, searchable, cross-project memory: session logs, curated concepts and threads that every agent can recall semantically — not just the one that wrote the file.
Is anything ever deleted? No. Retention archives old inbox entries to dated folders with a hard 7-day safety floor, and every mutation is journaled so it can be undone.
📄 License
MIT — see LICENSE.
Built with Tauri 2 · Rust core · React + TypeScript · works with opencode, Claude Code, Codex, Cursor, VS Code, Zed & friends
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceProvides enterprise-grade persistent memory for AI assistants with complete offline operation, enabling intelligent knowledge storage, branch-based organization, and smart search across project domains while keeping all data local and secure.
- Alicense-qualityAmaintenanceLocal-first, file-based memory layer for AI agents — one shared Markdown vault across Claude, Codex, Gemini, Cursor and any MCP client. Provides read/write memory tools with an audit trail, per-agent trust levels, and Git sync; no cloud and no lock-in.2MIT
- Alicense-qualityAmaintenancePersistent shared memory for AI coding agents that turns a folder of markdown files into searchable memory across sessions, repos, and machines.11Functional Source , Version 1.1, MIT Future
- Alicense-qualityDmaintenanceProvides persistent long-term memory for AI assistants with tag-based retrieval, wiki-style linking, and source references, storing memories as markdown files with SQLite index.1MIT
Related MCP Connectors
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Persistent memory for AI agents — verbatim conversations, searchable by meaning.
Long-term memory for AI assistants. Hybrid retrieval, query expansion, auto-topics.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NitishKashyapR/unified-ai-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server