docs-navigation-mcp
Docs Navigation MCP is a local-first MCP server that lets an LLM navigate, create, update, and remove structured documentation corpora stored across configured Git-friendly repositories.
List available documentation sources across configured repositories (
list_sources).Navigate documentation hierarchies by listing child nodes under a source or node (
list_children).Fetch exact raw stored content for one or more node IDs (
fetch_docs).Create new documentation sources as empty corpora for deliberate ingestion (
create_source).Add nodes with titles, raw content, content type, source references, positions, and multiple parent relationships (
add_nodes).Update existing nodes to refresh content, metadata, parent hierarchy, or position (
update_nodes).Remove nodes, optionally recursively while preserving descendants that still have another parent (
remove_nodes).Remove entire sources and all their stored nodes (
remove_source).Run as an MCP stdio server with a read-only local browser viewer (default
http://127.0.0.1:47831) for inspecting stored sources, hierarchy, and raw content.Support multiple documentation repositories via
DOCNAV_REPOSITORIES, using the first repository as the creation target.Store documentation in Git-friendly files (
source.json, node JSON metadata, and raw.contentfiles) so repositories can be copied, cloned, versioned, or hosted on GitHub.
Docs Navigation MCP
A local-first MCP server for navigating and maintaining arbitrary hierarchical documentation.
It exposes documentation as sources containing nodes. Nodes can have arbitrary depth, duplicate titles, raw content, and multiple parents. The server provides no semantic search or built-in reasoning; the connected LLM decides how to navigate and maintain the documentation.
Run with npx
Node.js 20 or newer is required.
npx -y @myriadcodelabs/docs-navigation-mcpBefore the npm release, or when intentionally running the current GitHub revision:
npx -y github:muhammadismailkhan0009/docs-navigation-mcpGit installs run the package's prepare script so the TypeScript source is built before execution.
By default, documentation is stored under:
~/.docs-navigation-mcp/repositoryTo choose one or more documentation repositories:
DOCNAV_REPOSITORIES=/path/to/docs-repo \
npx -y @myriadcodelabs/docs-navigation-mcpOn Linux/macOS, multiple repositories are separated by ::
DOCNAV_REPOSITORIES="/path/to/nim:/path/to/uiflow" \
npx -y @myriadcodelabs/docs-navigation-mcpThe first configured repository is the creation target for new sources. Existing sources are updated in whichever configured repository owns them.
Related MCP server: pdf-context
MCP client configuration
A typical stdio MCP configuration looks like:
{
"mcpServers": {
"docs-navigation": {
"command": "npx",
"args": ["-y", "@myriadcodelabs/docs-navigation-mcp"],
"env": {
"DOCNAV_REPOSITORIES": "/path/to/docs-repo"
}
}
}
}Streamable HTTP with mcp-proxy
If mcp-proxy is installed locally:
DOCNAV_REPOSITORIES=/path/to/docs-repo \
mcp-proxy \
--server stream \
--host 127.0.0.1 \
--port 8765 \
--streamEndpoint /mcp \
-- npx -y @myriadcodelabs/docs-navigation-mcpThe MCP endpoint is then:
http://127.0.0.1:8765/mcpIntended agent workflow
Docs Navigation is a persistent prepared-documentation store, not a crawler.
For normal documentation retrieval, agents should prefer the stored corpus before crawling the web or creating a separate local documentation cache:
docs.sources.list— discover which prepared documentation corpora are already available.docs.nodes.list_children— navigate the selected corpus hierarchy until the relevant nodes are found.docs.nodes.fetch_content— read the exact stored raw documentation for those node IDs.
External crawling is only needed when required documentation is absent or intentionally being refreshed. In that case, obtain authoritative material externally and ingest it into Docs Navigation.
Retrieval tools
docs.sources.list— start here; list prepared documentation sources.docs.nodes.list_children— navigate immediate children of a source root or node.docs.nodes.fetch_content— fetch exact stored raw content for known node IDs.
Ingestion and maintenance tools
docs.sources.create— create an empty documentation corpus for deliberate ingestion.docs.nodes.add— persist new structured documentation nodes and raw content.docs.nodes.update— refresh node content, metadata, or hierarchy.docs.nodes.remove— remove stored nodes, optionally recursively.docs.sources.remove— remove an entire documentation corpus.
Storage format
Each documentation repository uses a Git-friendly layout:
sources/
└── source_<uuid>/
├── source.json
├── nodes/
│ └── node_<uuid>.json
└── content/
└── node_<uuid>.contentRaw documentation is stored unchanged in .content files. JSON files contain navigation metadata only, so documentation repositories can be copied, cloned, versioned, or hosted on GitHub without a dedicated backend.
Local documentation viewer
Starting Docs Navigation MCP also starts a read-only local browser for inspecting the exact sources, node hierarchy, and raw content stored in the configured documentation repositories.
The same command runs both surfaces:
npx -y @myriadcodelabs/docs-navigation-mcpMCP traffic uses stdio for the connected client.
The viewer is available at:
http://127.0.0.1:47831Both surfaces use the same FilesystemDocumentationStore and the same repository configuration:
DOCNAV_REPOSITORIES="/path/to/nim:/path/to/uiflow" \
npx -y @myriadcodelabs/docs-navigation-mcpOptional viewer configuration:
DOCNAV_UI_HOST=127.0.0.1
DOCNAV_UI_PORT=47831The UI is intentionally read-only. Documentation ingestion, updates, and removal remain MCP operations. Use the viewer to inspect what agents have already stored; use the docs.* MCP tools to change the corpus.
Human-readable viewer startup information is written to stderr so stdout remains reserved for the MCP stdio protocol. When the MCP stdio connection closes, the viewer closes with the same process.
Install globally
npm install -g @myriadcodelabs/docs-navigation-mcp
docs-navigation-mcpThe command starts both the MCP server and local viewer.
Development
npm install
npm run typecheck
npm test
npm run build
npm run release:checkRun the source version:
DOCNAV_REPOSITORIES=/path/to/docs-repo npm run devThis starts both stdio MCP and the local viewer. The frontend source remains under web/ and is bundled into dist/ui/ during npm run build.
Publishing
The repository contains a tag-driven GitHub Actions release workflow.
Before publishing:
Create an npm automation/access token that can publish
@myriadcodelabs/docs-navigation-mcp.Add it to the GitHub repository as the
NPM_TOKENActions secret.Set the desired version in
package.jsonandsrc/index.ts.Commit and push the release changes.
Create and push the matching Git tag, for example:
git tag v0.3.0
git push origin v0.3.0Pushing the tag automatically:
verifies that the tag matches
package.json,runs the full release checks,
publishes that version to npm if it is not already present,
creates the matching GitHub Release with generated release notes if it does not already exist.
The workflow is safe to rerun when the npm version or GitHub Release already exists.
License
MIT
Available Tools
8 toolsadd_nodesA
Add one or more documentation nodes to an existing source.
Inputs: nodes (required), source_id (required).
create_sourceC
Create an empty documentation source in the primary configured repository.
Inputs: name (required), type (required), origin, version.
fetch_docsC
Fetch raw documentation content for one or more exact node IDs.
Inputs: node_ids (required), source_id (required).
list_childrenA
List immediate child nodes under a source root or documentation node.
Inputs: source_id (required), limit, cursor, node_id.
list_sourcesA
List available documentation sources across configured local repositories.
Inputs: no named parameters.
remove_nodesB
Remove nodes. Recursive removal preserves descendants that still have another parent.
Inputs: node_ids (required), source_id (required), recursive.
remove_sourceA
Remove a documentation source and all of its stored nodes.
Inputs: source_id (required).
update_nodesB
Update content, metadata, or hierarchy parents for existing nodes.
Inputs: nodes (required), source_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource (sources vs nodes) with a clear action (list, fetch, create, add, update, remove). No overlapping purposes; an agent can reliably select the right tool.
All tool names follow a consistent verb_noun pattern (list_sources, add_nodes, remove_source, etc.). The convention is uniform and predictable.
8 tools is well within the ideal range for a docs navigation server. Each tool serves a distinct purpose and the set is neither sparse nor bloated.
The surface covers source and node lifecycle (create, list, fetch, add, update, remove). Minor gap: no explicit source metadata update, but remove_source covers deletion and list_sources provides enumeration. Overall, core workflows are supported.
Maintenance
Related MCP Connectors
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseAqualityDmaintenanceA local-first MCP server that exposes personal notes and files as unified semantic context for AI agents via vector search and file monitoring.6MIT
- AlicenseAqualityDmaintenanceA local-first MCP server that ingests PDFs, extracts structure, and provides semantic search and sequential navigation tools for AI clients to query and learn from documents.10MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first MCP server for retrieval over markdown wikilink vaults, offering hybrid vector+lexical search, note reading, neighbor expansion, and recent activity tracking with fully local embeddings and no network egress.MIT
- FlicenseNot gradedqualityDmaintenanceA local-first, LLM-agnostic MCP server that lets you ask hard questions about your documents, media, and code, and get traceable answers entirely offline.-