docs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DOCS_DIR | No | Documents folder. Can also be set with the CLI flag --docs-dir. Default: ./docs | |
| DOCS_LOG_LEVEL | No | Log level (stderr). Default: INFO | |
| DOCS_MAX_CHARS | No | Default get_document page size. Default: 8000 | |
| DOCS_MAX_FILE_BYTES | No | Max file size indexed. Default: 10485760 (10 MB) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server gives read-only access to an internal document collection (handbooks, policies, runbooks). Recommended workflow:
search_docs with specific keywords to find relevant passages.
get_document on the best doc_id (optionally with
section) to read the full text.Answer from the retrieved text and cite doc_id + section. If nothing relevant is found, say so rather than guessing. Use list_documents to browse what exists.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsA | List the documents available in the knowledge base, with their section headings. Use this to browse or to discover valid doc_ids. |
| search_docsA | Full-text search across all documents. Returns the most relevant passages ranked by BM25, each with a doc_id, section and snippet. Specific terms work best (product names, error codes, policy names). Follow up with get_document to read the full section before answering. |
| get_documentA | Retrieve the text of a document, or of one section of it. Long content is
paginated: if |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| answer_from_docs | Answer a question using only the knowledge base, with citations |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool maps to a distinct retrieval mode: browse the catalog (list_documents), find passages by query (search_docs), and read content (get_document). Descriptions explicitly chain them (search then get_document, list_documents to discover doc_ids), leaving no realistic misselection risk.
All three follow a clean verb_noun pattern (list_, search_, get_ + docs/documents). The only wobble is the noun inconsistency between 'docs' and 'documents' as the resource label, which is cosmetic but slightly unpredictable.
Three tools is exactly right for a read-only knowledge-base server: each covers a distinct step of the browse-search-read workflow and none is redundant. Nothing feels missing at the tool-granularity level for this scope.
The retrieve lifecycle (enumerate, search, fetch with pagination) is fully covered, so agents won't hit dead ends on read workflows. Gaps are minor and likely out of scope: no write/index operations and no standalone section enumeration beyond headings returned by list_documents.