# doc-scraper [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/Sriram-PR/doc-scraper  
**GitHub Stars:** 111  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/doc-scraper

## Description
Crawl documentation sites into local corpora agents can search, read, and diff fully offline.

## Tools
Capabilities this server exposes over MCP:

- **describe_server** — Orientation manifest: server identity + sites + recent jobs in one call (call this first)
- **list_sites** — List all configured sites (key, domain, path prefix, depth, last crawled time, and a running flag)
- **get_page** — Fetch a single URL live over the network and return content as markdown
- **crawl_site** — Start a background crawl for a site (returns job ID)
- **get_job_status** — Check the status of a background crawl job
- **cancel_crawl** — Cancel a running or pending crawl job by job ID
- **list_pages** — Enumerate crawled pages for a site (paginated, metadata only)
- **read_page** — Return a crawled page's markdown from the stored output, without network access
- **search_docs** — Full-text search across crawled docs (BM25, stemming, snippets), without network access
- **get_freshness** — Report how stale a site's latest crawl is, from the crawl-history index
- **diff_crawl** — Report pages added, removed, or changed since a given timestamp

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "doc-scraper": {
    "url": "https://sriram-pr.github.io/doc-scraper/mcp/claude-code/"
  }
}
```

## Documentation

## What doc-scraper does

doc-scraper collects technical documentation from configured websites, converts pages to clean GitHub-Flavored Markdown, and exposes the resulting corpus through MCP. Agents can search stored pages with BM25 full-text search, retrieve page content without making a network request, and inspect changes between crawls. The local output also includes page metadata and generated `llms.txt` and `llms-full.txt` files.

The crawler is intended for documentation sites rather than general-purpose web extraction. It recognizes more than 30 documentation generators, including Docusaurus, Starlight, Sphinx, VitePress, Material for MkDocs, and mdBook. Framework detection helps select the main content area, while a Readability fallback handles pages outside the known framework patterns.

## How it works

A site is added by giving the command-line tool a documentation URL and a site key. The tool detects the site framework, previews the extraction configuration, validates the content selector, and lets the operator confirm it. Crawling then runs in the background and returns a job ID through MCP. Status can be checked separately, and an active or queued crawl can be cancelled.

Crawls follow robots.txt and sitemaps, apply per-host rate limits, retry with backoff, and can resume after interruption. Staged output protects the last successful copy while new content is being collected. Multiple sites can be crawled in parallel while shared limits control concurrency. Incremental recrawls, watch mode, and crawl history support ongoing documentation maintenance.

## Setup and configuration

Install a release binary for Linux, macOS, or Windows, or install the command-line program with Go using the package's `@latest` target. A Docker image is also available and can mount a local directory for crawl data. Claude Desktop users can install the packaged `doc-scraper.mcpb` file from a release.

The command-line workflow uses commands such as `add`, `crawl`, and `search`. For MCP access, launch the binary with `mcp-server` and provide a configuration file. Claude Code can register it over the stdio transport; other MCP clients that support stdio can use the same server process.

## Tools and capabilities

- `describe_server` returns the server identity, configured sites, and recent crawl jobs for initial orientation.
- `list_sites` reports site keys, domains, path prefixes, crawl depth, last-crawl times, and running state.
- `get_page` fetches one URL live and returns its Markdown representation.
- `crawl_site`, `get_job_status`, and `cancel_crawl` manage asynchronous crawl jobs.
- `list_pages` enumerates stored page metadata with pagination, while `read_page` reads saved Markdown without network access.
- `search_docs` searches the local corpus using BM25, stemming, and snippets.
- `get_freshness` reports staleness from crawl history, and `diff_crawl` identifies pages added, removed, or changed since a timestamp.

## Limitations and notes

Live network access is used only for explicitly requested crawls and page fetches; searches and reads against stored output work offline. JavaScript-only shells are reported rather than saved as empty pages. The crawler follows site rules and rate limits, so collection behavior depends on the target site's accessible structure and content. Local output, state, and crawl history remain on the machine, and the project reports no telemetry, analytics, or account requirement.

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

