Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

master-fetch

> AI 编程
Open source

MCP server for web fetching with Cloudflare bypass, Trafilatura extraction, and smart routing. Free, self-hosted, no API keys.

753 stars0 likes2 views
WebsiteGitHub

About

MCP server for web fetching with Cloudflare bypass, Trafilatura extraction, and smart routing. Free, self-hosted, no API keys.


Demo

Same prompt, three tools. Hound does the whole thing on its own, search + fetch + crawl, locally. The others get stuck on the parts they don't do.


✨ New in 12.1.2

BYOK search · intent-aware multi-query fan-out · six-signal ranking · next-gen stealth engine.

  • Bring Your Own Key (BYOK) search: add your own API keys for Serper, Tavily, Exa, Firecrawl, or TinyFish via hound keys add. Keys become the primary search source with key stacking (multiple keys per provider, auto-rotation on rate limit), automatic fallback to Hound's keyless local engines when all keys are exhausted. CLI key management: hound keys add/list/test/remove/clear.
  • Intent-aware multi-query fan-out: Hound detects query intent (comparison, howto, research, code, reference, news, factual) and generates expanded query variants distributed across diversity engines. Same parallel request count, zero added latency, wider recall. Cross-variant consensus: a URL surfaced by different queries from different engines is a stronger authority signal.
  • Six-signal ranking: cross-variant consensus + domain reputation + answer-signal scoring + title relevance + URL relevance + result diversity (max 2 per domain in top results). Source-type detection tags every result as docs/paper/repo/blog/forum/reference/news.
  • Next-gen stealth engine: system Chrome auto-detection, 4 coherent fingerprint profiles, JS-layer patches (HeadlessChrome UA fix, navigator.webdriver=undefined, canvas noise, permissions API), human behavior simulation (Bezier mouse curves, natural scroll), CF Turnstile solver with human-like mouse movement. Passes bot.sannysoft.com, bypasses Cloudflare Turnstile on CanadianInsider (hardest in a 31-site benchmark), Medium, StackOverflow, NowSecure, Glassdoor (DataDome). See the stealth benchmark below.
  • No more scrapling. All scrapling functionality replaced with hound's own modules: fetcher.py (primp-based HTTP), browser.py (patchright-based browser), extractor.py (trafilatura + markdownify). Smaller install, fewer transitive deps, faster cold start.
  • Works everywhere. Lean install pip install hound-mcp pulls no browser deps. On platforms without playwright (Termux, aarch64), hound runs in HTTP-only mode with graceful degradation.
  • Reliability fixes: universal error detection (error pages no longer look like success), dead Internet Archive fallback removed, self-healing CLI + stale process cleanup, CSS selector errors propagate instead of silently returning [], browser startup failure cleans partial sessions, hound --rollback works for pinned older versions, focus and actions now forwarded from MCP dispatcher to smart_fetch.
  • Docker support: multi-stage Dockerfile, docker-compose with shm_size 1gb, non-root user, healthcheck. By @imonlinux.
  • 673 tests.

Why you should pick 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.

  • $0 forever, MIT: no keys, no accounts, no per-request billing, no data routed to a third-party scraper. Search is keyless and local.
  • Mastered on connect: a one-time instructions block hands the agent the mental model, the #1 workflow, and the known limits. Effective on turn one.
  • ~2.9K 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, page_type, content_age_days/is_stale, source_type/is_official, relevance_score, fetch_relevance. Agents branch on structured fields, not error text. Hard-blocks (404/bot/auth) return clean errors, not fake content.
  • ️ Production-safe startup + shutdown: cold start under 1s so the MCP handshake never times out; exits 0 with clean stderr, no crash-like teardown noise.

Hound is for the agent itself. You install it once; the agent calls it whenever it needs the web.


Quick start

bash
pip install hound-mcp[all]          # fetch + crawl + keyless search + PDF + OCR + neural rerank
playwright install chromium         # the anti-detect browser engine

Then point any MCP client at the hound command. No arguments, no keys, no env vars. See Install for the lean option and Tell your agent to install it for a copy-paste prompt.

bash
hound -v          # version + update status
hound -u          # update to latest (brick-proof, self-healing)
hound --doctor    # health check + fix advice
hound --rollback  # undo the last update

If hound ever breaks (a failed update, a locked launcher), recover with python ~/.hound/repair.py, or run hound --doctor to diagnose.


Docker

Hound can run in Docker with HTTP mode, ideal for:

  • Running on a server
  • Isolated deployment

Quick start with Docker Compose

bash
git clone https://github.com/dondai1234/master-fetch.git
cd master-fetch
docker-compose up -d

Hound will be available at http://:8765/mcp as an HTTP MCP server (use localhost if running on the same machine).

