Home / MCP / Open Docs MCP Server

Open Docs MCP Server

Provides document management with crawling, indexing, and full-text search for multiple docs via MCP.

javascript
Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
    "mcpServers": {
        "open_docs_mcp": {
            "command": "npx",
            "args": [
                "-y",
                "open-docs-mcp",
                "--docsDir",
                "/path/to/docs"
            ]
        }
    }
}

You run open-docs-mcp to crawl, index, and search your documentation sources from a single MCP server. It lets you manage multiple docs, build a searchable index, and access documents through MCP-style resources and tools, enabling AI-assisted context across your docs.

How to use

You connect to the open-docs-mcp server from your MCP client to enable, crawl, index, and search your documentation. Use the client to enable_doc for each source, crawl_docs to refresh content, and search_docs to locate information across all indexed docs. You can list enabled docs with list_enabled_docs and see all available docs with list_all_docs. When you need to scale your search index, run build_index to ensure full-text search stays up to date. Tools expose practical capabilities for managing documentation without leaving your MCP environment.

How to install

Prerequisites: have Node.js and npm installed on your machine. You also need a compatible MCP client to interact with the server.

Install and run the server locally using the standard MCP command:
```
npx -y open-docs-mcp --docsDir ./docs

Configuration

To use the server with a Claude Desktop client, add a server entry to your Claude configuration with the following example. It runs the MCP server locally via npx and passes the docs directory path.

{
  "mcpServers": {
    "open_docs_mcp": {
      "command": "npx",
      "args": [
        "-y",
        "open-docs-mcp",
        "--docsDir",
        "/path/to/docs"
      ]
    }
  }
}

Security and maintenance notes

Keep your docs directory secure and ensure only trusted sources are crawled. Regularly re-build the index after adding new documents to keep search results fresh. Use the alwaysAllow setting to restrict tool usage when needed.

Available tools

enable_doc

Enable crawling for a specific document source.

disable_doc

Disable crawling for a specific document source.

crawl_docs

Start crawling enabled documents to refresh the content you can search.

build_index

Build or rebuild the full-text search index for all indexed documents.

search_docs

Search across the indexed documentation using the built index.

list_enabled_docs

List all documentation sources that are currently enabled for crawling.

list_all_docs

List all available documentation sources that can be enabled.