Install
$ agentstack add mcp-dondai1234-master-fetch ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
🐕 Hound
Give your AI agent the web. $0. Two commands. ~2.5K tokens.
Fetch · crawl · bypass bot walls · read PDFs (even scanned) · interact with pages · search the web No accounts · no Docker · no API keys · runs on your machine
[](https://pypi.org/project/hound-mcp/) [](https://pypi.org/project/hound-mcp/) [](LICENSE) [](https://github.com/dondai1234/master-fetch/actions/workflows/ci.yml) [](https://pepy.tech/project/hound-mcp) [](https://github.com/dondai1234/master-fetch/stargazers)
pip install hound-mcp[all] && playwright install chromium
[Install](#-install) · [Tools](#-the-6-tools) · [Search](#-local-keyless-search) · [How it works](#-how-it-works) · [Comparison](#-comparison-free-tools) · [Honest limits](#-honest-limits)
✨ Why Hound
Hound is one MCP server that gives any agent (Claude Code, Cursor, OpenCode, Hermes, Pi, anything that speaks MCP) full web research from a single local process. Six tools, one warm browser, zero accounts.
| | | |---|---| | 🆓 $0 forever, MIT | No keys, no accounts, no per-request billing, no data sent to a third-party scraper. Search is keyless and local too. | | 🧠 Mastered on connect | A one-time instructions block gives the agent the mental model + the #1 workflow + the known limits. Effective on turn one, not turn ten. | | 📐 ~2.5K tokens, 6 tools | Hand-crafted tool defs, no Pydantic schema bloat. More capability than tools shipping 5K+. | | 🎯 Every response is actionable | content_ok, next_action, summary, relevance_score, fetch_relevance. Agents branch on structured fields, not error text. |
> Hound is for the agent itself. You install it once; the agent calls it whenever it needs the web.
🚀 Quick start
pip install hound-mcp[all] # fetch + crawl + keyless search + PDF + OCR + neural rerank
playwright install chromium # the anti-detect browser engine
hound -v # version + update status
hound -u # update to latest
Then point any MCP client at the hound command. No arguments, no keys, no env vars. See [Install](#-install) for the lean option + [Tell your agent to install it](#-tell-your-agent-to-install-it) for a copy-paste prompt.
🧰 The 6 tools
| Tool | One-liner | |------|-----------| | smart_fetch | Fetch any URL. HTTP first, auto-escalates to the anti-detect browser if blocked. Bulk, PDFs (with OCR + quality score), css_selector, focus, actions, pagination. | | smart_crawl | Best-first same-domain crawl. Each page as markdown with content_ok + page_type (article / list / jsshell). discover_only, crawl_urls, focus, time + token caps. | | smart_search | Local keyless web search. Runs 9 backends in parallel (duckduckgo, brave, mojeek, yahoo, yandex, startpage, google + opt-in wikipedia, grokipedia) via a vendored metasearch, merges + ranks with neural rerank + cross-backend consensus. relevance_score + fetch_relevance + engines_consensus per result. Neural / findsimilar. Quality filter drops low-relevance results instead of padding. Returns URLs + ranking (the agent fetches the ones it wants). engine_blocked shows backends that rate-limited/CAPTCHA'd/timed out. | | screenshot | Capture a page as an image. For multimodal agents (canvas, image-of-text, visual layout). Session auto-managed. | | cache_clear | Clear the fetch cache. all=true wipes everything. | | version | Installed version + update status. |
📖 Full tool reference
smart_fetch — Fetch any URL with full content extraction. Auto HTTP → stealthy escalation. Bulk via urls. Narrow with css_selector. PDFs auto-extracted to structured markdown (tables, headings, metadata); pages='1-5' for a subset; scanned PDFs AND CID-corrupted fonts auto-OCR with [all]. Response carries quality_score (0–1), table_of_contents, metadata. focus='query' returns only BM25-relevant blocks. actions for click/fill/scroll. Paginate with offset. Signals: content_ok, next_action, summary, is_truncated+next_offset. cache_ttl=0 bypasses cache.
smart_crawl — Best-first walk of same-domain links. Content-adaptive: article/docs → main content; list/index pages → structured link list; JS shells → detected + reported. discover_only=true → URL map. crawl_urls=[...] → second-phase selective crawl. focus prioritizes + filters. Caps: max_pages (10), max_depth (2), max_total_chars, deadline_ms (120000). Per-page content_ok + status (network error = −1) + fetched_at. Reuses smart_fetch anti-bot + cache.
smart_search — Runs 9 keyless backends in parallel (duckduckgo, brave, mojeek, yahoo, yandex, startpage, google + opt-in wikipedia, grokipedia — INDEPENDENT indexes, not the same feed twice) via a vendored metasearch engine layer, merges, dedups by normalized URL, ranks, and boosts cross-backend consensus (a URL returned by several independent indexes is an authority signal). Returns URLs + ranking, not page content (the agent smart_fetches the ones it wants). Filters: site/exclude_sites, location/language/region, page, freshness. Modes: auto (neural rerank if [all]+model present, else consensus + engine-position order), neural (same, explicit), find_similar (pass url=). engine_blocked lists backends that rate-limited/CAPTCHA'd/timed out.
🔎 Local keyless search
No API key, no account, no third-party service. smart_search runs 9 keyless backends in parallel (duckduckgo, brave, mojeek, yahoo, yandex, startpage, google + opt-in wikipedia, grokipedia) via a vendored metasearch engine layer (derived from ddgs, MIT, attributed) — INDEPENDENT indexes, not the same feed twice — merges, dedups, and ranks on your machine. It returns URLs + ranking, not page content — the agent smart_fetches whichever results match what it needs (the ranking is a hint, not a directive). Every result carries relevance_score (0–1), fetch_relevance (high / med / low), and engines_consensus (how many independent indexes returned that URL — a free authority signal). A quality filter drops low-relevance results instead of padding to the max with garbage, so niche queries return fewer good results.
Two rerank modes:
neural(the only reranker) — a local ONNX cross-encoder (ms-marco-MiniLM-L-6-v2, Apache-2.0) running on theonnxruntimeHound already ships for OCR. Exa-style semantic ranking, $0, on your machine. The model downloads once (~80MB, cached, not bundled). Scores are min-max normalized per query so therelevance_scorefield carries meaningful spread (ms-marco sigmoid saturates ~1.0; normalization restores discrimination). BM25 was removed — neural matches its speed and ranks better. Lean installs (no model) fall back to cross-engine consensus + engine-position order.find_similar— passurl=; Hound fetches a page you like, derives a query, and reranks candidates against that source page. Exa's find-similar, local.
smart_search returns URLs + ranking only — the agent smart_fetches the results it wants (one extra call beats guessing which URL is worth fetching). Default 6 results. The 9 backends (duckduckgo, brave, mojeek, yahoo, yandex, startpage, google + opt-in wikipedia, grokipedia) run in parallel; a diversity quorum waits for at least 3 to contribute before returning (~1.5–3s) so a single backend's bias or rate-limit can't dominate, and a backend that CAPTCHAs or rate-limits is simply carried by the others. Search is 100% HTTP — it never touches the browser (the single Patchright browser is smart_fetch's alone).
🛡️ Search Engine Resilience Layer
Scraping public engines from your IP can be rate-limited or CAPTCHA'd. No keyless local tool is bulletproof against sustained blocking without a proxy — Hound is honest about that, and then makes the no-proxy case as robust as possible for a single user:
| # | Mechanism | What it does | |---|-----------|--------------| | 1 | Persistent warm session per engine | One long-lived session reused across searches — cookies + TLS accumulate, so the engine sees a returning human, not a fresh bot. Also faster (no per-search TLS handshake). | | 2 | Per-engine pacing + jitter | Within one search all engines fire in parallel (free); only same-engine bursts across searches get a small jittered delay. | | 3 | Circuit breaker + cooldown | A blocked engine auto-cools (15 → 120s) while the others keep serving. Results keep flowing. | | 4 | 202 / 429 / 503 / 403 + Retry-After | DDG's HTTP 202 soft rate-limit is detected; Retry-After honored. | | 5 | Fingerprint rotation | A pool of real Chrome / Edge / Firefox / Safari TLS profiles, picked per request. | | 6 | Diverse independent pool + cross-engine consensus | Three independent indexes (DuckDuckGo, Bing, Qwant) run in parallel — no single engine is a bottleneck, and a URL returned by several of them gets a consensus boost (a free authority signal from merging independent indexes, no extra fetches). | | 7 | HOUND_SEARCH_PROXY | Route all engine requests through your own rotating / residential proxy — the bulletproof path for heavy use. |
engine_blocked in the response tells the agent which engines are cooling down (retry shortly). Same gray-area posture as SearXNG / ddgs; no search-engine ToS compliance is claimed.
⚙️ How it works
smart_fetchchecks cache + robots, tries HTTP, escalates to the stealthy Patchright browser on a block / JS-shell / 403 / 503, then extracts + enriches. PDFs branch to pdfplumber (with CID-garbage + scanned auto-OCR via pypdfium2 + rapidocr,quality_score, ToC).smart_crawlreuses the same pipeline across a same-domain best-first walk.smart_searchruns 9 keyless backends in parallel (duckduckgo, brave, mojeek, yahoo, yandex, startpage, google + opt-in wikipedia, grokipedia) via a vendored metasearch engine layer (derived from ddgs, MIT, attributed in NOTICE.ddgs.txt). A diversity quorum waits for at least 3 backends to contribute before returning (~1.5–3s) so no single backend's bias or rate-limit dominates; a backend that CAPTCHAs or rate-limits is carried by the others. Search is 100% HTTP (never touches the browser). Then it merges + dedups, reranks (neural / find_similar), and applies the cross-backend consensus boost.- One stealthy Chrome is pre-warmed at startup and reused, so escalation skips the 3–5s cold start.
- Content over 40KB is chunked; the response gives
next_offsetso the agent pages through with one more call (served instantly from cache).
🔧 Deep-dive: every feature
📄 PDF + scanned-PDF OCR + CID-recovery
smart_fetch detects a PDF (by content-type or %PDF magic bytes) and extracts it to structured markdown with pdfplumber (MIT, no AGPL baggage): multi-column reading order, real tables as markdown tables, font-size headings, de-hyphenated paragraphs, a metadata header, and --- Page N --- markers. Pass pages="1-5" for a subset.
The flagship trick — CID-corruption auto-OCR. Academic papers embed font subsets without a Unicode map, so extractors emit (cid:71)(cid:302)... garbage for figures/diagrams/math. But the glyphs render correctly. Hound detects CID-garbage pages, renders them via pypdfium2, and OCRs them with rapidocr, recovering the real text automatically. Scanned / image-only PDFs (and image-only web pages) are auto-OCR'd too. Every PDF response carries quality_score (0.0–1.0) and an honest content_ok; table_of_contents from the PDF outline; metadata (title/author/dates); include_media=true for per-page image metadata; password for encrypted PDFs; a .pdf URL that returns a login/paywall is reported as auth_required. All pure-pip, no system binary, with [all].
🕷️ Deep crawl (smart_crawl)
Walk same-domain links in best-first order: discovered URLs are scored by focus relevance + content-likelihood (docs/guide/api boosted, login/submit/cart penalized) + shallow depth, so content pages are crawled before junk when the budget is tight. Extraction is content-adaptive: article/docs → trafilatura main content; list/index pages (HN, aggregators, directories) → a structured * [title](url) link list; JS shells → detected + reported honestly. URLs normalized so /docs and /docs/ are never crawled twice. discover_only=true → URL map; crawl_urls=[...] → second-phase selective crawl; path_include/path_exclude to scope. Caps on pages / depth / tokens / time. Same-domain only by default.
🛡️ Anti-bot + one warm browser
smart_fetch tries plain HTTP first (~1s). If the site blocks HTTP or serves a JS shell, it auto-escalates to a Patchright anti-detect browser with Cloudflare challenge solving. Two tiers, nothing to configure. A single Chrome warms at startup and stays alive for the whole session — it is smart_fetch's + screenshot's anti-bot tier. Pages are closed after each fetch and resource loading is dropped, so idle memory stays near baseline. One browser total, no extra Chrome. (smart_search is 100% HTTP and never touches this browser.)
🎯 Query-focused extraction (focus)
smart_fetch(url, focus="...") returns only the BM25-relevant blocks (paragraphs, headings, tables). On a long page this cuts context 80%+ with no re-fetch (runs post-cache, so one cached page serves any focus query). Re-pass the same focus when paginating.
🖱️ Page interaction (actions)
Content behind a click, a search form, a "load more", or infinite scroll: actions=[{click:"button.load-more"}, {fill:{selector:"#q", text:"x"}}, {press:"Enter"}, {wait:500}, {scroll:3}, {wait_selector:".item"}]. Runs on the stealthy browser after load, before extraction. Forces stealthy + bypasses cache.
🏷️ Metadata on every response
Structured metadata for citation + relevance: title, description, site name, type, image, canonical URL, language, published time, author (from OpenGraph, JSON-LD, the canonical link, and ``).
🐕 Reddit, optimized
Reddit URLs auto-rewrite to old.reddit.com (7× smaller pages) and skip straight to the stealthy browser (www.reddit.com walls HTTP). Subreddit listings parse into structured posts (title, score, comments, author, domain) from canonical data attributes, with promoted ads filtered out and sticky/NSFW posts tagged.
💾 Smart caching
SQLite cache keyed by URL + extraction type + css_selector + pages (and by query + filters + mode for search). WAL mode for concurrent access. Bad content is never cached (JS shells, bot challenges, error statuses re-fetch instead of freezing broken pages). A size cap evicts the oldest entries so a long-lived agent's cache can't grow unbounded.
📊 Comparison: free tools
Hound is compared only to other free ways to give an agent web research. Only paid services (Bright Data, ZenRows, Firecrawl paid, Exa) can compete on hard anti-bot or hosted neural search at scale — and they cost money, require accounts, and route your data through their servers.
| | Hound | Crawl4AI | Jina Reader | Firecrawl (OSS / free) | DIY Playwright | |---|---|---|---|---|---| | Price | $0 forever | $0 (self-host) | free, rate-limited | $0 self-host / 1K free | $0 (your time) | | License | MIT (no attribution) | Apache-2.0 (attribution) | proprietary | AGPL-ish / cloud | n/a | | Account / API key | none | none | optional free key | cloud needs account + key | none | | Runs locally | yes | yes | no (their API) | self-host: yes (Redis + Docker) | yes | | Anti-bot / Cloudflare | built-in (Patchright) | limited | none | not by default | none | | Deep crawl | yes (best-first, budget, map) | yes | no | yes (cloud) | build it | | PDF → structured markdown | yes (tables, subset) | partial | yes (native) | yes (cloud + OCR) | build it | | Scanned-PDF / image OCR | yes (rapidocr, pure-pip) | no | n
…
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: dondai1234
- Source: dondai1234/master-fetch
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.