Manual Docker build

bash
docker build -t hound-mcp .
docker run -p 8765:8765 hound-mcp

Environment variables

Variable Default Description
HOUND_BROWSER_IDLE_TIMEOUT 300 Seconds before browser closes (0 = never)
HOUND_SEARCH_PROXY - Proxy for all search backends (http/https/socks5/socks5h)
HOUND_SEARCH_DEADLINE 8 Search deadline in seconds
HTTP_PROXY - Proxy for HTTP fetch requests
HTTPS_PROXY - Proxy for HTTPS fetch requests

Connecting to HTTP mode

For MCP clients that support HTTP (Claude Code, Open WebUI), use your host's LAN IP:

http://:8765/mcp

(Or localhost:8765/mcp if running on the same machine.)


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 / js_shell). discover_only, crawl_urls, focus, sitemap mode, time + token caps.
smart_search Local keyless web search. 10 backends in parallel, merges + ranks with neural rerank + cross-backend consensus. relevance_score + engines_consensus per result.
screenshot Capture a page as an image. For multimodal agents (canvas, image-of-text, visual layout).
cache_clear Clear the fetch cache. all=true wipes everything.
version Installed version + update status.

Local keyless search

No API key, no account, no third-party service. smart_search runs 10 keyless backends in parallel on your machine, merges, dedups, and ranks. 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).

  • 10 independent backends: duckduckgo, brave, mojeek, yahoo, yandex, startpage, google, qwant, plus opt-in wikipedia + grokipedia. Six+ independent index families, not the same feed twice.
  • Neural rerank: a local ONNX cross-encoder (ms-marco-MiniLM-L-6-v2, Apache-2.0) running on the onnxruntime Hound already ships for OCR. Exa-style semantic ranking, $0, on your machine. Model downloads once (~80MB, cached, not bundled). Lean installs fall back to cross-engine consensus + engine-position order.
  • Cross-backend consensus: a URL returned by several independent indexes gets a consensus boost: a free authority signal from merging, no extra fetches. Every result carries relevance_score (0–1), fetch_relevance (high/med/low), and engines_consensus.
  • find_similar: pass url=; Hound fetches a page you like, derives a query, and reranks candidates against that source page. Exa's find-similar, local.
  • ️ Never dead: a diversity quorum waits for at least 3 backends to contribute before returning, so a single backend's bias or rate-limit can't dominate. A backend that CAPTCHAs or rate-limits is circuit-broken for 60s and carried by the others. engine_blocked in the response reports which ones cooled down.
  • Filters: site / exclude_sites (domain include/exclusion), location / language / region (geo), page (0–10), freshness (day | week | month | year). Default 6 results. A quality filter drops low-relevance results instead of padding to the max with garbage.
  • related_queries: follow-up queries mined from result titles + snippets (no LLM). Search one to refine a broad query.

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, then makes the no-proxy case as reliable 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.
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 (60s) while the others keep serving.
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 pool + consensus 10 backends across 6+ index families run in parallel: no single engine is a bottleneck, and agreement across independent indexes is a free authority signal.
7 HOUND_SEARCH_PROXY + rotation pool Route engine requests through one or more proxies. Add up to 20 and Hound rotates per search call: the bulletproof path for heavy use.

Same gray-area posture as SearXNG / ddgs; no search-engine ToS compliance is claimed.

Smart proxy rotation

Local keyless search scrapes public engines from your IP. Sustained use can get rate-limited. Hound's proxy rotation lets you add multiple proxies and cycles through them automatically: each search call uses the next proxy, spreading traffic across all IPs. Unhealthy proxies (connection errors) are auto-cooled for 60s and skipped. If all proxies are down, Hound falls back to direct connection so search never fails.

Setup in 30 seconds:

bash
# Add proxies (supports http, https, socks5, socks5h + auth)
hound proxy add "http://user:[email protected]:6754"
hound proxy add "socks5://1.2.3.4:1080"
hound proxy add "http://1.2.3.4:8080" "socks5://5.6.7.8:1080"  # bulk add

# List configured proxies (credentials redacted)
hound proxy list

# Remove by index or clear all
hound proxy remove 0
hound proxy clear

Or set via env var (comma-separated):

bash
export HOUND_SEARCH_PROXY="http://p1:8080,socks5://p2:1080,http://user:pass@p3:3128"

Max 20 proxies. Config persists in ~/.hound/search_proxies.json. Rotation is per-search-call (not per-engine), so all engines in one search share one IP, and the next search rotates to the next proxy. hound doctor shows your proxy pool status.

Free proxy sources tested with Hound:

Platform Signup Tested result Recommended
**[Webshar

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonaiai-agentsfetchhound

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.