Mcp Retrieval Spec
Description
jMRI v1.0 — open specification for token-efficient context retrieval in MCP servers. SDKs, reference server, benchmark.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
mcp-retrieval-spec
The jMRI (jMunch Retrieval Interface) specification — an open interface standard for token-efficient context retrieval in MCP servers.
What Is jMRI?
Agents that read whole files to answer specific questions waste 99% of their token budget. jMRI is a minimal interface for MCP servers that do retrieval right: index once, search by intent, retrieve exactly what you need.
Four operations. One response envelope. Two compliance levels.
**The problem in numbers:** A typical FastAPI codebase costs ~42,000 tokens to read naively. jMRI retrieval of the same answer costs ~480 tokens. At $3/1M tokens, that's $0.126 vs. $0.0014 per query. Across millions of queries, the savings are material.
The jMunch tools have saved billions of tokens across user sessions. This spec is the formal definition of what they do.
How It Works
Agent
│
├─ discover() → What knowledge sources are available?
├─ search(query) → Which symbols/sections are relevant? (IDs + summaries only)
├─ retrieve(id) → Give me the exact source for this ID.
└─ metadata(id?) → What would naive reading have cost?
Every response includes a `_meta` block with `tokens_saved` and `total_tokens_saved`. Agents can see exactly what they're saving on every call.
Spec
→ [SPEC.md](./SPEC.md)
The full jMRI v1.0 specification. Apache 2.0. Implement it however you want.
Reference Implementations
The spec is open. The best implementations are commercial.
| Implementation | Domain | Stars | Install |
|---|---|---|---|
| jCodeMunch | Code (70+ languages) | 1,500+ | uvx jcodemunch-mcp |
| jDocMunch | Docs (MD, RST, HTML, notebooks) | 135+ | uvx jdocmunch-mcp |
| jDataMunch | Tabular data (CSV, Excel, Parquet, JSONL) | new | uvx jdatamunch-mcp |
Both implement jMRI-Full. Licenses
Related Skills
Spec Kit
💫 Toolkit to help you get started with Spec-Driven Development
Testing Webapp Testing
Test local web applications using Playwright for UI verification and debugging
Testing #29
, [#52](https://github.com/affaan-m/everything-claude-code/issues/52), [#103](https://github.com/affaan-m/ever
Testing Fix Issue
by metabase - Addresses GitHub issues by taking issue number as parameter, analyzing context, implementing sol
Testing Pypict Test Design
Design comprehensive test cases using PICT (Pairwise Independent Combinatorial Testing) for optimized test sui
Testing gstack
| 15,000+ | Garry Tan's exact Claude Code setup: 6 opinionated tools that serve as CEO, Eng Manager, Release M
Testing