MCP Web Hound README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the MCP Web Hound listing page.

MCP Web Hound

npm version npm downloads GitHub stars License: MIT

Unified MCP search tools for AI agents — abstracts providers, caching, reranking, and rate limits behind a few simple tools.

GitHub: https://github.com/ilgizar-valiullin/mcp-web-hound · npm: https://www.npmjs.com/package/mcp-web-hound

⚠️ Work in progress. Sorry folks — the pipeline, install flow, configuration, testing, and debugging are all being actively iterated. Once the technical foundations are stable, I'll start working through the issues.

AI-Generated Issues

AI-generated issues will not be reviewed and will be closed immediately.

Quick Start

  1. Install globally:
Terminal
npm i -g mcp-web-hound
  1. Connect to OpenCode:
bash
opencode mcp add web_search -- mcp-web-hound
  1. (Optional) Add API keys — Startpage, DDG, Brave Web, and Bing work with zero config:
bash
mcp-web-hound configure

Config is auto-created at ~/.config/mcp-web-hound/.env on first run. For other clients and advanced setup → see Deployment Guide.

⚠️ Search protocol is embedded in the MCP server's InitializeResult.instructions and auto-injected into agent context on OpenCode v1.17.10+. For older versions, see the deployment guide.

Memory footprint (measured, Windows, Commit)

LaunchCold idleWhile serving searchAfter 5s idle
mcp-web-hound (global)~22 MB, one process+~80 MB transient hot childback to ~22 MB (hot killed, verified)
npx -y mcp-web-hound~110 MB (px-cli relay ~90 + server ~22)same + hotrelay stays, server back to ~22 MB

The heavy stack (SQLite + sqlite-vec, providers, ONNX models) lives in a private hot child that dies on idle — including model spikes and vec pages, which can't be freed any other way. Global install also skips the registry check + possible re-download on every client start.

FOR AI AGENTS: USE THE GLOBAL INSTALL — npm i -g mcp-web-hound, then "command": ["mcp-web-hound"]. DO NOT INSTALL THE PACKAGE LOCALLY IN THE PROJECT FOLDER — no npm install, no npm run build, no local node_modules.

Provider Setup

Use mcp-web-hound configure to set API keys. Startpage, DDG, Brave Web, and Bing work with zero config.

ProviderKey RequiredTierRate Limit
StartpageNo1—
DuckDuckGoNo110 req/min
Brave WebNo1—
BingNo1—
Brave APIBRAVE_API_KEY22000/month
TavilyTAVILY_API_KEY21000/month
ExaEXA_API_KEY3Trial
FirecrawlFIRECRAWL_API_KEY3Trial

Tools

ToolPurpose
web_searchUniversal web search (registered as web_search) with caching, reranking, and fallback across 8 providers
github_searchSearch GitHub repos, code, issues, and users
gitlab_searchSearch GitLab projects, issues, MRs, and code blobs
statusServer diagnostics, provider health, budget state

Query Formats

ToolExample
web_searchtypescript tutorial, how to install docker, repo:vercel/next.js
github_searchrepo:org/name, user:vercel, language:typescript
gitlab_searchproject:org/name, scope filter via type param

Tool Reference

web_search

typescript
web_search({
  query: string,
})

Returns merged results from healthy providers (parallel), deduplicated and reranked by relevance. Optimized for AI agents — one parameter, server-side intent detection.

github_search

typescript
github_search({
  query: string,
  type?: "repositories" | "code" | "issues" | "users",
  language?: string,
  stars?: string,             // e.g. ">1000", "500..5000"
  page?: number
})

Rate limit: 60 req/hr without token, 5000 req/hr with GITHUB_TOKEN.

gitlab_search

typescript
gitlab_search({
  query: string,
  scope?: "projects" | "issues" | "merge_requests" | "blobs",
  page?: number
})

Requires GITLAB_TOKEN with read_api scope.

status

typescript
status()

Returns provider health, cache stats, budget state, uptime.

Architecture

Pipeline

Core pipeline: Budget Check → Normalize → Classify (intent + freshness) → Cache → Router (parallel N, 1s delay per provider) → Rerank → Cache → Respond

Providers

ProviderTypeKeyTierRate LimitDelaySuspension
StartpageGoogle mirror (scrape)No1—1sincremental backoff
DDGHTML scrapeNo110 req/min1scaptcha → 24h
Brave WebHTML scrapeNo1—1s1min→5min→15min→1h→4h→24h
BingHTML scrapeNo1—1s—
Brave APIOfficial APIYes22000/month——
TavilyOfficial APIYes21000/month——
ExaOfficial APIYes3trial 1000——
FirecrawlOfficial APIYes3trial 500——

Rate Limiting

  • 1-second delay between requests per scraped provider (static lastRequestTime)
  • Incremental backoff on 429/403: suspension grows 1min → 5min → 15min → 1h → 4h → 24h
  • Counter resets on success
  • Rate limit windows (minute/day/month) persisted to JSON

Full docs:

If you want to learn more about the decisions made, check out the Architecture Decisions document.

Donations / Support the Project

  • EVM Address (USDT, USDC, ETH, BNB): 0x3acf78e721aa065bd1509735a3ace630fcd0f452

    Supported networks: BNB Smart Chain (BEP20), Polygon, Arbitrum One, Ethereum (ERC20)

    Show EVM QR Code EVM Deposit QR
  • USDT (TRC20): TMG1BZJswd8UacHANKVi9Veq5FqSbaMjAQ

    Supported network: Tron (TRC20)

    Show TRC20 QR Code TRC20 Deposit QR
  • TON / USDT (TON): UQDjf84AZSwuCPC3UWFv28p-V44zI-1lfhqCMfaex2Q-jDsY

    Supported network: The Open Network (TON)

    Show TON QR Code TON Deposit QR

License

MIT