Complete Rust 1.0 rewrite (free-search-mcp, with search-mcp CLI alias)
compressing the MCP surface to three keyless tools (search, exec, and
ask), keeping the optional answer agent, agent lane, codex/antigravity
engines, and OAuth login, aggregating 500+ web, academic, and specialist
sources, and treating Claude Code, Codex, and Antigravity (agy) as equal
first-class plugin targets.
Breaking Changes
- Three-tool MCP surface: Replaced the 11+ legacy single-purpose tools
(fetch,fetch_batch,compare,extract_structured,download,
research,read_doc,paper_graph,cache_search,engines), 5 MCP
prompts, 2cache://resource templates, completions,format="json", and
structuredContentwith exactly 3 always-listed tools:search({ query, scope?, sources?, freshness?, domains?, lang?, limit?, max_age_hours? })
(live web/vertical search, optional signed-in agent lane and optional
answer above results, zero-networkscope="catalog"over 500+ sources &
Host APIs, and zero-network local FTS5scope="cache").exec({ code, max_tokens?, timeout_s? })(sandboxed QuickJS-NG ES2020 JS
over a typed Host SDK:web.*includingweb.ask,scholar.*,doc.*,
source.*,cache.*,catalog.*,util.*).ask({ question, freshness?, lang?, domains?, mode?, max_tokens? })
(always listed, unlike v0.18.x where it was conditional:mode="fast"
runs keyless direct-answer + parallel search/read in ~8 s with no LLM;
mode="agent"synthesizes a sourced answer with the configured answer
agent;mode="auto"picksagentwhen configured, elsefast).tools/listdrops from ~35 KB (~8,748 tok) to ≤ 6,800 B (instructions
≤ 450 B).
- Removed legacy engines & web admin UI: Dropped
brave(browser-only
HTML; use keyedbrave_apiif desired),zhihu(browser + login wall),
google_cse(closed/deprecated), and thesearch-mcp-adminweb UI (replaced
by native CLI subcommandsfree-search-mcp config|doctor|probe|sources|login|ask|eval-replay). - Agent search kept: Ported from Python with the same environment variables
and defaults: answer agent (SEARCH_MCP_AGENT_BACKEND=off|api|
claude-code|codex,SEARCH_MCP_AGENT_IN_SEARCH), agent lane
(SEARCH_MCP_AGENT_ENGINES=auto, wait 6 s / grace 2 s),codexand opt-in
antigravitysearch engines, and OAuth login +0600keystore
(free-search-mcp login codex|antigravity|status|logout).docs/CODEX_SEARCH.md
anddocs/ANTIGRAVITY_SEARCH.mdnow cover both tri-client plugin setup and
thecodex/antigravityagent-lane engines. - Parameter & environment renames:
searchreplacescategory→scope(old names likepaper,github,
software,weather,imagestill resolve as synonyms),engines→
sources,include_domains/exclude_domains→domains("-"prefix
excludes),max_results→limit.SEARCH_MCP_CATEGORY_ENGINE_LIMIT→SEARCH_MCP_SCOPE_ENGINE_LIMIT,
SEARCH_MCP_RESCUE_ENABLED→SEARCH_MCP_HEDGE_ENABLED,
SEARCH_MCP_RESCUE_ENGINES→ appended toSEARCH_MCP_RESERVE_ENGINES
(legacy names honored with a one-time stderr notice).
- New SQLite cache file: 1.0 stores data in
~/.cache/search-mcp/search-mcp.sqliteand does not open or migrate legacy
cache.sqlite, allowing clean coexistence with v0.18.x. - Browser rendering deferred to P1: 1.0 ships the pure-Rust HTTP + TLS
impersonation stack (reqwest+wreq) with no Playwright/Chromium
requirement.SEARCH_MCP_FETCH_STRATEGY=browserandSEARCH_MCP_BROWSER_*
settings are accepted with a one-time notice until P1 CDP ships. - Platform support: 1.0 targets macOS and Linux (Windows is P1).
Notice: Retraction Watch Initial Sync (~70 MB)
- On the first scholarly lookup (
scope="academic"orscholar.*), the server
lazily downloads the Crossref Retraction Watch dataset (~70 MB CSV, CC0 1.0)
under a cross-process file lock, indexes 6 columns intosearch-mcp.sqlite
(~8–12 MB), deletes the raw CSV immediately, and refreshes viaETagevery
7 days. SetSEARCH_MCP_OFFLINE_SYNC=falseto disable the download and fall
back to online Crossref checks only.
Added
-
Quick-search
askacross every surface: Always-listed MCP toolask,
web.ask(question, opts)insideexec, shell command
free-search-mcp ask "<question>", and HTTP endpointPOST/GET /v1/ask
behind the same token/host guards when Streamable HTTP is enabled. -
Single-binary Rust architecture (22-crate workspace, ~20 MB binary,
≤ 15 ms cold start,free-search-mcpwithsearch-mcpalias, packaged as a
binary wheel viamaturinbindings = "bin"foruvx free-search-mcp,
binary.mcpbbundles for Claude Desktop, and a ~25 MB distroless Docker
image). -
500+ aggregated sources: 42 native Rust engines (including new
daumfor
Korean search), 18 generic protocol adapters (OAI-PMH, DSpace 7, InvenioRDM,
Dataverse, EPrints, SRU, CKAN, Socrata, OpenDataSoft, SPARQL, OpenSearch,
MediaWiki, Discourse, WordPress, RSS/Atom, Fediverse, Shopify JSON, Sitemap)
across curated instances plus ad-hocsource.protocol(...), and declarative
TOML +jaqAPI manifests (including keylessmwmbl). -
First-class Scholar subsystem: Unified
ScholarlyWorkdedup & field
merge,arXiv:1706.03762resolution fix, keyless default pool (arxiv,
crossref,openairev3,europepmc), citation graph (scholar.graph),
11-step structured-first lawful OA full text (scholar.fulltext, skipping
Unpaywall cleanly whenSEARCH_MCP_CONTACT_EMAILis unset), local+online
integrity checks (scholar.integrity), offline citation formatting via
hayagriva(scholar.cite), and entity/grant queries (scholar.author,
scholar.org,scholar.venue,scholar.grants). -
Tri-client plugin parity: Equal first-class support for Claude Code
(.claude-plugin/plugin.json,.mcp.json), Codex (plugin.json,
mcp.json,codex/agents/quick_search.toml), and Antigravity (agy:
mcp_config.json,rules/AGENTS.md,antigravity/agents/quick-search.md),
plus a newscholar-researchskill alongsideverified-research. -
Security & sandboxing hardening:
- QuickJS-NG sandbox with zero ambient fs/env/net, heap/stack/call/wall-clock
caps, nonced output delimiters, and 4 Markdown boundary guardrails. - Unified local-document egress taint rule: reading a local file under
SEARCH_MCP_DOCUMENT_ROOTblocks all subsequent network egress for that
execcall. - CWD
./.envsecurity isolation: credentials, proxy, SSRF, HTTP token, and
document/download controls are ignored in working-directory.envfiles. - Isolated
__pdf-workersubprocess with cleared environment, piped stdio,
concurrency/queue limits, timeout, and cross-platform RSS kill guard. - Optional Bearer token authentication (
SEARCH_MCP_HTTP_TOKEN) and strict
loopback/origin enforcement for Streamable HTTP. - 4-layer SSRF guard with DNS pinning and automatic Clash/Surge/sing-box
Fake-IP TUN canary detection.
- QuickJS-NG sandbox with zero ambient fs/env/net, heap/stack/call/wall-clock