DevDocs-MCP is a Model Context Protocol (MCP) server that provides version-pinned, deterministic documentation sourced from DevDocs.io to AI assistants (Claude, RooCode, Cline, Copilot etc.). It acts as a local Documentation Intelligence Layer, ensuring your agent always has the correct API context without network latency or training data drift. This server follows the proposed MCP server standard
Add this skill
npx mdskills install madhan-g-p/devdocs-mcpWell-documented MCP server providing local, version-aware documentation with clear setup instructions

Eliminate AI hallucinations with local, version-aware, and authoritative documentation.
DevDocs-MCP is a Model Context Protocol (MCP) server that provides version-pinned, deterministic documentation sourced from DevDocs.io to AI assistants (Claude, RooCode, Cline, Copilot etc.). It acts as a local Documentation Intelligence Layer, ensuring your agent always has the correct API context without network latency or training data drift.
This server follows the proposed MCP server standard defined by the MCP , which is being adopted by AI tools and agents across the ecosystem, including those from providers such as Anthropic, OpenAI, and Google.
⚠️ Project Status Notice ⚠️ This project is under active and heavy development. Still need to test existing features and implement more new features like optimal caching , update latest doc automatically and also on request basis , optimal querying and more... Design decisions, APIs, and structure are expected to evolve based on strong opinions, reviews, and feedback from the developer community. I warmly welcome discussions, critiques, and contributions to help shape this project in the right direction.
What This Project Is
package.json versions.What This Project Is NOT
Why This Exists (The Problem)
Modern AI coding agents face three major hurdles:
The Solution: DevDocs-MCP provides "Just-in-Time" documentation retrieved from local storage, filtered by your project's specific dependency versions.
Mental Model
DevDocs-MCP acts as a middleware between your IDE Agent and the documentation source.
graph TD
Agent["AI Agents"] -->|MCP Search/Explain| Server["DevDocs-MCP Server"]
Server -->|Metadata| DB[(SQLite - sql.js)]
Server -->|Content| FS[Local Disk - JSON Cache]
Server -.->|Lazy Fetch| Web[DevDocs.io API]
sql.js for zero-native dependencies (no Python/C++ build steps).git clone https://github.com/madhan-g-p/DevDocs-MCP.git
cd DevDocs-MCP
pnpm install
cp .env.example .env
# Edit .env: Set DEVDOCS_DATA_PATH to where you want to store docs.
pnpm build
pnpm start:prod
Note: Strictly use
pnpmfor development and contributions.
DevDocs-MCP is optimized for zero-fuss setup with pnpm. It is a Node-only project.
DevDocs-MCP is designed to be lightweight and persistent. Since it downloads and caches large documentation datasets, managing your data volumes correctly is essential.
This is the recommended way. It supports 3 storage modes via the DEVDOCS_VOLUME_SOURCE variable in your .env file.
Configure your preferred storage in .env:
# Mode 1: Named volume (Default - Docker manages it)
DEVDOCS_VOLUME_SOURCE=devdocs_data
# Mode 2: Host Path (Outside Docker - Local folder)
# DEVDOCS_VOLUME_SOURCE=./my-docs-storage
Start the server:
docker compose up -d
Flexibility: Every time you start the container, you can point to a new volume (to start fresh) or an existing volume (to keep your data) just by changing the
DEVDOCS_VOLUME_SOURCEin your.envfile. Both themcp.db(database library) and thedata/(documentation downloads) are stored inside this volume.
If you just want to run the public image directly from Docker Hub:
docker run -d -p 3000:3000 \
-v "devdocs_data:/app/data" \
--name devdocs-mcp \
madhandock1/devdocs-mcp:latest
The project uses a single mount point at /app/data which contains:
/app/data/mcp.db: The SQLite registry./app/data/docs/: The cached documentation files.
This unified structure makes it easy to backup or move your entire documentation authority by simply moving one folder or volume..env)| Variable | Description | Default |
|---|---|---|
DEVDOCS_DATA_PATH | Path to store downloaded documentation JSONs. | ./data |
MCP_DB_PATH | Path to the SQLite metadata database. | mcp.db |
LOG_LEVEL | Verbosity (debug, info, warn, error). | info |
Once the server is connected to your agent, use the ingest tool to download documentation for your specific stack:
Agent will take care of it once the server is up and running , it is supposed to list the available to tools and take decision accordingly.
{
"dependencies": {
"react": "18.2.0",
"typescript": "5.0.0"
}
}
Note: The Devdocs fetch url required to be used for ingestion is defined in
src/config/constants.ts. This URL currently points to the correct and officially supported path. If the devdocs community changes this path in future, the configuration may need to be updated accordingly.
This approach does not involve web scraping. It follows the same supported mechanism used by DevDocs to provide documentation for offline use, similar to how users download documentation within DevDocs itself.
Add this to your mcp_settings.json. By setting the cwd (Current Working Directory), the server will automatically load configuration from your .env file, allowing you to use relative paths for data storage.
{
"mcpServers": {
"devdocs": {
"command": "node",
"args": ["dist/main.js"],
"cwd": "file://path/to/your/DevDocs-MCP"
}
}
}
Pro Tip: Use the absolute path to the project in
cwd. The server will then find your.envand use theDEVDOCS_DATA_PATHandMCP_DB_PATHyou've defined there (e.g.,./dataormcp.db), making the setup portable!
If you need to expose the server via a port (for production/remote setups):
node dist/main.js --port 3000
http://your-server:3000/mcp/sseSSE (Supported by most MCP clients, atleast I guess so)sql.js internals.Inspired from this project devdocs-local , devdocs-local-demo by @Nathaniel Whiteinge
Install via CLI
npx mdskills install madhan-g-p/devdocs-mcpDevDocs-MCP: Documentation Authority for AI Agents is a free, open-source AI agent skill. DevDocs-MCP is a Model Context Protocol (MCP) server that provides version-pinned, deterministic documentation sourced from DevDocs.io to AI assistants (Claude, RooCode, Cline, Copilot etc.). It acts as a local Documentation Intelligence Layer, ensuring your agent always has the correct API context without network latency or training data drift. This server follows the proposed MCP server standard
Install DevDocs-MCP: Documentation Authority for AI Agents with a single command:
npx mdskills install madhan-g-p/devdocs-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
DevDocs-MCP: Documentation Authority for AI Agents works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.