
Mcp Docs Server
io.github.praveenc由 GitHub 账号 praveenc 发布v0.1.0更新于 Oct 24, 2026
MCP server for searching MCP protocol documentation
概览
本地 MCP 服务器,让助手用 BM25 排序检索并获取 modelcontextprotocol.io 上的 MCP 协议文档。
- 可以做什么
- 按相关度检索 MCP 协议文档,可指定返回条数
- 按 URL 获取文档页面的完整内容
- 返回匹配项的标题、得分与摘要,并对标题、代码块和链接加权
- 适用场景
- 适合在开发或调试 MCP 服务器与客户端时,让助手直接在对话中查阅协议规范、传输方式、工具等文档内容。
- 运行要求
- 以本地 stdio 进程运行,通常通过 npx 启动 npm 包 @praveenc/mcp-docs-server(需要 Node.js),也可全局安装。未声明任何认证、环境变量或请求头。获取文档需要访问 modelcontextprotocol.io 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Docs Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Docs Server
A Model Context Protocol (MCP) server for searching MCP protocol documentation. Built with TypeScript using the official MCP SDK.
Features
- BM25 Search - High-quality ranked search using BM25 algorithm with Porter stemming
- Fast Startup - Indexes document titles at startup, fetches content on-demand
- Markdown Aware - Weights headers, code blocks, and links for better relevance
- stdio Transport - Runs as a local process for easy integration
Installation
Quick Start (Recommended)
Add to your MCP client configuration (Claude Desktop, Kiro, etc.):
That's it! The server will be downloaded and run automatically.
Global Install
Then configure your MCP client:
Tools
search_mcp_docs
Search MCP protocol documentation with ranked results.
Parameters:
query(string, required): Search query stringk(number, optional): Maximum results to return (default: 5). Returns fewer if fewer documents match.
Example:
Returns:
fetch_mcp_doc
Fetch full document content by URL.
Parameters:
uri(string, required): Document URL from modelcontextprotocol.io
Example:
Returns:
Testing with MCP Inspector
Development
Clone the repository for local development:
Commands
Local MCP Client Config (Development)
Architecture
Search Algorithm
The search uses BM25 (Best Matching 25) with enhancements:
- Porter Stemming - Matches word variants (e.g., "running" → "run")
- Bigrams - Captures phrase matches (e.g., "tool input")
- Weighted Scoring:
- Title matches: 3-8x boost
- Header matches: 4x weight
- Code blocks: 2x weight
- Link text: 2x weight
- Domain Term Preservation - Technical terms like "mcp", "json", "stdio" are not stemmed
License
MIT
来源:README.md,提交 e0bb31d
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。