One command gives any MCP agent working keyless web search:
claude mcp add search -- uvx free-search-mcp # Claude Code
codex mcp add search -- uvx free-search-mcp # CodexKeyless search reliability
- Aggregation-level rescue — empty/unhealthy searches automatically recover via
searx→bing(bounded at 10s, honestrescued_viaattribution, gated engines annotated "served via searx"). A healthy search never pays for it. - Bounded retry on the keyless HTTP path (connection errors + 429/5xx with
Retry-After, never timeouts). - No more silent losses: silently-blocked engines surface as
empty_engines; CAPTCHA-gate diagnostics finally render in markdown output;bingjoins the default pool (duckduckgo,mojeek,googlenews,bing).
System hardening
- Missing Chromium degrades gracefully with the exact install command (
uvx --from free-search-mcp playwright install chromium) — HTTP search/fetch work with zero setup. - SSRF DNS lookups moved off the event loop; cache gains TTL purge + a size cap (
SEARCH_MCP_CACHE_MAX_MB, default 512) with background maintenance; the triplicated redirect-GET loop consolidated into one SSRF-checked implementation.
Deploy
- PyPI packaging +
uvx free-search-mcp; GitHub Actions CI (py3.11–3.13) and this tag-triggered release via PyPI Trusted Publishing. - Config also loads from
~/.config/search-mcp/.env(stable for uvx installs);install.shinstalls Chromium OS deps on Linux; the admin UI opens your browser automatically.
Full details in CHANGELOG.md.