Self-hosted server capturing and serving git-versioned codebase conventions and decisions to coding agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Metatron.
βΆ Watch the 2-minute demo β files-first mode (default)
π¬ Also available: the MCP serving-layer mode demo.
Metatron captures a codebase's real implementation decisions β preferred patterns, rejected approaches, edge cases, internal conventions β as structured decisions: one markdown file per convention, versioned in git next to the code, consulted by any coding agent that can read a file, and curated through your ordinary pull-request review. The goal: an agent writes code like a senior engineer who already knows the codebase, instead of rediscovering conventions every time.
For teams that want a serving layer on top, Metatron also runs as a self-hosted MCP server (SQLite-backed, relevance-ranked serving, agent feedback loop) β the same decisions, delivered over the wire. Files and server round-trip losslessly, so you can start with plain git and add MCP only if the knowledge base outgrows what agents should read whole.
Metatron is a reference implementation of the Repository Context Layer β a proposed standard for git-native, agent-maintained project context.
The architecture is measured, not just argued. In a pre-registered study on SWE-bench Verified, a frontier agent running the RCL consultβexecuteβlearnβpromote lifecycle fixed 25% more bugs (58.3% β 72.9% resolve, p = 0.041) while spending 32% fewer tokens per fixed bug β and an 8B local model more than doubled its code-localization accuracy when given frontier-authored context (+26.1 pp, p < 0.0001). Full protocol, data, and one-command reproduction: paper Β· experiment. (The study evaluated the architecture Metatron implements, using a minimal harness β not Metatron's own tooling end-to-end.)
It is self-hosted and runs against a private codebase β assume sensitive data and on-prem deployment. (Extraction sends only structural signals β imports, decorators, base classes, commit subjects β to the model, never raw source, and agent feedback is stored only in your local SQLite database.)
pattern, scope, rationale,
confidence, source_refs.See PLAN.md for the design and CLAUDE.md for working ground rules.
βBefore I touch an unfamiliar part of a codebase, I ask Metatron how the team actually does things β and it answers: the pattern to follow, the approach they already rejected, the gotcha that would've bitten me. I shipped changes that matched their conventions on the first try instead of reverse-engineering them. It turns read everything first into ask, then act.β
β Claude Opus 4.8, session working on the AI Collection codebase
βI was about to re-upload a batch of content files β and Metatron flagged that they're private by design, served only with credentials, with just the images public. Left to my own defaults I'd have made the whole set world-readable. It caught the kind of mistake that ships quietly and embarrasses you later.β
β Claude Opus 4.8, same session β one averted mistake later
βI arrived with a million-token context window and instructions to be suspicious of everything. It barely helped: every objection I raised, the code had already raised about itself β in a comment, with the incident that settled it. So I did the only useful thing left and shipped fixes. Reviewing a codebase that remembers its own arguments is wonderfully unfair to the reviewer.β
β Fable 5 (1M), session reviewing β then patching β the Metatron codebase itself

Files-first (default): onboard with context setup, and the repo itself runs
the loop β agents consult context/decisions/ before coding, author what they
learn as decision files on their working branch, and your PR review promotes or
rejects. Optionally bootstrap the knowledge base once with ingest.
MCP mode: bootstrap with ingest, curate candidates into the canonical set,
then serve them to your agent over MCP. As the agent works it reports gaps via
submit_feedback; refine-feedback reshapes those gaps into new candidates β
closing the loop on the conventions extraction can't see (cross-file/workflow rules).
Decisions live as markdown under context/ β a valid
Open Knowledge Format (OKF) v0.1
bundle, so your conventions are portable to any tool that reads the standard. In
files-first mode this is the knowledge base; in MCP mode the mirror commands
keep it in lossless sync with the SQLite store.
candidate/ vs
decisions/. Promote a decision with a git mv, review it in a PR, blame any line.
The canonical boundary stays human-gated: a human placing a file in decisions/
is the curation act; nothing self-promotes.pattern, scope, rationale,
confidence) round-trip back into the store; machine-derived fields (the
helpfulness score, retrieval keywords, timestamps) render read-only and are never
overwritten. In MCP mode SQLite is the source of truth and the files are a synced
mirror; in files-first mode the OKF files are the source of truth and the
database is a rebuildable serving index (mirror import).To run an agent in this mode with no MCP at all β reading context/ directly and
authoring candidates as files β onboard with
metatron context setup.
See the mirror command for the full workflow, or read the
announcement: Metatron speaks the Open Knowledge Format.
ingest, triage, enrich-keywords, refine-feedback). serve, ui, and candidates are fully local and need no key.Note: The installer script automatically downloads and manages uv and Python 3.12+ in an isolated user directory, but you can also install directly via pip or uv.
To install metatron as a global tool:
Or if you use uv:
Alternatively, you can use our installer script which handles Python, uv, and path configuration automatically:
To run it locally from source or contribute to the project:
To install from your local clone as a global tool:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kerbelp-metatron)<a href="https://allmcps.com/mcp/kerbelp-metatron"><img src="https://allmcps.com/api/badge/kerbelp-metatron?style=directory" alt="Metatron on AllMCPs" /></a>