MCP Doc Server
A documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.
What is MCP Doc Server?
MCP Doc Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to documentation server based on mcp protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail re...
A documentation server based on MCP protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A documentation server based on MCP protocol designed for va
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcpdocserverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP Doc Server
McpDocServer is a self-hosted MCP documentation server that crawls development framework documentation websites, indexes the content locally, and exposes keyword search and full-document retrieval tools to AI assistants. Rather than relying on potentially outdated training data, AI agents can query up-to-date, framework-specific documentation directly during code generation. Teams building with rapidly evolving frameworks — such as Taro, React Native, or any doc site you configure — will find this server dramatically improves AI answer accuracy on API-level questions.
Prerequisites
- Node.js 18+ and npm installed
- Google Chrome or Chromium installed (the crawler uses Puppeteer with your existing browser)
- The PUPPETEER_SKIP_DOWNLOAD=true environment variable set so Puppeteer uses your system Chrome
- Network access to the documentation websites you want to crawl
- An MCP-compatible client such as Claude Desktop or Cursor
Clone the repository and install dependencies
Clone McpDocServer and install Node.js dependencies. Set PUPPETEER_SKIP_DOWNLOAD=true so it uses your system Chrome instead of downloading a separate Chromium binary.
git clone https://github.com/ruan11223344/McpDocServer.git
cd McpDocServer
export PUPPETEER_SKIP_DOWNLOAD=true
npm installConfigure your documentation sources
Edit config/doc-sources.js to define which documentation sites to crawl. Each source needs a name, base URL, and optional include/exclude URL patterns. The name you assign becomes the 'source' parameter in search queries.
// config/doc-sources.js
export const docSources = [
{
name: "react",
url: "https://react.dev/reference",
includePatterns: ["/reference/"],
excludePatterns: [/blog/, /learn/]
}
];
export const crawlerConfig = {
maxConcurrency: 20,
pageLoadTimeout: 30000,
contentLoadTimeout: 5000,
headless: true,
maxRetries: 3,
retryDelay: 2000,
requestDelay: 1000
};Crawl your documentation sources
Run the crawler to fetch and index the configured documentation sites. This may take several minutes for large sites. The indexed documents are stored locally.
npm run crawlStart the MCP server
Start the MCP server process. It serves the search and retrieval tools over the MCP protocol.
npm startConfigure your MCP client
Add McpDocServer to your Claude Desktop or Cursor config. The server is launched as a Node.js process pointing to the built server.js file.
{
"mcpServers": {
"doc-server": {
"command": "node",
"args": ["/absolute/path/to/McpDocServer/server.js"],
"env": {
"NODE_ENV": "development"
}
}
}
}MCP Doc Server Examples
Client configuration
Cursor mcp.json configuration for McpDocServer running as a local Node.js process.
{
"mcpServers": {
"doc-server": {
"command": "node",
"args": ["/Users/yourname/McpDocServer/server.js"],
"env": {
"NODE_ENV": "development"
}
}
}
}Prompts to try
Example prompts that leverage the search_docs and get_doc_detail tools to query indexed documentation.
- "Search the React docs for information about useEffect cleanup functions"
- "Find the documentation page about Taro components and list all available props"
- "Look up how to configure the router in the indexed framework docs"
- "Get the full documentation for the URL https://react.dev/reference/react/useState"
- "Reload the documentation index and search for 'hooks' in the React source"
- "What does the docs say about handling async operations in this framework?"Troubleshooting MCP Doc Server
Puppeteer fails to launch browser during crawl
Make sure PUPPETEER_SKIP_DOWNLOAD=true is set before running npm install, and that Google Chrome or Chromium is installed on your system. If Chrome is in a non-standard location, set the PUPPETEER_EXECUTABLE_PATH environment variable to its full path (e.g. /Applications/Google Chrome.app/Contents/MacOS/Google Chrome on macOS).
search_docs returns no results after crawling
Confirm the crawl completed successfully and that the 'name' in doc-sources.js matches the 'source' parameter you pass to search_docs. The name is case-sensitive. Run 'npm run crawl' again if you updated the config and check for errors in the crawler output.
Crawl is very slow or times out on large documentation sites
Reduce maxConcurrency in crawlerConfig (try 5-10 for large sites) and add excludePatterns to skip API reference pages or versioned docs you don't need. Increasing pageLoadTimeout can help for slow sites.
Frequently Asked Questions about MCP Doc Server
What is MCP Doc Server?
MCP Doc Server is a Model Context Protocol (MCP) server that documentation server based on mcp protocol designed for various development frameworks that provides multi-threaded document crawling, local document loading, keyword searching, and document detail retrieval. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP Doc Server?
Follow the installation instructions on the MCP Doc Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP Doc Server?
MCP Doc Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP Doc Server free to use?
Yes, MCP Doc Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
MCP Doc Server Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to MCP Doc Server? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP Doc Server in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP Doc Server?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.