Been running a fully local web research pipeline for my AI agent setup for a while now and realized I haven’t seen much discussion about how others are handling this part. The inference side gets all the attention, but getting an agent to actually browse the real web without everything falling apart is its own problem.
My stack ended up as a layered pipeline: self-hosted SearXNG for search, a persistent cache/index layer (Hister) that stores every fetched page, rnet (now wreq) for TLS-fingerprinted HTTP fetches that get past basic anti-bot, camofox (wrapping Camoufox) as a headless browser fallback for JS-heavy pages, and a local qwen3-reranker-4b for relevance scoring. All talking to the agent through an MCP server. No cloud API calls anywhere in the chain.
Reddit 403s on Firefox fingerprints from datacenter IPs but Safari passes. Cloudflare managed challenges need full browser rendering regardless of fingerprint. Pages change or disappear between sessions, so having the cached snapshot from when you actually read it matters more than you’d think. The cache layer quietly became the most valuable piece — repeat lookups are instant, and when a page goes down or gets edited, the agent still has what you originally saw.
All of it runs on one box alongside the inference models. No external dependencies, no privacy calculus about browsing history hitting a cloud API.
Wrote up the full architecture, pitfalls, and config details here: Completely Local Agentic Web Research · kmarble.dev
Curious what others are running for this. Is anyone doing fully local web access for their agents, or are most people just pointing at a search API and accepting the tradeoffs? The fingerprinting and anti-bot layer especially feels like something everyone has to solve independently.
3 Likes
As I assumed, everyone is making local tools for the local use of LLMs.
For websearch I used a few angles too. The SearXNG is very helpful, and I built a developed system with various crates to support them. I settled on three MCP servers and the fallback url-to-markdown having the page converted to markdown to decipher visible content.
Here is Deepseek’s summary of websearch:
Summary
Architecture Overview
Websearch System Summary
- Core pipeline: Query (parse+validate) → Cache (check first) → Provider Registry (parallel query all healthy providers) → Fetcher (HTTP with robots.txt) → Extractor → Ranker → (optional) Reranker → Cache (store) → Return
- 3 quality modes determine depth:
- Lightweight — SERP only (query → providers → rank → return)
- Assisted — Lightweight + fetch pages + extract readable content
- Full-RAG — Assisted + embed + rerank + summarize into passages
- 6 provider backends queried in parallel: SearxNG, Brave, DuckDuckGo, Google Custom, Bing, CustomCrawler. Error isolation means one failing doesn’t kill the rest.
- 3 cache backends behind a uniform trait: in-memory LRU, SQLite, Redis. Cache-first — always checked before external requests.
- Rate limiting per provider with exponential backoff + jitter; unhealthy providers auto-skipped via health checks.
- Security boundary: WebSearchFrontier delegates all HTTP execution to tiered-isolation (containers). RBAC gates access. PII scrubbing. Core agent never makes direct external calls.
- Pipeline state machine: Idle → QueryingCache → QueryingProviders → FetchingPages → ExtractingContent → RankingResults → (RerankingResults) → CachingResults → Returning. Cancel-safe, timeout-enforced at every layer, returns partial results on provider failure.
MCP:
Boring day to day - duckduckgo-mcp-server-main
Most “research” - “GitHub - qpd-v/mcp-DEEPwebresearch: Enhanced MCP server for deep web research · GitHub”
Youtube - “GitHub - SubDownload/subdownload-mcp: Public MCP wrapper for SubDownload.Fetch YouTube transcripts, search videos, browse channels and playlists — instant YouTube data for your AI workflow. · GitHub”
I’m using agents to build these tools, so this was an early adoption to build out from. Interestingly, I rarely use it. Web searching is like 2% of my LLM use case.
2 Likes
While I stumbled on this thread and I see it is a little over a month old; I would like to say that I was using a cloud-hosted AI platform called Okara, before to do my agentic web searching, and now I am using the locally hosted Umsloth Studio, as it has agent for searching and everything else built in. I have also used LM Studio with the LM Studio toolbox, as well as a couple other web search plugins that I have tried.
1 Like
I’m using the Brave API, each month you get 2000 free searches, which is enough for me.
I was using SearxNG, but most of the results I got were from Brave Search, so I decided to just use their API directly.
1 Like