MCP Doc Server

v1.0.0Search & Data Extractionstable

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.

mcpdocservermcpai-integration
Share:
48
Stars
0
Downloads
0
Weekly
0/5

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

Search documentation for development frameworks quickly
Crawl and index local documentation with keyword search
ruan11223344

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedApr 23, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcpdocserver

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 install
2

Configure 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
};
3

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 crawl
4

Start the MCP server

Start the MCP server process. It serves the search and retrieval tools over the MCP protocol.

npm start
5

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "mcpdocserver": { "command": "npx", "args": ["-y", "mcpdocserver"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides