DocMCP
Allows indexing and searching OpenAPI/Swagger specifications, parsing endpoints, parameters, and schemas for documentation search.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DocMCPsearch docs for how to use flexbox in Tailwind CSS"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DocMCP
Index any documentation website and search it from AI coding assistants via the Model Context Protocol (MCP).
Features
Crawl & Index: Automatically crawl documentation sites via sitemap or recursive links
Hybrid Search: Combines BM25 keyword search with vector embeddings for best results
MCP Integration: Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible tool
Multiple Providers: Anthropic (Voyage), OpenAI, or BM25-only (zero setup)
Cross-Platform: Works on macOS, Linux, and Windows
Installation
npm install -g @pieeee/docmcpRequirements
Node.js 20+
One of: Anthropic API key, OpenAI API key, or use BM25-only mode (no API needed)
Quick Start
# Initial setup
docmcp init
# Index a documentation site
docmcp add https://tailwindcss.com/docs
# List indexed docs
docmcp listMCP Configuration
Claude Code
claude mcp add docmcp -- docmcp serveOr add to your project's .mcp.json:
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"docmcp": {
"command": "docmcp",
"args": ["serve"]
}
}
}CLI Commands
Command | Description |
| Setup wizard - configure embedding provider and data directory |
| Crawl and index a documentation site |
| Show all indexed documentation |
| Remove indexed documentation |
| Start MCP server (stdio transport) |
Add Command Options
docmcp add <url> [options]
Options:
-n, --name <name> Override auto-detected doc name
-d, --depth <number> Max crawl depth (default: 10)
-m, --max-pages <number> Max pages to crawl (default: unlimited)
-i, --include <pattern...> Only crawl URLs matching pattern (glob)
-e, --exclude <pattern...> Skip URLs matching pattern (glob)
--delay <ms> Delay between requests (default: 200)
--concurrency <number> Parallel requests (default: 3)
--no-sitemap Skip sitemap, force recursive crawl
--openapi Treat URL as OpenAPI/Swagger JSON specOpenAPI/Swagger Support
You can index OpenAPI specs directly:
docmcp add https://api.example.com/openapi.json --openapi
docmcp add https://petstore.swagger.io/v2/swagger.json --openapiThis parses the spec and indexes all endpoints, parameters, and schemas for search.
MCP Tools
When connected as an MCP server, DocMCP exposes these tools:
Tool | Description |
| Search indexed documentation with hybrid BM25 + vector search |
| List all indexed documentation sources |
search_docs
Search your indexed documentation:
search_docs(query: "how to center a div", doc?: "Tailwind", limit?: 5)Parameters:
query(required): Search querydoc(optional): Filter to specific documentationlimit(optional): Max results (default: 5)
Embedding Providers
Provider | API Key Required | Notes |
|
| Uses Voyage AI embeddings (recommended) |
|
| Uses text-embedding-3-small |
| None | Keyword search only, zero setup |
Set your API key as an environment variable or enter it during docmcp init.
Data Storage
All data is stored in ~/.docmcp/:
~/.docmcp/
├── config.json # Configuration (API keys stored here)
└── db/
└── docs.db # SQLite database with FTS5 + vector searchPlatform Support
Platform | Status | Notes |
macOS (Intel) | Full | |
macOS (Apple Silicon) | Full | |
Linux (x64) | Full | |
Linux (ARM64) | Full | |
Windows (x64) | Full | May require build tools for native modules |
Windows Prerequisites
If installation fails on Windows due to native module compilation:
Install Visual Studio Build Tools
Or run:
npm install --global windows-build-toolsRetry:
npm install -g docmcp
How It Works
Crawl: DocMCP crawls documentation sites using sitemap or recursive link following
Parse: HTML is cleaned and converted to Markdown, preserving code blocks
Chunk: Content is split at heading boundaries into ~512 token chunks
Index: Chunks are stored in SQLite with FTS5 (BM25) and vector embeddings
Search: Queries use hybrid search combining keyword and semantic matching
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
MIT - see LICENSE for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pieeee/docmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server