devdocs-mcp — Claude Code MCP server: what it does, how to install
Provides version-pinned DevDocs.io documentation directly to your AI agent. Runs fully offline to stop API hallucinations.
claude mcp add devdocs-mcp -- npx -y @madhan-g-p/devdocs-mcp-serverWhat devdocs-mcp does
The server acts as a local API reference layer built on NestJS and TypeScript. Instead of making slow web requests or guessing syntax, the assistant queries DevDocs.io archives stored on disk. It relies on sql.js for metadata indexing, which avoids native C++ compilation steps entirely.
Documentation datasets stay mapped to dependencies declared in your package.json. An agent fetches and stores these datasets locally using the ingest tool. Without running this ingestion step first, the server cannot supply offline context for that specific library. You can run the process via Node.js or Docker.
What it helps with
- supply exact API definitions matched to
package.jsonversions - retrieve reference documentation without an active internet connection
- prevent obsolete syntax and agent hallucinations in library calls
Example prompts for the agent
- Ingest documentation for react 18.2.0 and typescript 5.0.0 into DevDocs
- Look up the IntersectionObserver constructor in local DevDocs
- Check the signature for this library method using devdocs-mcp
How to install devdocs-mcp
Platform CLI
claude mcp add devdocs-mcp -- npx -y @madhan-g-p/devdocs-mcp-serverPlatform CLI
codex mcp add devdocs-mcp -- npx -y @madhan-g-p/devdocs-mcp-serverConfig file
{
"mcpServers": {
"devdocs-mcp": {
"command": "npx",
"args": [
"-y",
"@madhan-g-p/devdocs-mcp-server"
]
}
}
}Config file
{
"servers": {
"devdocs-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@madhan-g-p/devdocs-mcp-server"
]
}
}
}Platform CLI
gemini mcp add devdocs-mcp npx -y @madhan-g-p/devdocs-mcp-serverStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about devdocs-mcp
How to install devdocs-mcp in Claude Code?
Run claude mcp add devdocs-mcp -- npx -y @madhan-g-p/devdocs-mcp-server in your terminal. This registers the server package into your client configuration.
What does devdocs-mcp do?
It serves cached DevDocs.io entries to coding agents. This provides authoritative signatures for exact library releases instead of guessed parameters.
What are the prerequisites for running this server?
You need Node.js 18 or higher. Because it uses sql.js, no C++ build toolchains or Python setups are required.