Quick Start Guide
This guide will get you up and running with Grounded Docs in under 5 minutes. You’ll start the server, add documentation, connect your AI assistant, and perform your first search.Prerequisites
Node.js 22 or later is required. Check your version with
node --version.- Use nvm:
nvm install 22 && nvm use 22 - Use Docker (no Node.js required)
- Download from nodejs.org
Step 1: Start the Server
- Node.js (npx)
- Docker
- With Embeddings (Recommended)
The fastest way to start. This command downloads and runs the latest version:You should see output like:
The server uses port 6280 by default. If this port is in use, specify a different one with
--port 6281.Step 2: Access the Web Interface
Open your browser and navigate to: http://localhost:6280 You’ll see the Grounded Docs web interface where you can:- Add new documentation sources
- View indexing progress
- Search documentation
- Manage your library
Step 3: Add Your First Documentation
Enter Documentation Details
Fill in the form:
- Library Name:
react(the identifier for this documentation) - Version:
18.x(or leave blank for latest) - URL:
https://react.dev/reference/react
Watch the Progress
The server will:
- Fetch the webpage and discover links
- Download all pages within the same domain
- Convert HTML to clean markdown
- Split content into searchable chunks
- Generate embeddings (if configured)
The web interface polls for status updates every 3 seconds and displays real-time progress bars.
Step 4: Connect Your AI Assistant
Now configure your AI assistant to use the documentation server:- Claude Desktop
- Cursor
- VS Code (Cline)
- Embedded Mode
Edit your Claude Desktop configuration:macOS: Restart Claude Desktop.
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows: %APPDATA%\Claude\claude_desktop_config.jsonAdd this configuration:For complete client configuration instructions, see Connecting MCP Clients.
Step 5: Test Your Setup
Search via Web Interface
First, verify the documentation is indexed:- Go to http://localhost:6280
- Use the search box at the top
- Try searching:
useState hook - You should see relevant React documentation chunks
Search via CLI
Test from the command line:Query Your AI Assistant
Now ask your connected AI assistant:Your AI will automatically use the
search_docs MCP tool to query the indexed documentation and provide grounded, accurate answers.Next Steps
Now that you’re up and running, explore more features:Add More Documentation
Index additional libraries:
Enable Semantic Search
Configure embeddings for much better search quality:
- OpenAI: Best quality (paid)
- Ollama: Free, runs locally
- Google Gemini: Good alternative
Explore Advanced Usage
Learn about:
- Scraping GitHub repositories
- Indexing ZIP archives
- Managing multiple library versions
- Job management and cancellation
Configure Deployment
Production deployment options:
- Docker Compose for scaling
- Authentication with OAuth2
- Telemetry and monitoring
Common CLI Commands
Here are the most useful commands for managing your documentation:Troubleshooting
Port 6280 is already in use
Port 6280 is already in use
Specify a different port:Update your MCP client configuration to use the new port.
Search returns no results
Search returns no results
Possible causes:
- Documentation not indexed yet: Check the web interface for job status
- Wrong library name: Use
npx @arabold/docs-mcp-server@latest listto see indexed libraries - Typo in search query: Try broader terms
AI assistant not seeing the tools
AI assistant not seeing the tools
- Verify connection: Check your MCP client logs for connection errors
- Restart the client: Most MCP clients need a restart after config changes
- Check endpoint: Make sure the URL matches the server’s output
- Protocol mismatch: Ensure you’re using the correct endpoint (
/mcpfor streamableHttp,/ssefor SSE)
Scraping fails or hangs
Scraping fails or hangs
Some websites block automated scraping. Solutions:
- Try different URLs: Use the documentation home page or sitemap
- Check robots.txt: The site may disallow scraping
- Use GitHub instead: Many projects have docs on GitHub that are easier to scrape
- Manual download: Download docs locally and use
file://URLs
Database locked errors
Database locked errors
This happens when multiple processes try to write simultaneously.Solution: If using embedded mode, launch a separate web UI that connects to the same database:Use the web UI for scraping while keeping embedded mode for queries.
Configuration Files
The server auto-creates a configuration file at: macOS/Linux:~/.config/docs-mcp-server/config.yaml
Windows: %APPDATA%\docs-mcp-server\config.yaml
You can customize:
- Database location
- Server ports and host
- Embedding model configuration
- Search parameters
- Scraping limits
What’s Next?
You now have a working Grounded Docs setup! Your AI assistant can query accurate, up-to-date documentation instead of relying on potentially outdated training data.Join the Community
Star the project, report issues, or contribute:
- Report bugs and request features
- Share your use cases
- Contribute code improvements
- Help improve documentation
