Serve docs over MCP
docsbot mcp serve runs a Model Context Protocol server over your docs. Use it to:
- give Claude Code, or any MCP client, search over your docs repository
- turn a folder of product notes into a knowledge base the documentation agent can cite
The server is read-only and fetches nothing from the network.
Tools
| Tool | Arguments | Returns |
|---|---|---|
search_docs |
query, limit |
the best passages, each starting with Source: file, lines |
get_passage |
file, line |
one passage |
Ranking is BM25, the same as draft write uses.
Search your docs from Claude Code
claude mcp add docs -- docsbot mcp serve ~/work/docs-repo
Serve a knowledge base for the agent
Serve only a folder of notes, not a repository’s pages:
docsbot mcp serve --no-repo --kb ../product-kb
--kb takes folders or files of Markdown, AsciiDoc, reST or text, and can be repeated.
Then list it in the agent’s configuration:
agent:
mcp:
- name: product-kb
command: [docsbot, mcp, serve, --no-repo, --kb, ../product-kb]
Serve over HTTP
The server speaks stdio by default. For Streamable HTTP on a local address:
docsbot mcp serve ./docs-repo --http 127.0.0.1:8765