jdocmunch-mcp
by jgravelle·★ 171·综合分 51
MCP 服务器通过结构化章节索引实现高效文档探索,比传统方法减少 95% 的 token 消耗。
概述
jDocMunch 是一个精致的 MCP 服务器,它通过从基于文件转向基于章节的访问方式,革新了 AI 代理与文档交互的方式。它使用标题层次结构和章节结构一次性索引文档,然后仅提供代理实际需要的内容访问。这种方法大幅减少了 token 消耗,消除了不相关上下文,并提高了代理的可靠性。该服务器实现了 jMRI-Full 规范,支持发现、搜索、检索和元数据操作,具备批量功能、基于哈希的漂移检测和字节偏移寻址。
试试问 AI
装完之后,这里有 7 个你可以让 AI 做的事:
什么时候选它
当处理大型文档集,需要高效、结构化的检索而不会让上下文窗口溢出时。
什么时候不要选它
对于预算有限的团队,因为商业用途需要付费许可,或者如果您只需要基本的文件访问而不需要章节索引。
此 server 暴露的工具
从 README 抽取出 7 个工具index_local{ "path": "/path/to/docs" }Index a local folder of documentation
index_repo{ "url": "owner/repo" }Index documentation from a GitHub repository
get_toc{ "repo": "owner/repo" }Get the table of contents for a documentation repository
get_toc_tree{ "repo": "owner/repo" }Get the hierarchical table of contents tree
get_document_outline{ "repo": "owner/repo", "doc_path": "docs/config.md" }Get the outline structure of a specific document
search_sections{ "repo": "owner/repo", "query": "authentication" }Search for documentation sections matching a query
get_section{ "repo": "owner/repo", "section_id": "owner/repo::docs/config.md::authentication#1" }Retrieve the content of a specific documentation section
可对比工具
安装
安装
**先决条件**
- Python 3.10+
- pip
**通过 pip 安装:**
pip install jdocmunch-mcp**配置 Claude Desktop:** 将以下内容添加到您的 claude_desktop_config.json 中:
{
"mcpServers": {
"jdocmunch": {
"command": "uvx",
"args": ["jdocmunch-mcp"]
}
}
}对于可选的 AI 摘要和 GitHub 身份验证:
{
"mcpServers": {
"jdocmunch": {
"command": "uvx",
"args": ["jdocmunch-mcp"],
"env": {
"GITHUB_TOKEN": "ghp_...",
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}保存后,重新启动 Claude Desktop。
FAQ
- jDocMunch 与传统文档检索方法相比如何?
- 与传统的基于文件的方法相比,jDocMunch 可减少高达 95% 的 token 消耗。它不是加载整个文档,而是通过章节进行索引并仅检索相关内容,使文档探索效率大大提高。
- jDocMunch 支持哪些文件格式?
- 它支持 Markdown/MDX/HTML/RST/AsciiDoc 等基于标题的解析,OpenAPI 标签等基于结构的解析,以及 Jupyter 笔记本等基于单元格的解析。
- jDocMunch 对商业使用免费吗?
- jDocMunch 仅对非商业使用免费。商业使用需要付费许可证,根据开发人员数量和部署范围,从 29 美元(构建者)到 499 美元(平台)不等。
jdocmunch-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。