Mcp Docs Server

io.github.praveenc由 GitHub 账号 praveenc 发布v0.1.0更新于 Oct 24, 2026

MCP server for searching MCP protocol documentation

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让助手用 BM25 排序检索并获取 modelcontextprotocol.io 上的 MCP 协议文档。

可以做什么
  • 按相关度检索 MCP 协议文档,可指定返回条数
  • 按 URL 获取文档页面的完整内容
  • 返回匹配项的标题、得分与摘要,并对标题、代码块和链接加权
适用场景
适合在开发或调试 MCP 服务器与客户端时,让助手直接在对话中查阅协议规范、传输方式、工具等文档内容。
运行要求
以本地 stdio 进程运行,通常通过 npx 启动 npm 包 @praveenc/mcp-docs-server(需要 Node.js),也可全局安装。未声明任何认证、环境变量或请求头。获取文档需要访问 modelcontextprotocol.io 的网络连接。
安装前请注意
服务器会从 modelcontextprotocol.io 联网抓取文档页面,查询内容和请求的 URL 会发送到该站点。它只读取文档,未声明凭据或写入操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Docs Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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.

[npm version] [MCP Registry]

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.):

json
{  "mcpServers": {    "mcp-docs-server": {      "command": "npx",      "args": ["-y", "@praveenc/mcp-docs-server"]    }  }}

That's it! The server will be downloaded and run automatically.

Global Install

bash
npm install -g @praveenc/mcp-docs-server

Then configure your MCP client:

json
{  "mcpServers": {    "mcp-docs-server": {      "command": "mcp-docs-server"    }  }}

Tools

search_mcp_docs

Search MCP protocol documentation with ranked results.

Parameters:

  • query (string, required): Search query string
  • k (number, optional): Maximum results to return (default: 5). Returns fewer if fewer documents match.

Example:

json
{  "query": "transports",  "k": 5}

Returns:

json
[  {    "url": "https://modelcontextprotocol.io/specification/2025-11-25/basic/transports.md",    "title": "Transports",    "score": 15.725,    "snippet": "MCP uses JSON-RPC to encode messages..."  }]

fetch_mcp_doc

Fetch full document content by URL.

Parameters:

  • uri (string, required): Document URL from modelcontextprotocol.io

Example:

json
{  "uri": "https://modelcontextprotocol.io/specification/2025-11-25/server/tools.md"}

Returns:

json
{  "url": "https://modelcontextprotocol.io/specification/2025-11-25/server/tools.md",  "title": "Tools",  "content": "# Tools\n\nTools enable servers to expose executable functionality..."}

Testing with MCP Inspector

bash
npx @modelcontextprotocol/inspector npx -y @praveenc/mcp-docs-server

Development

Clone the repository for local development:

bash
git clone https://github.com/praveenc/mcp-docs-server.gitcd mcp-docs-servernpm install

Commands

bash
# Run in development modenpm run dev
# Run testsnpm test
# Type checknpm run typecheck
# Buildnpm run build
# Test with MCP Inspector (development)npm run inspect:dev

Local MCP Client Config (Development)

json
{  "mcpServers": {    "mcp-docs-server": {      "command": "npx",      "args": ["tsx", "/path/to/mcp-docs-server/src/index.ts"]    }  }}

Architecture

text
src/├── index.ts          # MCP server entry point├── config.ts         # Configuration├── tools/│   └── docs.ts       # search_mcp_docs, fetch_mcp_doc└── utils/    ├── cache.ts      # Document caching    ├── doc-fetcher.ts # HTTP fetching & HTML parsing    ├── indexer.ts    # BM25 search index    ├── logger.ts     # Logging utilities    ├── stopwords.ts  # Stop words list    ├── text-processor.ts # Text utilities    └── url-validator.ts  # URL validation

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。