# Repository Briefing: dondai1234/master-fetch
> Source: https://repoforai.com/repo/dondai1234/master-fetch (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/dondai1234/master-fetch
- **Official Docs / Website**: https://hound-mcp.pages.dev
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B (62/100 · Maintenance 12/35 · Adoption 16/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v12.4.1 (2026-07-24) — https://github.com/dondai1234/master-fetch/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 908 ★ total (+0 24h / +0 7d) · 79 forks
- **Topics**: `ai`, `ai-agents`, `fetch`, `hound`, `mcp`, `web`, `webfetch`, `websearch-agent`
- **When to Use**: Best for: Teams that want one self-hosted MCP integration to find public documentation, extract selected pages or PDFs, and collect a bounded set of sources for agent research or RAG ingestion. Skip if: You need a fully offline research pipeline, guaranteed coverage and throughput across external sites, a persistent knowledge index, or an authenticated multi-tenant endpoint out of the box.

## Overview
```text
### Architecture & Core Mechanics
Hound is an MIT-licensed Python MCP server that separates source discovery from content retrieval. A client can launch the `hound` command locally or connect over Streamable HTTP at `/mcp`. `smart_search` fans out over HTTP and returns ranked URLs rather than page bodies. `smart_fetch` starts with primp in `fetcher.py` and can fall back to browser rendering through Patchright in `browser.py` when browser support is installed. `extractor.py` combines Trafilatura and markdownify to turn pages into text suitable for agent input.

`smart_crawl` extends retrieval into a best-first, same-domain traversal. The MCP surface also includes screenshots, cache clearing and version reporting. Structured fields such as `content_ok`, `next_action`, `page_type` and source metadata let clients branch without parsing prose. This is a retrieval layer for agents and RAG pipelines, not a document index or vector store.

### Key Capabilities & Differentiators
Keyless search can query up to ten HTTP backends, including opt-in engines such as Wikipedia. Hound merges and deduplicates URLs, uses cross-engine consensus in ranking, and can rerank locally with the ONNX `ms-marco-MiniLM-L-6-v2` cross-encoder. The model is an approximately 80 MB one-time download; lean installs use consensus and engine result order instead. Optional keys cover Serper, Tavily, Exa, Firecrawl and TinyFish. Provider-backed results are the primary path when keys are available, with keyless search as fallback; do not assume every configured provider is queried on every call.

Fetch supports batches, CSS selectors, focus, pagination and PDF extraction with OCR and quality scoring. Crawling offers sitemap discovery, discovery-only mode, explicit URL lists, and time and token caps. Screenshots provide a separate visual output when extracted text misses information such as canvas content or page layout.

### Trade-offs & Limitations
Hound's main advantage over a crawl-focused choice such as Crawl4AI is that discovery, selective fetch and bounded site traversal share one MCP interface. Jina Reader is a simpler remote option if the task is only page extraction. Compared with the Redis-plus-Docker footprint of self-hosted Firecrawl, Hound adds less service infrastructure, but browser-enabled deployments still carry Chromium's memory and lifecycle costs. If a workflow never needs rendered pages or screenshots, the lean install is a better starting point.

Local execution keeps extraction under your control, but live requests still reach external sites or search providers. Keyless search remains susceptible to upstream rate limits and challenges, while API-backed search introduces credentials, quotas and provider terms. Parsed text and relevance scores are useful for triage, not proof of completeness or authority. For recurring ingestion, validate extraction quality and access rights on representative source domains before relying on it.

### Hardware & Deployment Guide
Use Python 3.11 or newer. `pip install hound-mcp` is the lean, HTTP-only path; for browser rendering, install `hound-mcp[all]` and run `playwright install chromium`. Self-hosted computation is not offline operation: live search and fetch need outbound network access, and the optional reranker needs an initial model download. Browser rendering, OCR and concurrency are the main sizing variables; benchmark them with representative pages and PDFs rather than treating model download size as a memory estimate.

The root Compose configuration builds `hound-mcp:latest` with `docker compose up -d --build`, allocates `1gb` of shared memory for Chromium, and enables `init: true` to reap child processes. The HTTP endpoint is unauthenticated and published to loopback by default; keep it private or require authentication and restrict network access before allowing remote clients. Use `hound --doctor` for diagnostics and `hound --rollback` to undo the last update. In the 12.4 release line, proxy-pool support expanded from search to crawl and sitemap discovery; v12.3.1 fixed request-context leakage by resetting fetch `ContextVar` values after each invocation.
```

## Key Capabilities
```text
- Integration: six MCP tools exposed through a local `hound` command or Streamable HTTP on `/mcp`.
- Extraction: `fetcher.py` uses primp for HTTP, `browser.py` uses Patchright for rendering, and `extractor.py` combines Trafilatura with markdownify.
- Discovery: up to ten keyless HTTP backends, including opt-in engines, with URL deduplication, cross-engine consensus and optional local ONNX reranking.
- Agent control: `content_ok`, `next_action`, freshness and source-type fields give clients explicit signals for branching and citation review.
- Crawl scope: best-first traversal stays within one domain and supports sitemap and discovery-only modes, plus time and token caps.
- Request isolation: v12.3.1 added `ContextVar` cleanup to prevent fetch settings such as focus and PDF page selection from leaking into later calls.
```

## Quick Start / Clone
```bash
pip install hound-mcp[all] && playwright install chromium
```
