brain-core
Local memory for a Claude Code agent: five tools over a markdown vault on your disk
brain-core is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- macOS, Linux, Windows
- Runs
- Locally
- Version
- 0.18.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add brain-core -- uvx brain-core-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"brain-core": {
"command": "uvx",
"args": [
"brain-core-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"brain-core": {
"command": "uvx",
"args": [
"brain-core-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"brain-core": {
"command": "uvx",
"args": [
"brain-core-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"brain-core": {
"type": "stdio",
"command": "uvx",
"args": [
"brain-core-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add brain-core -- uvx brain-core-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.brain-core]
command = "uvx"
args = ["brain-core-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"brain-core": {
"command": "uvx",
"args": [
"brain-core-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Or run: gemini mcp add -s user brain-core uvx -- brain-core-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "brain-core": { "command": "uvx", "args": [ "brain-core-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About brain-core
Installing brain-core scaffolds a whole agent folder rather than just a server. It writes a CLAUDE.md with your names, five rule files, three skills, four hooks, an .mcp.json and an empty vault. The hooks include a safety block, a brief injected at session start, capture of what you said, and recall of past fixes when a command fails.
The server exposes exactly five tools. Sessions open with brain_session('start'), which returns the day's brief, state and recalls for top missions, and close with an end call that archives the day. Facts go in through brain_remember, written to the vault, then SQLite, then optionally Hindsight. When a saved fact changes, the old line stays and is marked superseded.
Recall is keyword search, not vector search: a SQLite FTS5 index ranked by bm25 and recency. A weak result is reported as weak_match so the agent can retry in other words and teach the memory the missed question. The README says it is for one person on their own computer, not a hosted or team product.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 4 tools reads data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- brain_session
- Starts or ends a session, returning the brief or filing the day's archive
- brain_remember
- Saves a memory to the vault, SQLite and optionally Hindsight
- brain_recall
- Searches memory and reports weak matches
- brain_statusName suggests: reads
- Lists questions memory could not answer recently
What it does
- Five-tool surface
- Keeps the tool set small so the agent can choose between tools without confusion.
- Markdown vault
- Stores memory as readable files in a folder you own, indexed by SQLite.
- Session briefs
- Starts each session with yesterday's brief, decisions, changed facts and corrections.
- Weak-match reporting
- Flags low-confidence searches so the agent retries instead of guessing.
- Fact change tracking
- Marks a changed fact with a banner and ranks the old value below the new one.
- Scheduled housekeeping
- Daily and weekly jobs write briefs, back up Hindsight and archive older sessions.
- Optional vector store
- Can also query Hindsight, a self-hosted vector memory, unless switched off.
Good for
- Let a coding agent remember project decisions between sessions
- Keep corrections you gave the agent so it stops repeating mistakes
- Recall the fix for an error that happened in an earlier session
- Run several named agents on one machine, each with its own vault
- Audit what the agent remembers by reading markdown files
Pricing
Open source
brain-core FAQ
Does my memory leave my machine?
The README says memory stays on your disk. What goes out is the LLM calls Hindsight makes (none with --lite), one daily PyPI version check, and pages you ask it to distill.
Does brain-core use embeddings?
No. Recall uses a SQLite FTS5 keyword index ranked by bm25 and recency; Hindsight is the optional vector layer.
Do I need an API key?
No API key is needed for installation, according to the README.
Is brain-core meant for teams?
No. It is aimed at one person running one or more agents on their own computer.
Is brain-core free?
Yes. brain-core is open source, so you can use and self-host it for free.
How do I add brain-core to Claude Code?
Run this command in your terminal: claude mcp add brain-core -- uvx brain-core-mcp
What are the best alternatives to brain-core?
The closest alternatives to brain-core are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



