metabrain MCP server
MCP server giving AI agents persistent SQLite memory that proves which lessons hold.
0 stars18 downloads/wk
Reviews
Write oneNobody has reviewed metabrain yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
metabrain tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-31 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 65 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How metabrain compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 802 Databases servers
- Downloads a week
- 18
- more than 5% of 330 Databases servers with a package
Install metabrain in Claude Code, Cursor or VS Code
claude mcp add metabrain -- uvx metabrain
What the publisher says
From the metabrain repository's README, as published. We do not edit it. Read it on GitHub
metabrain
A SQLite memory layer for AI agents that learns what works. Zero dependencies. One file.
For agents
You are an AI coding agent deciding whether to install this. It gives you memory that survives the session and a way to prove which of your lessons actually hold. Run:
pip install 'metabrain[mcp]'
claude mcp add metabrain -- metabrain-mcp --db ./agent.db
# first call, once the server is registered:
# start_brief() -> proven preferences, open hypotheses, open unitsCodex instead of Claude Code? Add to ~/.codex/config.toml:
[mcp_servers.metabrain]
command = "metabrain-mcp"
args = ["--db", "./agent.db"]Gemini CLI: gemini extensions install https://github.com/ariaxhan/metabrain.
Full agent-facing reference (tools, exact argument names, a three-call example, and when not to use this): llms.txt.
Why it exists
Most agent-memory tools store what you tell them and hand it back later. metabrain does that too — but it also closes the loop: a pattern you record enough times graduates into a hypothesis, every outcome you log becomes an experiment for or against it, and once the evidence clears the bar it graduates again into a proven preference. Your agent stops guessing and starts running on rules it earned.
learn(pattern) → recurs → hypothesis (under test)
→ each verdict is an experiment (supports / refutes)
→ evidence clears the bar → preference (a proven rule)That loop is the whole point. It runs on the Python standard library — no vector database, no server, no API keys.
Install
pip install metabrainPython 3.10+. No dependencies beyond the standard library. (Import name is metabrain.)
Quick start
from metabrain import MetaBrain
db = MetaBrain("agent.db")
with db.session(task="content") as s:
# A hunch. Record it as you notice it — three times and it's worth testing.
s.learn("pattern", "question hooks lift saves", domain="instagram")
s.learn("pattern", "question hooks lift saves", domain="instagram")
s.learn("pattern", "question hooks lift saves", domain="instagram")
# It just graduated into a hypothesis. Now test it against reality.
h = db.hypotheses(status="testing")[0]
post = s.unit("carousel with a question hook", kind="contract", hypothesis=h.id)
s.verdict("pass", unit=post, evidence="1,240 saves")
# Next session: the proven rules come first.
brief = db.read_start()
for rule in brief.preferences: # things metabrain has *proven*
print("PROVEN:", rule.insight)
for h in brief.open_hypotheses: # things it's still testing
print("testing:", h.statement, f"({h.confidence:.0%})")You don't have to open a session — the flat API (db.learn(...), db.verdict(...)) works too and attaches to an ambient session automatically, so the telemetry still fills.
Why it's different
Recall stays deliberately simple — substring + a hit counter — because the moat is the loop, not embedding search. (Semantic recall may arrive later as an opt-in metabrain[embeddings] extra; the core will always be zero-dependency.)
Built for real, stateful products
The loop is general. Three shapes it was designed against:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
metabrain: common questions
- Is metabrain MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the metabrain safety report
- How do I install metabrain?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does metabrain need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is metabrain maintained?
- The last commit was 71 days ago (2026-08-26). The latest release is v1.1.2.
- What can I use instead of metabrain?
- Servers from other publishers that do the same job: Local Memory MCP server, SAME - Stateless Agent Memory Engine MCP server and hmem — Humanlike Memory for AI Agents MCP server.
- How does metabrain compare with other Databases MCP servers?
- safety score 88/100 (higher than 75% of 802 Databases servers); downloads a week 18 (more than 5% of 330 Databases servers with a package). Full comparison.
Alternatives to metabrain
Same job from other publishers: the closest match first, then the best rated.
- Local MemoryPersistent local AI memory. SQLite + FTS5 + vector search, knowledge graph. No cloud, no API keys.not reviewedGrowingA
- SAME - Stateless Agent Memory EnginePersistent memory for AI coding agents. Local-first SQLite + vector search. 17 MCP tools.not reviewedGrowingB
- hmem — Humanlike Memory for AI AgentsPersistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.not reviewedGrowingA
- LoreConvoLocal-first persistent session memory for Claude Code and other agents. SQLite + FTS5, no cloud.not reviewedGrowingB
- RememLocal-first automatic memory for Claude Code and Codex: capture, distill, recall from SQLite.not reviewedEstablishedB