Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
MCP server giving AI agents persistent SQLite memory that proves which lessons hold.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"metabrain": {
"command": "uvx",
"args": [
"metabrain",
"--db",
"your-value"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add metabrain -- uvx metabrain --db your-value이 서버는 실행 명령어에 값을 넣어야 해서, 설정을 복사한 뒤 직접 채워 주세요.
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"metabrain": {
"command": "uvx",
"args": [
"metabrain",
"--db",
"your-value"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 실행 명령어에 값을 넣어야 해서, 설정을 복사한 뒤 직접 채워 주세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"metabrain": {
"type": "stdio",
"command": "uvx",
"args": [
"metabrain",
"--db",
"your-value"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 ariaxhan 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.1.2)은 2개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
A SQLite memory layer for AI agents that learns what works. Zero dependencies. One file.
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
Codex 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.
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.
pip install metabrain
Python 3.10+. No dependencies beyond the standard library. (Import name is metabrain.)
from metabrain import MetaBrain
db = MetaBrain("agent.db")
with db.session(task="content") as s:
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")
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")
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.
| metabrain | typical vector-memory store | |
|---|---|---|
| Remembers what you tell it | ✅ | ✅ |
| Proves which memories actually work | ✅ the learn→experiment→graduate loop | ❌ |
| Working state + telemetry, not just recall | ✅ units, checkpoints, sessions, events | ❌ |
| Infrastructure | a single SQLite file | vector DB / server / API key |
| Dependencies | none (stdlib sqlite3) | several |
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.)
The loop is general. Three shapes it was designed against:
Self-learning content engine. Each post is a unit; engagement is the verdict. Hooks that keep winning graduate into the brand's proven playbook.
s.learn("pattern", "carousels outperform single images", domain="ig") # ...×3 → hypothesis
for saves, ok in [(1200,"pass"), (90,"fail"), (1500,"pass"), (1100,"pass")]: post = s.unit(f"carousel ({saves} saves)", kind="contract", hypothesis=h.id) s.verdict(ok, unit=post, evidence=f"{saves} saves")
Lead capture. Each lead is a unit with its own checkpoint trail; a tactic about what converts graduates once enough leads confirm it.
lead = s.unit({"name": "Acme", "source": "webinar"}, kind="contract")
s.checkpoint({"stage": "demo booked"}, unit=lead) s.verdict("pass", unit=lead, evidence="closed")
Self-improving job applications. Each application is a unit; "lead with a shipped metric" stays a guess until enough replies prove it, then becomes a rule.
app = s.unit({"company": "Acme"}, kind="contract", hypothesis=h.id)
s.verdict("pass", unit=app, evidence="recruiter replied")
metabrain has seven tables, and you never write to them directly — correct use of the API fills every one as a side effect. Open a session and each write inherits its id, emits an event, and turns the loop:
| Table | Filled by | When |
|---|---|---|
sessions | db.session() open/close | every run |
events | every write method | always (telemetry is automatic) |
learnings | learn() — preference rows are *graduated* | always |
context | unit(), checkpoint(), handoff(), verdict() | always |
hypotheses | a pattern crossing promote_at (default 3 hits) | automatic |
experiments | a verdict() on a unit/hypothesis under test | automatic |
errors | capture_error(), and any exception inside a session | automatic |
The thresholds are tunable and were calibrated on 5,066 real learnings, not guessed: promote_at=3 (where the recurring-pattern tail actually begins), graduate_at=0.8 over a minimum of 3 experiments so a single lucky result can't graduate.
db = MetaBrain("agent.db", promote_at=3, graduate_at=0.8, min_experiments=3)
| Method | What it does |
|---|---|
session(*, task, tier, agent, meta) | Open a session (context manager); records the outcome on close |
learn(type, insight, *, evidence, domain, ...) | Record/reinforce a lesson; recurring patterns graduate to hypotheses |
recall(query, *, limit) | Substring-search lessons; bumps hit count (can trigger graduation) |
learnings(*, type, domain, limit) | Fetch lessons, newest first |
forget(id) | Delete a lesson |
unit(statement, *, kind, acceptance, hypothesis) | Open a unit of work; kind="spec" requires acceptance=[...] |
checkpoint(content, *, unit, agent) | Record progress mid-work |
handoff(content, *, unit, agent) | Record a brief for the next session |
verdict(result, *, unit, hypothesis, evidence) | "pass"/"fail"; becomes an experiment when a hypothesis is in play |
hypotheses(*, status, limit) / experiments(*, hypothesis) | Inspect the loop |
context(*, type, unit, limit) | Fetch work-state entries |
read_start(*, learnings_limit) | The "what to know" digest — proven preferences first |
capture_error(tool, error, ...) / errors(*, limit) | Record / fetch failures |
prune(*, keep) / stats() | Trim old checkpoints / row counts per table |
Use MetaBrain(":memory:") for an ephemeral in-process store (handy in tests).
Built for multiple agents sharing one file. SQLite runs in WAL mode with a busy timeout so several processes read and write concurrently; within a process a single connection is lock-guarded, and the verdict→graduation path is one critical section so racing verdicts can never double-graduate a hypothesis. Every value is bound as a query parameter — caller strings never reach the SQL text.
It can open and migrate an older metabrain / base-schema database (learnings, context, errors) forward in place. A database created by a different tool whose events/hypotheses/experiments tables have an incompatible shape is detected on open and rejected with a clear IncompatibleDatabaseError, rather than corrupting it.
Point Claude Code, Codex, or any MCP client at a metabrain file and the loop runs from inside the agent — no glue code.
pip install 'metabrain[mcp]'
claude mcp add metabrain -- metabrain-mcp --db ./agent.db
Codex, in ~/.codex/config.toml:
[mcp_servers.metabrain]
command = "metabrain-mcp" args = ["--db", "./agent.db"]
metabrain-mcp speaks stdio, opens one shared MetaBrain on the --db path, and closes it on exit. Seven tools, thin wrappers over the library:
| Tool | Calls |
|---|---|
start_brief() | read_start() — proven preferences first; run it before you work |
recall(query, limit=20) | recall() |
learn(type, insight, domain?, context?) | learn(); type is failure / pattern / gotcha / preference |
hypotheses(status?) | hypotheses() |
verdict(result, unit?, evidence?, hypothesis?) | verdict() — closes the loop |
stats() | stats() |
capture_error(tool, error, context?) | capture_error() |
Or in Docker, with the database on a mounted volume: docker run -i --rm -v metabrain:/data mcp/metabrain (METABRAIN_DB overrides the default /data/agent.db).
The core package stays zero-dependency; the mcp SDK arrives only with the extra, and works on both mcp 1.x and 2.x.
pip install -e ".[dev]"
pytest
MIT © Aria Han