aisearch
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aisearch search for the PHP 8.4 release notes and verify the links"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AiSearch — zamknięty ekosystem wyszukiwania + przeglądarka dla agentów
Zamknięty ekosystem wyszukiwania dla agentów AI: plan → propose → resolve → falsify → [SERP] → learn, z autokorektorem (redirect/Wayback), trzema cache'ami, feedami, nauką źródeł i detektorem driftu dokumentacji. Tam gdzie tekst się nie przewija (JS, SPA), wchodzi przeglądarka Obscura (V8) — a werdykt zawsze zostaje po stronie silnika. Jeden serwer MCP, trzy wejścia (MCP/HTTP/CLI), zero zależności runtime.
To nie jest kopia ani „jeszcze jeden wrapper". To synteza dwóch dojrzałych podejść w jednym czystym repo:
Warstwa | Skąd | Co wzięliśmy |
Mózg — pipeline |
| cały rdzeń — jeden do jednego, z 49 testami i zielonym gate'm |
Ręce — przeglądarka headless (38 narzędzi), render jako eskalacja |
| klient MCP + polityka renderowania + passthrough narzędzi |
Interfejsy — jeden silnik, trzy wejścia | oba źródła | MCP stdio + HTTP + CLI-bridge; sandbox Python (tylko przestrzeń |
Bez szumu — celowo usunięte: narzędzia YouTube (mają własne repo
youtube-transcript-search), przestrzenie sandboxu niebędące web
(posts/projects/agentmg…), zależności runtime (zero — npm install niepotrzebny),
fork SDK MCP (JSON-RPC 2.0 po liniach napisany ręcznie — 4 metody, nie biblioteka),
domeny własne w kodzie (przez WEB_SOURCE_LOCAL), PHP-warstwa (repo ją dostarcza
samo, jeśli chce).
Szybki start
# 1. Bramka jakości — offline, deterministyczna (CI)
npm run eval # replay + gate: hit_rate, repair_rate, false_positive
npm test # wszystkie testy (Node + Python), bez sieci
# 2. Dashboard / ślad decyzji w języku naturalnym
npm run dashboard "PHP 8.4 release announcement changelog"
# 3. Serwer MCP dla agenta (opencode / Claude / inne)
# package.json "bin": aisearch → src/mcp/server.mjs
# albo ręcznie: node src/mcp/server.mjsRejestracja MCP (opencode / Claude)
{
"mcpServers": {
"aisearch": {
"command": "node",
"args": ["C:/Users/admin/Desktop/aisearch/src/mcp/server.mjs"]
}
}
}Warstwa HTTP (sandbox, debug, integracje)
npm run http # http://127.0.0.1:8787
curl -H "authorization: Bearer $WEB_API_KEY" http://127.0.0.1:8787/web/statsRelated MCP server: CrawlEyes
Narzędzia (jeden serwer, dwa światy)
Silnik (web.*) — 13 narzędzi:
Narzędzie | Po co |
| cały pipeline; wynik = ranked + provenance + ślad decyzji |
| jedno wywołanie → zwinięty brief (rank/score/flags) |
| partia kandydatów w jednym callu: survived/rejected/repaired |
| drift dokumentacji + prior + werdykt w języku naturalnym |
| render jednej strony przez V8 (jawny, drogi) |
| pełny ślad etapów — do debugowania „co się zadziało" |
| pętla użyteczności: used/ignored/rejected → prior |
| metryki jakości + werdykt bramki (replay/live) |
| widok wnętrza ekosystemu |
Przeglądarka (browser_*) — pełny passthrough Obscury (browser_navigate,
browser_markdown, browser_links, browser_click, browser_fill, browser_evaluate,
browser_screenshot, browser_pdf, zakładki…). Lista zależy od zainstalowanej wersji
binarii. Gdy binaria nie ma — serwer i tak działa, tylko web.*.
Jak współpracują mózg i ręce
plan → propose → resolve (fetch, redirecty, cache) → renderPass (Obscura, auto) → falsify → rank → [SERP] → learn → out
└── tylko JS-shelle: 200, ale treści < WEB_RENDER_MIN_TEXTZasady (wynikione z pułapek obu światów, opis w docs/ARCHITECTURE.md):
Fetch zostaje na głównej ścieżce — szybki, liczy redirecty (na nich stoi detektor driftu), deterministyczny w replay.
Przeglądarka eskalacjią, nie fetcherem —
walkRedirectsliczy hop'y; przeglądarka followuje je po cichu i zepsułaby ten licznik.Budżet i jawność —
WEB_RENDER_MAX(domyślnie 3) na zapytanie; tryballtylko świadomie; błąd przeglądarki nie wywala pipeline'u.Replay jest czysty — bez renderera nie ma requestów: ewaluacja offline pozostaje deterministyczna, bramka CI nie może „pogięzić" wyniku siecią.
Sandbox Python (receptury)
python src/sandbox/launch.py --recipe web_search_brief --args '{"query":"PHP 8.4 release changelog"}'
python src/sandbox/launch.py --recipe web_verify_links --args '{"urls":["https://www.php.net/releases/8.4/en.php","https://ten-url-nie-istnieje.example"]}'
python src/sandbox/launch.py --recipe web_render_page --args '{"url":"https://example.com"}'Receptury: web_search_brief, web_verify_links, web_drift_report,
web_render_page. Antywzorzec: model pcha jedno wywołanie, partia dzieje
się w silniu. Sesje (--workspace --session ID) trzymają WORKSPACE między
wywołaniami (TTL 15 min, max 50). W repo jest tylko przestrzeń web —
reszta sandboxu jest celowo pusta.
Bramki
npm run syntax # node --check + py_compile na wszystkim
npm run test:unit # browser/render, serwer MCP (ze stubem), HTTP/bridge
npm run test:web # 49 testów rdzenia (plan/propose/resolve/falsify/cache/feeds/dashboard)
npm run test:py # 10 testów receptur + 10 testów sesji/launchera (offline)
npm run eval # ewaluacja replay + gate regresji
npm run eval:live # to samo z prawdziwą sieciąWynik na dziś: syntax 0 błędów · 49 + 3 Node · 20 Python · eval gate PASS.
Layout
src/
engine/ rdzeń AiSearch (16 modułów) + instance.mjs (wspólna instancja) + dashboard
browser/ client.mjs (NDJSON MCP → Obscura) · render.mjs (polityka eskalacji)
mcp/ server.mjs — jeden serwer: web.* + browser_* (zero zależności)
http/ server.mjs (REST) · bridge.mjs (CLI stdin→stdout)
sandbox/ client.py · launch.py · tools.py (mock) · sessions.py · redact.py · recipes/
test/ testy Node (stub Obscury w test/stub-obscura.mjs)
fixtures/ web-eval.json — nagrania do deterministycznego replay
scripts/ web-eval.mjs · check-syntax.mjs
bin/ tutaj ląduje obscura.exe (gitignored — pobierz z Releases)
docs/ ARCHITECTURE.mdWymagania
Node ≥ 20 (do silnika, MCP, HTTP, testów)
Python ≥ 3.11 (sandbox + receptury; tylko stdlib)
Obscura opcjonalna — bez niej silnik działa (fetch, SERP, nauka), render i
browser_*są wyłączone. Binaria: GitHub Releases projektu Obscura →bin/alboOBSCURA_BIN.
Konfiguracja
Pełna lista z komentarzami: .env.example (→ .env, nigdy do gita). Najważniejsze:
WEB_RENDER (auto/all/off), WEB_RENDER_MAX, WEB_SERP_ENABLED,
WEB_COVERAGE_THRESHOLD, WEB_CONCURRENCY, WEB_HTTP_PORT, WEB_API_KEY.
Available Tools
13 toolsweb.briefB
Jedno wywołanie → zwinięty brief: ranking + provenance (repaired/rendered/fromCache) + coverage + uwagi. Do raportów, nie do debugu.
Inputs: query (required), top, urls.
web.cacheC
Stan lub czyszczenie cache (resolve/content/feeds).
Inputs: action.
web.configureC
Rozstrzygnięta konfiguracja + stan renderera.
Inputs: no named parameters.
web.driftC
Detektor driftu: domeny z przyspieszonymi przekieraniami.
Inputs: threshold.
web.drift_reportC
Raport driftu dokumentacji + prior źródeł + werdykt w języku naturalnym. Domeny, które zaczęły przekierowywać = docs się przestawiły.
Inputs: threshold.
web.evalC
Ewaluacja jakości (replay offline / live) + opcjonalnie werdykt bramki regresji.
Inputs: gate, mode, thresholds.
web.feedbackC
Pętla użyteczności: used/opened/ignored/rejected → linklog → prior. Bez tego system uczy się rozstrzygać linki, a nie pomagać.
Inputs: url (required), label (required), query.
web.feedsC
Rejestr kanałów RSS/Atom (warstwa świeżości): list/add/remove/reindex.
Inputs: url, name, action, intent.
web.renderB
Render jednej strony przez przeglądarkę (V8): JS, SPA, treść za interakcją. Zwraca markdown + tytuł. Drogie — używaj świadomie.
Inputs: url (required), timeoutMs.
web.searchB
AiSearch: szukaj w zamkniętym ekosystemie (plan → propose → resolve → falsify → [SERP] → learn). Model zgaduje adresy, HTTP je weryfikuje i naprawia (redirect/Wayback). JS-shelle renderuje przeglądarka (auto), gdy treść < renderMinText. Wynik: ranked + provenance + ślad decyzji.
Inputs: query (required), top, serp, urls, +4 more.
web.statsC
Wnętrze ekosystemu: cache, prior, drift, liczba wyszukań w sesji.
Inputs: no named parameters.
web.traceC
Pełny ślad etapów w języku naturalnym (to, co dashboard rysuje) + statystyki. Do debugowania „co się zadziało".
Inputs: query (required), top, urls.
web.verify_linksC
Partia kandydatów w JEDNYM wywołaniu: survived / rejected / repaired (dowód sensu auto-korektora). serp domyślnie wyłączony — tu celowo bez wynalazców.
Inputs: urls (required), top, serp, query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools occupy distinct niches (search, render, verify_links, feeds, cache, configure), but web.drift and web.drift_report clearly overlap, and web.stats vs web.trace both expose internal ecosystem state with only subtle wording differences. web.brief vs web.search is also a thin distinction (collapsed output for reports vs full ranked result). Descriptions help, but an agent can plausibly misselect among these pairs.
All tools share a clean `web.` namespace with lowercase snake/compound names, which is highly predictable. The minor deviation is mixed grammatical style — some are verbs (search, render, verify_links, configure) and others plain nouns (stats, cache, feeds, drift), plus drift vs drift_report is an inconsistent granularity pair.
13 tools sits comfortably in a well-scoped range and each maps to a recognizable stage of the search/resolve/learn pipeline. It is slightly heavy on introspection tools (stats, trace, cache, configure, eval) relative to the core search surface, but nothing feels gratuitous.
The lifecycle is essentially covered end-to-end: search, verify, brief, render, trace, feedback/learning loop, eval, caching, feeds and configuration all have entry points. Minor gaps include no explicit single-URL content extraction distinct from render, and no direct read of a stored linklog/prior record despite feedback writing to it.
Related MCP Connectors
Scrape, crawl and search the web for AI agents via MCP.
Web search API and MCP server for developers building AI agents.
Search the agentic web. 4,100+ sites, 11 tools incl. check_url + verify_mcp for probe-before-use.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform web searches with full content retrieval and multi-engine provenance, including trust scoring and local corpus persistence, via MCP integration.4Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI agents to perform web searches and extract full-text content from web pages via standard MCP tools, with fallback search and semantic reranking.22MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform web research over MCP: search with a real browser, fetch JS-rendered pages, download PDFs and convert them to Markdown, then search and page through large documents using bounded previews so the context window isn't flooded.BSD Zero Clause
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to run web searches across configured providers and crawl individual pages or whole sites into clean Markdown or JSON, including authenticated crawls and local or HTTP MCP deployment.-