Brain Memory MCP server
ai.brainmemory · Updated
Persistent memory for AI agents: one brain shared across Claude, Cursor, Codex and more.
At a glance
Brain Memory is an MCP server in the AI & Memory category. It is hosted remotely and connects over HTTP, and declares no required credentials. It scores B (70/100) on the MCP Skills Hub health score as of Oct 27, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install Brain Memory in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install Brain Memory in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add --transport http brain https://mcp.brainmemory.ai/mcpVerify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes. It discovers them automatically.
How to install Brain Memory in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "brain": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.brainmemory.ai/mcp" ] } } }Why the wrapper?
This is a remote (HTTP) server and Claude Desktop only launches local processes, so mcp-remote proxies the connection. It will open a browser window if the server needs OAuth.
Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install Brain Memory in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "brain": { "url": "https://mcp.brainmemory.ai/mcp" } } }Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install Brain Memory in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.brain] command = "npx" args = ["-y", "mcp-remote", "https://mcp.brainmemory.ai/mcp"]Why the wrapper?
Codex runs MCP servers as local processes, so mcp-remote bridges this HTTP endpoint to stdio.
Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install Brain Memory in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "brain": { "serverUrl": "https://mcp.brainmemory.ai/mcp" } } }Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install Brain Memory in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "brain": { "type": "streamableHttp", "url": "https://mcp.brainmemory.ai/mcp" } } }
How to install Brain Memory in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "brain": { "type": "http", "url": "https://mcp.brainmemory.ai/mcp" } } }Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What tools does Brain Memory expose?
This server requires credentials before it will list its tools, so we cannot enumerate them here. Connect it in your client to see what it offers.
What the code can do
This is a remote server — nothing is installed or run on your machine, so there is no local code to analyze. What it can reach is described above: your requests go to the provider's host.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Third-party hosted service — Your requests and any data in them are sent to mcp.brainmemory.ai.
- No local execution — Nothing is installed or run on your machine.
- Last commit 9 days ago — Actively maintained.
- 2 GitHub stars — Very little community usage so far.
Client compatibility
Health score
B · 70Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%100%
Last commit 9 days ago.
- Adoption20%14%
2 stars.
- Transparency20%75%
3/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✗ discoverable tool list.
- Provenance15%75%
Links to its own repository; package linkage unverified.
- Packaging15%75%
Remote endpoint; authentication requirements not declared.
Documentation
Full READMEBrain Memory
A hierarchical, file-system-based memory plugin for AI coding agents. Inspired by human neuroscience — memories are organized into deep nested life-domain categories, connected via associative networks, strengthened through spaced recall, and naturally decay over time.
One hosted MCP connector reaches every major agent and chat app — Claude Code, OpenAI Codex CLI, OpenCode, GitHub Copilot CLI, Kilo, the Claude.ai apps, ChatGPT, Google Antigravity (Gemini CLI's successor), OpenClaw / NVIDIA NemoClaw, Hermes Agent, and Goose. Prefer a free, local-first install? The native plugin runs entirely from ~/.brain/ on Claude Code, Codex, OpenCode, Copilot CLI, Kilo, and Antigravity — and dedicated native integrations plug the same brain into OpenClaw and Hermes as their memory engine.
~/.brain/
├── professional/
│ └── companies/
│ └── acme-corp/
│ └── projects/
│ └── alpha-launch.md ⚡ 0.88
├── personal/
│ └── education/
│ └── typescript-generics.md ⚡ 0.72
├── social/
│ └── communities/
│ └── open-source-contrib.md ⚡ 0.65
└── family/
└── events/
└── annual-reunion-planning.md ⚡ 0.55Why Brain Memory?
Existing AI memory solutions use flat databases with tag-based retrieval. Brain Memory is different:
- The directory tree IS the semantic structure —
professional/companies/acme/projects/tells the agent everything about context without vector search - Human-inspectable — Browse your "brain" in any file explorer
- Git-friendly — Full version history of how memories evolve
- Strength + decay — Recalled memories get stronger, forgotten ones fade. Just like your brain
- Recall receipts — Memory that visibly fires: every answer shaped by a memory ends with a one-line attributable receipt (
◉ memory: "<title>" (<type>, <age>)), minted by the engine so it can't be hallucinated - Provenance-bounded trust — Every memory records where it came from (
user,agent-inferred,tool-output,external), and recall weighs it: a fact planted by a web page or tool output is down-ranked, flaggedlow_trust, marked⚠on its receipt, and can never outrank what you said directly — no matter how many copies of it get written. And because memories are plain files, Brain records a SHA-256 baseline of each one at write time — sobrain auditalso catches a memory edited *outside* any write path, the one poisoning route every write-path defense is blind to - **Bitemporal — it knows *when* a fact was true** — Every memory separates record time (when the brain learned it) from valid time (
valid_from/valid_until, when it was actually true). So "we deploy to Fly.io" and "we deploy to Render" aren't a contradiction to guess between — they're one fact with a boundary.brain recall "deploy target" --as-of 2026-03-01answers what was true in March;--as-known-ofanswers what the brain knew then. Facts that stopped being true are demoted and marked⌛ expired, never silently served as current - Deterministic recall — every agent ranks identically — Scoring is arithmetic over files, not a model call: TF-IDF/BM25 relevance, decayed strength, spreading activation, context match, salience. Claude, Codex, and Gemini asking the same question of the same brain get the *same* ranking, in the same order, offline. No embedding-model version can silently reshuffle what your agent remembers
- Associative network — Memories link to each other with weighted connections. Recalling one activates related ones automatically
- Context-dependent recall — Memories encoded in a similar context to the current session are scored higher
- Spaced reinforcement — Memories recalled after longer intervals get bigger boosts, cramming produces diminishing returns
- Cognitive types — Episodic, semantic, and procedural memories each decay differently, just like in the brain
- Always-present knowledge — Pin critical conventions and preferences so they load every session, bypassing recall and never decaying — the facts your agent must never miss
- Procedural skills — Reusable how-to workflows with progressive disclosure, learned automatically from repeated experience and exportable to your agent's native skills
- On-demand depth — Subcategories are created as needed, not pre-defined
- Consolidation — Weak related memories merge into stronger combined knowledge
- Zero dependencies — and measured, not assumed — Pure file I/O: no database, no server, no embedding model. That is a deliberate result, not a shortcut. On our hardest retrieval scenario (1,021 memories, 1,000 plausible distractors) a real embedding model ranked the target memories *worse* than BM25 — see the retrieval-only pilot
Install
There are two ways to give an agent its brain. They are complementary — most people end up with both:
| Path | Reaches | Storage | Cost | Best for | |------|---------|---------|------|----------| | Hosted MCP connector | Every MCP-capable host (Claude Code, Codex CLI, OpenCode, Copilot CLI, Kilo, Claude.ai apps, ChatGPT, Antigravity, OpenClaw, Hermes, Goose) | Brain Cloud (hosted) | account | One connector, everywhere — including web & mobile chat | | Local-first native plugin | The current CLIs (Claude Code, Codex CLI, OpenCode, Copilot CLI, Kilo, Antigravity) | ~/.brain/ on your machine | free | Zero-config ambient memory, no account, files you own | | [Assistant integrations](integrations/) | OpenClaw / NVIDIA NemoClaw (memory-slot plugin), Hermes Agent (memory provider) | ~/.brain/ on your machine | free | Your always-on personal assistant sharing one brain with your coding agents |
1. Universal path — the hosted MCP connector
Brain Cloud exposes a single remote MCP server (streamable-HTTP + OAuth) at *
…
Excerpt — the full document is on GitHub.
Alternatives to Brain Memory
- MemoryA · 93Knowledge-graph based persistent memory, letting an assistant retain entities, relations and observations across sessions.
- Synap MemoryA · 88Persistent memory for AI agents — log and recall conversation context over MCP.
- Cairn.ink MemoryA · 80Cross-session memory for AI agents with a Source Receipt for every memory, over MCP.
- hmem — Humanlike Memory for AI AgentsA · 86Persistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.
Maintain Brain Memory? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/ai-brainmemory-brain)Catalog data refreshed . Something wrong? Report it.