jdocmunch-mcp
jDocMunch-MCP is an MCP server that lets AI agents navigate documentation by section rather than by file, enabling token-efficient, precise retrieval that preserves structural context.
Indexing
Index local folders (
index_local) or GitHub repos (doc_index_repo) supporting Markdown, HTML, OpenAPI, Jupyter Notebooks, RST, and more.Delete indexes (
delete_index) and manage repo groups (define_repo_group,list_repo_groups).
Discovery & Navigation
Browse with flat TOC (
get_toc), nested tree (get_toc_tree), per-document outline (get_document_outline), and inventory (list_docs,doc_list_repos).Get repo snapshots (
get_index_overview) and navigate hierarchies via ancestors (get_section_path), descendants (get_section_descendants), and neighbors (section_neighbors,describe_section).
Search & Retrieval
Hybrid BM25+semantic search (
search_sections), title matching (search_titles), and code block search (find_code_examples).Retrieve full sections (
get_section,get_sections), excerpts (get_section_excerpts), context bundles (get_section_context), and metadata without content (get_section_summaries).
Documentation Health & Quality
Detect broken links (
get_broken_links), orphan sections (get_orphan_sections), stale pages (get_stale_pages), and backlinks (get_backlinks).Six-axis health radar (
doc_health_radar), health diff (diff_doc_health_radar), duplicate detection (find_similar_sections), and wiki stats (get_wiki_stats).
Drift Detection & Integrity
Track freshness (
get_recent_changes), diff indexed vs. on-disk content (get_section_diff), verify byte-offset integrity (verify_index), and detect embedding model upgrades (check_embedding_drift).
OpenAPI & Glossary
Find endpoints by path/method/tag (
find_endpoint,list_endpoints_by_tag), trace schema usage (find_operations_using_schema), visualize schema graphs (get_schema_graph).Look up glossary terms (
lookup_term,list_terms).
Code ↔ Doc Bridging (jCodeMunch)
Check symbol documentation coverage (
get_doc_coverage,get_undocumented_symbols), link code blocks to symbols (link_code_to_symbols), and map doc repos to code repos (resolve_related_code_repos).
Impact Analysis & Risk
Assess blast radius of section changes (
get_section_blast_radius), preflight deletion checks (check_section_delete_safe), and PR risk scoring (get_doc_pr_risk_profile).
Performance & Telemetry
Monitor session token savings and latency (
get_session_stats), per-tool latency analysis (analyze_perf), and tune hybrid search weights (tune_weights).
Guided Setup
jdocmunch_guidereturns the current agent policy snippet for correct configuration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jdocmunch-mcpfind the installation section in the documentation"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jDocMunch MCP
jDocMunch is an MCP server for coding agents that retrieves the exact documentation section a task needs, without loading whole files into the context window.
Index a documentation set once by heading hierarchy, then fetch a single section, a heading subtree, or a ranked search result — extracted byte-precisely from the original file.
Install · Quickstart · Benchmarks · Commercial licensing
Free for personal use. Commercial use requires a paid license — terms below.
Why jDocMunch?
The problem. An agent asked "how do I configure authentication?" opens a documentation file, skims hundreds of paragraphs it does not need, opens another, and repeats. Large context windows do not fix this. They just make the waste affordable enough to ignore until the bill arrives, and they crowd out the context the model actually needed.
The mechanism. jDocMunch parses a documentation set into a section tree keyed by heading hierarchy, stores each section's byte offsets into the original file, and exposes retrieval over MCP. Sections keep durable identities across re-indexing as long as path, heading text, and heading level are unchanged.
The outcome. The unit of access changes from file to section. An agent retrieves the installation section, one configuration block, or a specific heading subtree — and nothing else.
Related MCP server: Code Context Engine
What makes it different
Section-first retrieval
Search and retrieve documentation by section, not just file path or keyword match.
Byte-precise extraction
Full content is pulled on demand from exact byte offsets into the original file.
Stable section IDs
Sections retain durable identities across re-indexing when path, heading text, and heading level remain unchanged.
Evidence
Four benchmarks against public documentation corpora, each with the corpus, date, and per-query results recorded in benchmarks/.
Corpus | Scale | Indexed in | Result |
Kubernetes ( | 1,569 | 3,352 ms | 27,285 tokens saved on a single node-affinity query; 100 ms latency |
10,402 sections, ~855,000 corpus tokens | 2,247 ms | 135–152 ms per query across sparse-solver, FFT, and optimization lookups | |
LangChain (MDX) | 5,973 sections | 5,204 ms | MDX-aware sectioning found 754% more sections than the naive pass |
7,449-token corpus | — | Search returns ranked metadata in ~190 tokens against a 7,449-token whole-corpus read |
Read these as per-corpus results, not as a single headline multiple. Savings depend on how large the containing file is relative to the section you needed: a small file with one heading saves almost nothing, and the Kubernetes corpus saves a great deal. The benchmark files record the queries that did poorly alongside the ones that did well.
A separate, measured result from the v1.121.0 projection work, on this repository's own docs at max_results=10: a search row went 1,989 chars → 319 with compact=true (−84%), or 431 with snippet_bytes=200 (−78%) while removing the follow-up get_section call entirely.
Retrieval quality is gated, not assumed. Every release runs a replay fixture over a frozen golden set and fails below nDCG 0.95. That gate has failed builds and blocked releases; it is not decorative.
Install
Requirements: Python 3.10+, any MCP-compatible client.
uv tool install jdocmunch-mcp
jdocmunch-mcp initNo virtualenv to manage, nothing written into system Python, and it works as-is on PEP 668 distros (Ubuntu 24.04+, Debian 12+) where bare pip install is refused. Don't have uv yet?
init detects your MCP clients, writes their config entries, installs the doc-exploration prompt policy so your agent actually reaches for the tools, and optionally installs hooks and indexes your docs.
Command | Use it when |
| Zero install. Runs from an ephemeral environment — nothing lands on disk permanently. The client entries |
| You already standardise on pipx |
| Inside a virtualenv you manage yourself |
Verify:
jdocmunch-mcp --versionManual Claude Code setup:
claude mcp add -s user jdocmunch -- uvx jdocmunch-mcpNo install step — uvx fetches and runs the server on demand. Prefer it on your PATH (and required for hooks)? uv tool install jdocmunch-mcp, then claude mcp add -s user jdocmunch jdocmunch-mcp.
Installing the server makes the tools available; it does not break an agent's habit of brute-reading files. One line in your CLAUDE.md does that:
Call the jdocmunch_guide tool and strictly follow its instructions.Quickstart
Assumes: jDocMunch installed and registered with your client, and a folder of documentation.
Index a local documentation folder:
jdocmunch-mcp index-local --path ./docsIt prints JSON naming the corpus and what it found:
{
"success": true,
"repo": "local/docs",
"file_count": 1,
"section_count": 4,
"doc_types": { ".md": 1 },
"semantic_search": false
}section_count greater than file_count is the whole point: the index addresses headings, not files.
Then, inside your agent:
Using jdocmunch, search the docs for "authentication configuration" and show me that section.
The agent should call search_sections, then get_section on the top hit — returning one section rather than a file. _meta.tokens_saved on the response reports what that cost versus reading the containing document.
Next step: get_toc_tree for a structural view of the whole corpus, or index_repo to index documentation straight from a GitHub repository.
What you can do
Retrieve one section instead of a document.
get_sectionandget_sectionspull byte-precise content from the original file;get_section_excerptnarrows further.Search by meaning, not just keywords.
search_sectionsfuses BM25 with semantic cosine when an embedding provider is configured.compact=true,fields=[...], andsnippet_bytes=Ncut the response further.Navigate structure.
get_toc,get_toc_tree,get_section_path,get_section_descendants, andsection_neighborstraverse the heading tree without reading content.Find what documentation is missing or rotting.
get_doc_coverage,get_undocumented_symbols,get_stale_pages,get_orphan_sections,get_broken_links, anddoc_health_radar.Work across API specs.
find_endpoint,list_endpoints_by_tag,find_operations_using_schema, andget_schema_graphtreat OpenAPI documents as first-class.Preflight documentation changes.
check_section_delete_safeandget_section_blast_radiusbefore you remove or restructure.Know when an answer is stale. Content reads disclose
_meta.freshness,_meta.verdict, and which source layer answered.
64 tools in total. The full reference is in USER_GUIDE.md.
How it works
Everything runs locally. Indexes live under your home directory; no hosted service is required for indexing or retrieval.
docs/ ──► parser (per format) ──► section tree ──► local index
│
MCP client ◄── retrieval ◄──┘Parsing is per format, one module each: Markdown/MDX, reStructuredText, AsciiDoc, Jupyter notebooks, HTML, plain text, OpenAPI (YAML), JSON/JSONC, XML/SVG/XHTML, Godot scenes, and — via the optional
[office]extra — PDF, DOCX, PPTX, and EPUB.Storage is a versioned local index (
INDEX_VERSION = 3) that auto-migrates on first load. A 1.x release never forces a reindex.Retrieval is lexical BM25 by default, hybrid when embeddings are available.
Embeddings are optional and provider-agnostic — Gemini, OpenAI, an OpenAI-compatible endpoint, or local sentence-transformers. Without one, search stays lexical and entirely offline.
Deeper detail: ARCHITECTURE.md and SPEC.md.
Security and privacy
Local-first by design. Your documentation is parsed and stored on your machine, and the base package's only default network behavior is an anonymous savings counter — a random ID plus aggregate token counts, no content, no paths, no PII.
Opt out completely:
JDOCMUNCH_SHARE_SAVINGS=0Embedding and summarizer providers call their configured API only when you enable them, and never by default. watch-install registers a login service only when you run it yourself.
Background behavior, fully disclosed
A child process, when local embeddings are in use. When the
sentence-transformers provider is active, jDocMunch runs the embedding model
in a child process (python -m jdocmunch_mcp.embeddings.worker) instead of
inside the server. It:
starts when something first needs an embedding — at startup if the model is already in your local HuggingFace cache, otherwise on the first search or index that uses it. A lexical-only install never spawns it;
opens no network connection and speaks only to its parent, over a private pipe;
exits when the server exits, and is killed if it stops responding;
is not a login service, is not registered anywhere, and survives nothing.
This exists because importing the embedding stack inside the server process can
deadlock in the Windows loader
(#118), hanging every
tool call for as long as the server runs. Disable it with
JDOCMUNCH_EMBED_WORKER=0, which restores the previous in-process import.
A login service, only if you install one. jdocmunch-mcp watch-install
registers the doc watcher to start at login (systemd user unit, launchd agent,
or a Task Scheduler task named jdocmunch-watch). Nothing installs it for you.
Once installed it:
re-indexes every locally-indexed doc repo when a doc file on disk changes;
runs exactly
jdocmunch-mcp watchwith the flags you passed towatch-install—--no-ai-summariesto keep the summarizer out of it,--quietto suppress its per-change log lines;writes to
watch.logandwatch.errunder your doc-index directory;is removed by
jdocmunch-mcp watch-uninstall.
⚠ Re-running watch-install rewrites the service definition, so a
hand-edited one is replaced. It now prints what it replaced; pass the flags to
watch-install itself so an upgrade keeps them
(#120).
Path traversal prevention, symlink escape protection, secret exclusion, file-size limits, binary detection, and encoding safety are documented in SECURITY.md, along with how to report a vulnerability.
Limitations
Section retrieval helps least on small files. If a document has one heading and 40 lines, retrieving the section and reading the file cost about the same.
Semantic search requires an embedding provider. Without one, search is lexical only — good for identifiers and exact phrasing, weaker for paraphrased questions.
Office formats need the optional
[office]extra and are supported for local indexing only.Freshness is disclosed, not guaranteed. A section whose source cannot be checked is reported as
unknownrather than assumed current.jDocMunch does not parse code. Symbols, signatures, and call graphs belong to jcodemunch-mcp; tabular data belongs to jdatamunch-mcp.
Documentation
Doc | What it covers |
Full tool reference, workflows, and best practices | |
Storage model, parsing pipeline, extension points | |
Response contracts and reason-code vocabulary | |
Security controls and vulnerability reporting | |
How savings are counted and reported | |
Development setup and the CLA requirement | |
Release history and what's next |
Licensing and commercial use
Released under the jDocMunch-MCP Dual-Use License (full terms). Free for non-commercial use. Commercial use requires a paid license, one-time, sold by jMunch LLC.
jDocMunch only: Builder, $29 (1 developer) · Studio, $99 (up to 5) · Platform, $499 (org-wide internal deployment)
Full jMunch suite (code + docs + data): Trio Builder, $99 · Trio Studio, $449 · Trio Platform, $2,499
Individual developers and non-commercial projects need no license. Organizations deploying jDocMunch across internal teams do.
1.x compatibility commitment
Every 1.x license entitles you to every future 1.x release. We will never ship a 1.x version that:
removes or renames an MCP tool (deprecated tool names keep their aliases),
drops a
Sectionfield from the response shape,forces a reindex without auto-migrating your existing index on first load,
changes the JSON wire format of any tool response in a way that breaks an existing consumer,
or makes a previously-default behavior raise.
Anything that would require breaking these promises is reserved for a future major version (2.x). The full machine-checked contract is enforced via tests/test_server.py (tool-name and required-field invariants) and the replay-fixture gate that runs on every release.
Support and project status
Actively maintained. Issues and bug reports: GitHub Issues. Security reports: see SECURITY.md. Commercial licensing questions go through jcodemunch.com.
Part of the jMunch suite alongside jcodemunch-mcp (code symbols) and jdatamunch-mcp (tabular data). All three implement jMRI, the open retrieval interface spec.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables fast, token-efficient access to large documentation files in llms.txt format through semantic search. Solves token limit issues by searching first and retrieving only relevant sections instead of dumping entire documentation.3MIT

Code Context Engineofficial
AlicenseNot gradedqualityAmaintenanceIndexes your codebase so AI coding agents can search instead of re-reading files, saving up to 94% of tokens.397MIT- AlicenseAqualityAmaintenanceEnables AI agents to search local Markdown documents using natural language, with automatic indexing and section-level retrieval.921MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to intelligently navigate and understand codebases by providing instant file descriptions, semantic search, and context-aware recommendations, eliminating the need to repeatedly scan files.18MIT
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Token-efficient search for coding agents over public and private documentation.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgravelle/jdocmunch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server