McpDocServer

McpDocServer is an MCP server that indexes, crawls, and serves framework and library documentation directly to AI coding environments like Cursor. It connects local documentation JSON files and external technical documentation websites to Model Context Protocol clients. Software engineers and developers working with specific UI libraries and web frameworks use this server to eliminate LLM hallucinations regarding outdated methods, nonexistent APIs, and incorrect argument signatures. By leveraging a built-in Puppeteer crawler, McpDocServer scrapes documentation sites based on configurable path patterns, extracts structured content, and stores it locally. Once loaded, the server exposes dedicated search and lookup tools, allowing agents to execute targeted keyword queries or fetch the full markdown and text content of documentation pages. This ensures that coding agents access authoritative documentation and official code snippets in real time during software development.

Category: Developer Tools & Code Intelligence

Tags: crawling, documentation, frameworks, knowledge-retrieval

Visit McpDocServer

How to install and configure McpDocServer

  1. Clone the repository and install dependencies using npm. You can skip the Puppeteer download if you already have Chrome installed: bash export PUPPETEER_SKIP_DOWNLOAD=true npm install 2. Configure your documentation sources in config/doc-sources.js and generate the documentation cache: bash npm run crawl 3. Add the server configuration to your Cursor mcp.json file, using the absolute path to your server.js file: json { "mcpServers": { "文档 MCP 服务器": { "command": "node", "args": ["/absolute/path/to/server.js"], "env": { "NODE_ENV": "development" } } } } 4. Restart Cursor or verify server execution by running npm test locally.

What you can do with McpDocServer

  • Crawling targeted web documentation paths for libraries like Taro or jQuery to store them as local JSON archives. - Querying framework component APIs directly from Cursor to obtain exact method signatures and prevent hallucinated code. - Fetching full page documentation content using doc IDs to examine official usage examples and container properties. - Triggering a dynamic reload of indexed documentation across all configured sources by submitting a reload query command.

Key facts

  • https://github.com/ruan11223344/McpDocServer
  • Developer Tools & Code Intelligence, Web Search & Research
  • crawling, documentation, frameworks, knowledge-retrieval

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

What can McpDocServer do?

McpDocServer crawls web documentation using Puppeteer and serves the collected content through MCP tools. It provides tools named search_docs and get_doc_detail, which allow AI assistants to search framework documentation by keyword, filter results by documentation source, reload cached indices, and retrieve complete page details.

Which MCP clients work with McpDocServer?

McpDocServer is designed to work with Cursor through standard stdio configuration in mcp.json. Because it adheres to the standard Model Context Protocol, it also works with other MCP-compatible clients such as Claude Desktop by configuring node as the executable command pointing to server.js.

How do I add a new framework to McpDocServer?

To add a framework, update config/doc-sources.js with your target framework name, the base documentation URL, and any include or exclude regular expression patterns. After saving the configuration, run npm run crawl to scrape the pages and save the structured JSON into the docs directory.

How do I reload documentation without restarting McpDocServer?

You can trigger a reload by using the search_docs tool with reload as the query parameter. When McpDocServer detects this specific search keyword, it automatically rescans and reloads all JSON documentation files stored in the docs folder without requiring a server reboot.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories