Home / MCP / Open Docs MCP Server
Provides document management with crawling, indexing, and full-text search for multiple docs via MCP.
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.
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.
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 ./docsTo 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"
]
}
}
}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.
Enable crawling for a specific document source.
Disable crawling for a specific document source.
Start crawling enabled documents to refresh the content you can search.
Build or rebuild the full-text search index for all indexed documents.
Search across the indexed documentation using the built index.
List all documentation sources that are currently enabled for crawling.
List all available documentation sources that can be enabled.