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 分

    請在儲存庫或註冊中心條目中宣告授權條款。