devdocs-mcp
Click on "Deploy 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., "@devdocs-mcp search the Vite docs for defineConfig and show the top result"
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.
devdocs-mcp
An MCP (stdio) server that gives AI agents token-efficient access to DevDocs documentation. Docsets are fetched once as static JSON from DevDocs' own endpoints, cached locally, and served offline as compact rows and markdown — no DevDocs fork, no Docker, no browser.
Install
pnpm install
pnpm buildNode 20+ required (uses global fetch).
Related MCP server: MCP Framework Documentation Server
Register with your harness
All harnesses run the same thing: node /absolute/path/to/devdocs-mcp/dist/index.js
over stdio. Substitute your real absolute path below.
Claude Code
claude mcp add devdocs -- node /absolute/path/to/devdocs-mcp/dist/index.jsAdd --scope user to register it for all projects instead of the current one.
Anything that reads an mcpServers JSON block
Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json),
Cline, Windsurf, VS Code (.vscode/mcp.json, under "servers"), and most
other MCP clients:
{
"mcpServers": {
"devdocs": {
"command": "node",
"args": ["/absolute/path/to/devdocs-mcp/dist/index.js"]
}
}
}Codex CLI
In ~/.codex/config.toml:
[mcp_servers.devdocs]
command = "node"
args = ["/absolute/path/to/devdocs-mcp/dist/index.js"]DeepSeek Harness (dsh)
dsh has no built-in MCP support — it comes from the official bridge plugin,
one plugin instance per MCP server, wired per profile (headless, web,
tui):
dsh plugin --profile headless add @deepseek-ai/dsh-mcp-client@0.0.1-rc.1(The declares no dsh.bundle — installed as a plain dependency warning is
normal; it means manual wiring is required.) Then add an insert block to
$DSH_HOME/profiles/headless/cordis.patch.yml — a bare - id: row would be
treated as an override of an existing entry and fail:
- insert:
- id: mcp-devdocs
name: "@deepseek-ai/dsh-mcp-client"
config:
serverName: devdocs
transport: stdio
command: node
args: ["/absolute/path/to/devdocs-mcp/dist/index.js"]
# failOnStartupError: true # enable while debugging: loud failuresVerify with dsh --profile headless --dump-config | grep -A6 mcp-devdocs,
then a live probe (dsh startup failures are silent by default):
dsh --profile headless "use the devdocs list_docsets tool; if no devdocs tools are available say NO-TOOLS"Tools appear to the model as mcp__devdocs__<tool> in dsh and Claude Code.
Tools
Tool | Arguments | What it returns |
|
| Cached docsets ( |
|
| Downloads |
|
| Deletes that docset from the cache |
|
| Fuzzy entry-name matches as |
|
| Page as markdown. |
|
| Heading outline as |
Typical flow: list_docsets {installed:false, filter:"vite"} →
install_docset {slug:"vite"} → search {query:"defineConfig"} →
toc / read with the path from the search rows.
Teaching agents to use it (AGENTS.md / CLAUDE.md)
The tools are self-describing, but agents won't form the habit of checking
DevDocs on their own. Paste this into your project's AGENTS.md / CLAUDE.md
(or your global one), and edit the docset list for your stack:
## Documentation lookup (devdocs MCP)
Before writing code against a library or API you haven't recently worked
with, check its documentation via the `devdocs` MCP tools — don't guess
from memory and don't reach for web search first. The docs are local,
offline, and current.
- One-time per docset: `install_docset` (find slugs with
`list_docsets {installed: false, filter: "..."}`). This project uses:
`typescript`, `react`, `vite`, `node`.
- Lookup flow: `search {query}` → pick a row → `toc {docset, path}` →
`read {docset, path: "page#anchor"}` for just the section you need.
Read whole pages only when short; follow `offset` hints to continue.
- If `search` misses, try a shorter query or the docset's own naming
(e.g. "shared options" rather than "defineConfig options").Cache
~/.cache/devdocs-mcp/ by default, overridable with DEVDOCS_CACHE_DIR:
docs.json # DevDocs manifest, refreshed when older than 24h
<slug>/index.json # entry list
<slug>/db.json # page path -> HTML
<slug>/meta.json # {slug, name, release, mtime, installedAt}The cache is shared across sessions; delete a <slug>/ directory (or call
remove_docset) to reclaim space.
Development
pnpm test # vitest, fully offline (fixtures only)
pnpm build # tsc -> dist/
pnpm smoke # live: spawns dist/index.js, installs vite, searches/reads/tocsUnit tests cover the pure modules (search, render, path handling); the six
tool handlers are thin wiring over those and are exercised end-to-end by the
smoke script instead.
Credits
Documentation content comes from DevDocs (maintained by freeCodeCamp), which aggregates and re-publishes the documentation of each upstream project. This server only fetches and reformats it: all content remains under the license and copyright of its respective upstream project, and each docset's attribution is included in the DevDocs manifest.
Available Tools
6 toolsinstall_docsetInstall docsetA
Download a DevDocs docset into the local cache (re-downloads only if upstream is newer).
Inputs: slug (required).
list_docsetsList docsetsA
List installed (cached) docsets, or search the DevDocs catalog for installable ones (installed=false requires filter).
Inputs: filter, installed.
readRead pageA
Read a docset page as markdown. Append #anchor to the path to get just that section. Long pages paginate via offset.
Inputs: path (required), docset (required), offset.
remove_docsetRemove docsetA
Delete a docset from the local cache.
Inputs: slug (required).
searchSearch docsetsA
Fuzzy search entry names across installed docsets. Returns compact rows: slug, type, name, path. Feed a path to read/toc.
Inputs: query (required), limit, docsets.
tocPage outlineA
Heading outline of a page: level, title, anchor. Pick a section and read path#anchor instead of paging the whole page.
Inputs: path (required), docset (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: three manage docsets (list, install, remove) and three navigate content (search, read, toc). There is no overlap or ambiguity.
The first three tools follow a consistent verb_noun snake_case pattern (remove_docset, list_docsets, install_docset), but the remaining three use bare verbs or a noun (search, read, toc). This mixed convention is readable but not fully consistent.
With 6 tools, the server is well-scoped for its purpose of managing and reading DevDocs documentation. Each tool earns its place and there is no bloat.
The server covers the full lifecycle: list/install/remove docsets and search/read/navigate pages. The install tool also handles updates, leaving no obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Team docs served to AI agents over MCP - search, Markdown reads, version pinning, read audit.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Read-only search and Markdown pages from the OpenPlanr docs, for coding agents.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides AI models with direct access to documentation for over 600 technologies from DevDocs.io, including popular languages, frameworks, and tools. It enables comprehensive searching, content retrieval, and offline access via an intelligent local caching system.122-
- AlicenseAqualityDmaintenanceProvides tools for AI agents to search, browse, and retrieve the full documentation for the mcp-framework. It enables agents to access documentation sections and page content directly within MCP-compatible environments like Claude Code and Cursor.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, read, and traverse documentation bundles in Open Knowledge Format via MCP tools.771 npm74MIT
- AlicenseAqualityDmaintenanceScrapes, stores, and searches documentation locally, enabling AI assistants to access and query documentation via MCP.114MIT