The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Qsearch listing page.
I built this for my own daily research. After running 100+ research sprints, my agent kept hallucinating because it read 200-char snippets. qsearch gives it full content with multi-engine provenance — running locally, owned by me.
AI agents lose 17–33% of facts to hallucination because they read 200-character snippets, not full pages (Stanford 2024). Existing search APIs hide which engines agreed on a result. Existing knowledge graphs are enterprise-priced or vendor-locked.
qsearch is the open-source search layer that gives agents full content with multi-engine provenance — running on your machine, owned by you, ready for MCP today.
✅ v0.4.0 live at qsearch.pro. Multi-engine attribution, trust corpus with per-URL provenance (
engines[],sweep_count,trust_score), corpus viewer at/ui, MCP-over-HTTP for Claude Code and any spec-compliant client. 📖 Architecture: ARCHITECTURE.md · Vision: docs/VISION.md · Technical spec: docs/TRUST_MESH.md · Federation deep-dive: docs/FEDERATION_ARCHITECTURE.md

60-second tour:
/health(it's up, local) →/sweep(multi-engineengines[]attribution) →/verify(does the cited source actually support the claim?). Reproduce it locally withbash scripts/record-demo.shafternpm start— see docs/launch/README-demo-embed.md.
Run it in 5 minutes — free tier, no API key:
The broad sweep tier runs on self-hosted SearXNG and costs nothing. Add a Brave key only when you want the focused/critical tiers. Full setup (Brave key, Ollama, MCP server) below.
BYOK design: Brave key + SearXNG + Ollama all stay on your machine. No data exfiltration.
Every research sprint I run a dual sweep:
After 10+ sprints on the same domain, /corpus/top?min_engines=3 shows which URLs survived multiple independent search engines across multiple sessions. Those are the ones I actually trust.
Every AI agent today hits the same broken loop:
Three failures:
Snippets aren't enough. Stanford's 2024 production RAG audit measured 17–33% hallucination on Lexis+ AI and Westlaw despite "hallucination-free" claims. On Wikipedia QA, full content beats snippet-RAG by +7.3pp (arxiv 2501.01880).
No trust signal. Search APIs return ranked lists without telling you which engines agreed. SEO-spam at position 3 looks identical to authoritative source at position 4.
No memory. Every search starts from zero. The same trash gets surfaced again. The same authority goes unrecognized.
qsearch addresses all three:
engines[] field per result — Google + DDG + Brave + Qwant + Startpage attribution exposed (via SearXNG aggregation).The yellow node is your private corpus. URLs found by 5 engines + 3 sweeps + 4 topics get a trust score that emerges naturally — no human ranking, no centralized authority, no cloud round-trip.
| Tavily | Exa | Serper | Brave API | SearXNG | qsearch | |
|---|---|---|---|---|---|---|
| Open source core | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
| Full content (not snippets) | partial | partial | ❌ | ❌ | ❌ | ✅ |
| Multi-engine attribution | ❌ | ❌ | ❌ | ❌ | partial | ✅ (engines[]) |
| Persistent local corpus | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
| Trust score per URL | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
| Self-hostable | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
| MCP-native | partial | ✅ | ❌ | ✅ | ❌ | ✅ |
| BYOK upstream | ❌ | ❌ | ❌ | N/A | ✅ | ✅ |
| Endpoint | Description | Backend |
|---|---|---|
POST /search | Web search + corpus first, trust-weighted re-rank | Brave or SearXNG |
POST /sweep | Batch search with priority/domain routing (see below) | SearXNG / Brave / Academic |
POST /cached_sweep | Same as /sweep, with SQLite memcache layer | SearXNG / Brave / Academic |
POST /academic_search | Peer-reviewed papers via arxiv + PubMed + Semantic Scholar | Academic (free, no auth) |
POST /sweep_context | Local LLM page extraction (analogue of Brave LLM Context) | Ollama qwen2.5 |
POST /news | News search | Brave (requires key) |
POST /context | Deep page extraction | Brave (requires key) |
POST /verify | Citation honesty check — does the cited URL actually support a claim? Returns Supported/Partial/Unsupported/Fabricated/Error + verbatim excerpt | LLM-as-judge (local Ollama qwen2.5 or DeepSeek) |
POST /index | Crawl URL or index local .md glob | Crawl4AI |
GET /trust/:url | Trust score + provenance for any URL in corpus | — |
GET /corpus/top | Top URLs ranked by trust (?limit=20&min_engines=3) | — |
GET /corpus/stats | Corpus size + counts | — |
GET /economy_report | Sprint cost breakdown by backend + savings vs all-Brave | — |
GET /ui | Corpus browser — search, trust scores, provenance modal | — |
GET /health | Service status | — |
/search accepts: query, n_results (1–20), freshness (pd/pw/pm/py), search_lang, country, corpus_first (default true), corpus_only (default false).
/sweep accepts text/plain body with one query per line in the format label|query[|priority][|domain]:
broad (default, SearXNG, $0) / focused (Brave, ~$0.005) / critical (Brave + LLM Context, ~$0.01)general (default) / scholarly (arxiv+PubMed+S2, $0) / ru (SearXNG with language=ru-RU bias, $0)Auto-indexes results into Meilisearch with engines[] and engine_count filterable.
/academic_search accepts JSON: { query, n_results (1-20), sources?: ["arxiv","pubmed","semanticscholar"] }. Fans out to all three in parallel, dedupes by DOI/title, returns interleaved top-N.
Output excerpt (parsed_snippets.md):
URL #1 has engine_count=4 — found by 4 independent engines. URL #2 has engine_count=1 — found by only one. The trust signal is built into the data, not bolted on.
Returns only URLs found by 3+ engines — your high-trust subset.
The MCP server lives in this repo — there is no npm package for it. Run it from source:
Add to ~/.claude/settings.json:
Available tools:
mcp__qsearch__web_search — web search via Brave or SearXNGmcp__qsearch__sweep — batch research sweep with multi-engine attributionmcp__qsearch__academic_search — peer-reviewed papers via arxiv + PubMed + Semantic Scholarmcp__qsearch__sweep_context — Phase 3 local LLM page extraction (free, Ollama)mcp__qsearch__verify_citation — does the cited URL actually support the claim? (Supported/Partial/Unsupported/Fabricated)mcp__qsearch__economy_report — cost breakdown vs all-Brave baselinemcp__qsearch__index_research — index local .md files by globmcp__qsearch__news_search — news search (Brave key required)mcp__qsearch__context_search — deep page content (Brave key required)qsearch publishes Streamable HTTP transport at / on port :8081. Compatible with Claude Desktop (HTTP mode), OpenClaw, and any spec-compliant MCP client.
| Component | Tech |
|---|---|
| Runtime | Node.js ≥20 |
| Web search | Brave Search API (BYOK) |
| Meta-search | SearXNG (self-hosted, optional) |
| Academic | arxiv + PubMed E-utilities + Semantic Scholar API (free, no auth) |
| Full-text corpus | Meilisearch v1.7 |
| Vector corpus | Qdrant v1.17.1 |
| Crawler | Crawl4AI 0.8.6 (Python subprocess) |
| Embedder (optional) | Ollama nomic-embed-text (default) or llama.cpp /v1/embeddings |
| LLM cleaner (optional) | Ollama qwen2.5:7b-instruct (default; configurable via OLLAMA_CLEAN_MODEL) |
| MCP | @modelcontextprotocol/sdk |
| License | Apache-2.0 |
| Version | Feature | When |
|---|---|---|
| v0.3.1 | Multi-engine engines[] attribution + dual sweep + corpus + MCP | shipped |
| v0.4.0 | Trust layer: /trust/:url, /corpus/top, /ui viewer, trust-weighted re-rank, sort/pagination, corpus merge-on-upsert, snippet sanitization | shipped |
| v0.4.1 | Phase A — academic backend (arxiv + PubMed + S2), 4-field queries (label|q|priority|domain), /academic_search JSON + MCP tool | shipped |
| v0.4.2 | Phase B — embedding rerank (Ollama nomic-embed-text, gated QSEARCH_RERANK_ENABLED); Phase C — RU coverage via SearXNG language=ru-RU | shipped |
| v0.4.3 | QVAC SDK ripped out, all local LLM via Ollama (qwen2.5:7b-instruct + nomic-embed-text) | shipped |
| v0.5 | Launch: awesome list PRs, MCP Registry publish, Show HN, newsletter distribution | in progress |
| v0.6 | Phase B Stage 2 — LLM scoring rerank for critical queries; direct Yandex backend; Layer 8 quality gate (rejection threshold) | next |
| v0.7+ | Optional federation (research direction — no timeline until v0.5 validated) | open |
See docs/VISION.md for the full picture and why federation is research-direction-only until we can ship it without overpromise.
engines[] requires SearXNG. Pure-Brave mode still works but loses the multi-engine signal./context endpoint.Apache-2.0 — see LICENSE. Independent. BYOK. Self-hostable. No vendor lock-in.