Installation
Install globally via npm:Quick Start
Available Commands
| Command | Description |
|---|---|
server (default) | Start the unified MCP server |
scrape | Scrape and index documentation from a URL or local directory |
search | Query the documentation index |
list | List all indexed libraries and versions |
remove | Delete a library’s documentation from the index |
refresh | Update an existing library by re-scraping changed pages |
config | View or modify configuration |
mcp | Start MCP server in standalone mode |
web | Start web interface only |
worker | Start pipeline worker in standalone mode |
fetch-url | Fetch and display a single URL (debugging) |
find-version | Find the best matching version for a library |
Global Options
These options are available for all commands:Enable verbose (debug) logging
Disable all logging except errors (mutually exclusive with
--verbose)Enable/disable telemetry collection. Use
--no-telemetry to disable.Custom path for data storage directory. Defaults to system-specific location.
Can also be set via
DOCS_MCP_STORE_PATH environment variable.Path to configuration file. If specified, the config is read-only and cannot be modified via
config set.Show ASCII art logo on startup (for server commands)
Show help information for a command
Show version information
Common Patterns
Scraping Local Documentation
Use thefile:// protocol to scrape local HTML files or directories:
When using Docker, mount the local directory and use the container path.
Working with Versions
Version matching supports flexible patterns:Using External Pipeline Workers
For distributed setups, connect CLI commands to a remote pipeline worker:Custom Embedding Models
Specify embedding models per command:Output Formats
Theconfig command supports multiple output formats:
Error Handling
Common Issues
Mutually Exclusive OptionsExit Codes
0- Success1- Error (invalid arguments, operation failed, etc.)
Shell Completion
The CLI is built with Yargs, which supports shell completion. Generate completion scripts:Next Steps
Scrape Command
Index documentation from URLs or local files
Search Command
Query your documentation index
Configuration
Manage server configuration
Environment Variables
Configure via environment variables
