
liana-banyan/librarian-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Pre-curated canonical memory + prose/code provenance for any AI coding client. MCP-native.
개요
Pre-curated canonical memory + prose/code provenance checking + benchmark metrics, delivered as a Model Context Protocol server that works across Claude Code, Cursor, VSCode (via Continue), and any MCP-capable client. Independently measured result (Eyewitness Benchmark R10, April 2026, eight models across four vendors, 1,200 graded calls, inter-rater kappa 0.883/0.850): - mean 8.7% correct - mean 94.8% correct — - at 19x cost difference - Applied inside Microsoft Copilot's inference path, the same architecture recovers an estimated in waste. Inside Anthropic's developer tools, . Full methodology in the R9 Empirical Test Companion Paper. for union queries: intent='["benchmark", "founder_voice"]' No grant funding, no VC, no extractive margin. Cost+20% on operating expense. That's it. Because you shouldn't have to pick between your AI assistants. MCP servers work across Claude Code, Cursor (v0.45+), Continue (VSCode / JetBrains), Zed, and every MCP-capable client in the roadmap.
README
원문 README의 일부입니다. 원문 보기.
Librarian MCP
pip install librarian-mcp
A real, measured alternative to “bigger context windows.” Pre-curated canonical memory + prose/code provenance checking + benchmark metrics, delivered as a Model Context Protocol server that works across Claude Code, Cursor, VSCode (via Continue), and any MCP-capable client.
What it does
Five tools, all exposed via MCP:
| Tool | What it does | Added |
|---|---|---|
librarian_context |
Intent-aware canonical memory packet. Loads curated preload content scoped to your query intent (outreach, architecture, benchmark, founder voice, etc.). Eliminates the “forgets by prompt #21” failure mode. | v0.1.0 (stub), v0.2.0 (intent-aware) |
prose_provenance |
Deterministic drift detection between two document versions. Catches silently-removed voice anchors, stale canonical numbers, section changes, register shifts. | v0.1.0 |
record_measurement |
Log a single benchmark measurement (vendor, model, condition, accuracy, cost, latency) to local JSONL. | v0.2.0 |
metrics_summary |
Per-vendor and per-model aggregation of recorded measurements. Shows accuracy lift, cost savings, cache hit rate. | v0.2.0 |
opt_in_share |
Toggle anonymous metrics sharing flag. Default OFF. Commons dashboard POST endpoint ships in a future release. | v0.2.0 |
Why we built this
Independently measured result (Eyewitness Benchmark R10, April 2026, eight models across four vendors, 1,200 graded calls, inter-rater kappa 0.883/0.850):
- Without the Librarian (COLD): mean 8.7% correct
- With the Librarian (HOT): mean 94.8% correct — 86.1 percentage-point lift
- Haiku 4.5 (cheapest) ties Opus 4.7 (most expensive) at 19x cost difference
- 4.3x more right answers per dollar of compute
Applied inside Microsoft Copilot’s inference path, the same architecture recovers an estimated $750M/year in waste. Inside Anthropic’s developer tools, ~$130M/year. Full methodology in the R9 Empirical Test Companion Paper.
librarian_context — Intent API
librarian_context(intent="outreach", max_tokens=16000)
| Intent | What it loads | Approx. tokens |
|---|---|---|
"" (default) |
Base R9-v2 preload only | ~4,500 |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"librarian": {
"command": "python",
"args": ["-m", "librarian_mcp"]
}
}
}