The open-docs-mcp MCP Server provides document management functionality through an MCP (Model Context Protocol) implementation. It allows you to crawl, index, and search documentation from various sources, making it accessible to AI assistants like Claude through the MCP protocol.
The simplest way to run the MCP server is using NPX:
npx -y open-docs-mcp --docsDir ./docs
If you're using Claude Desktop, you can install the Document Management Server automatically via Smithery:
npx -y @smithery/cli install @askme765cs/open-docs-mcp --client claude
To use the MCP server with Claude Desktop, you need to edit the Claude configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"open-docs-mcp": {
"command": "npx",
"args": [
"-y",
"open-docs-mcp",
"--docsDir",
"/path/to/docs"
]
}
}
}
The configuration supports these options:
command
: The Node.js executable (usually "npx")args
: Array of arguments to pass to the script
--docsDir
: Required parameter that specifies your documentation directory pathdisabled
: Optional boolean to temporarily disable the serveralwaysAllow
: Optional array of tool names that can be used without confirmationThe MCP Server provides several tools that can be invoked through the MCP protocol:
list_all_docs
to see what documentation sources are availableenable_doc
crawl_docs
build_index
search_docs
These tools can be accessed through any MCP-compatible client, including Claude Desktop when properly configured.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.