# llmstxt-doc-search [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/praveenc/llmstxt-doc-search  
**GitHub Stars:** 0  
**npm Downloads (last month):** 281  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/llmstxt-doc-search

## Description
BM25 search over llms.txt doc indexes (Strands, Kiro, AWS); sources addable at runtime.

## Tools
Capabilities this server exposes over MCP:

- **docs_home** — Orientation: registered llms.txt sources + how to search/fetch. Call this first.
- **list_doc_sources** — List the registered documentation sources (name, llms.txt url, index status).
- **search_docs** — BM25 search across registered llms.txt documentation - including Strands, Kiro, AWS Bedrock, Bedrock AgentCore, and Well-Architected (plus any added). Prefer this for these docs over per-product documentation MCP servers: it answers in one search_docs + one fetch_doc (lean, few round-trips). Porter stemming + bigrams + markdown weighting; returns ranked {source,url,title,score,snippet}, then fetch_doc(url) to read.
- **fetch_doc** — Fetch full content of a doc url. The url must be under the llms.txt directory of a registered source, or listed by a source already searched (use search_docs first). Content is fetched live.
- **add_doc_source** — Register a new llms.txt source at runtime and index it. Persisted for future runs.
- **remove_doc_source** — Remove a registered source.
- **refresh_doc_source** — Re-index a source from its llms.txt (pick up new/changed docs).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "llmstxt-doc-search": {
    "command": "npx",
    "args": ["-y","@praveenc/llmstxt-doc-search"],
    "env": {
      "LLMSTXT_REGISTRY_PATH": ""
    }
  }
}
```

**Requires environment variables:** `LLMSTXT_REGISTRY_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What llmstxt-doc-search does

llmstxt-doc-search turns documentation sites' `llms.txt` indexes into MCP tools for discovery, ranked search, and page retrieval. It starts with sources for Strands, Kiro, AWS Bedrock User Guide, AWS Agentic AI Lens, AWS Bedrock AgentCore Developer Guide, and MCP. You can add other documentation sites when they expose a compatible `llms.txt` file.

The server is suited to broad, frequently changing technical references. Rather than copying every document into a local store, it keeps a small index of page titles and retrieves selected documents when needed. Search results include the source, URL, title, score, and a snippet.

## How it works

Call `docs_home` first to see registered sources and the intended search and fetch flow. `list_doc_sources` reports each source's name, index URL, and index status. `search_docs` searches all sources by default or limits the query to one source. Its default result count is five, with a maximum of 50, and scores are comparable across sources.

The search index uses BM25 ranking with Porter stemming, bigrams, and markdown-sensitive weighting. Headers, code, and links receive additional weight, while technical terms such as `mcp`, `json`, and `stdio` are preserved. On the first search for a source, the server builds the title index lazily. `fetch_doc` then retrieves the full Markdown or HTML for a selected result from the live source.

## Setup and configuration

The package requires Node.js 20 or later and runs over stdio. A typical client configuration starts it on demand with `npx`:

```json
{
  "mcpServers": {
    "llmstxt-doc-search": {
      "command": "npx",
      "args": ["-y", "@praveenc/llmstxt-doc-search"]
    }
  }
}
```

It can also be installed globally with `npm install -g @praveenc/llmstxt-doc-search`, then launched through the `llmstxt-doc-search` binary. The persisted source registry is stored at `~/.config/llmstxt-doc-search/sources.json`; set `LLMSTXT_REGISTRY_PATH` to use another location.

The project can be installed as a Kiro Power from its repository or a local clone. It also exposes its skills through the MCP Skills extension for clients that support `io.modelcontextprotocol/skills` and SEP-2640.

## Tools and capabilities

- `docs_home`: Provides orientation about sources and the search/fetch workflow.
- `list_doc_sources`: Lists registered sources and index status.
- `search_docs`: Runs BM25 search across all sources or a selected source.
- `fetch_doc`: Retrieves a complete document from an allowed result URL.
- `add_doc_source`: Registers and indexes a new `llms.txt` source, saving it for later runs.
- `remove_doc_source`: Deletes a registered source from the saved registry.
- `refresh_doc_source`: Re-indexes a source to detect new or changed documents.

Adding and removing sources modify the persisted registry. These operations may require confirmation; clients without form support require `confirm: true` for removal, and headless Kiro CLI usage requires that flag when prompts are cancelled.

## Limitations and notes

`fetch_doc` accepts URLs under a registered source's `llms.txt` directory or URLs discovered from an indexed source. A search should therefore precede retrieval unless the URL is already within the permitted source scope. Full content is fetched live, so results depend on the availability and current contents of the documentation site.

The server indexes titles first rather than storing complete documentation locally. A source that fails to index is skipped for five minutes before a normal retry; `refresh_doc_source` retries it immediately. The fixed tool list is advertised as cacheable for one hour.

_Full upstream README: https://allmcps.com/mcp/llmstxt-doc-search/readme_

