mcp-retrieval
Was es ist
mcp-retrieval ist ein Model Context Protocol-Server, der in Go geschrieben ist. Er stellt jedem MCP-kompatiblen Client (Claude Desktop, IDE-Agenten, benutzerdefinierte LLM-Apps) Web-Retrieval-Fähigkeiten als drei schreibgeschützte Werkzeuge zur Verfügung. Unter der Haube verwendet er die Bibliothek retrieval-go, um das Web zu durchsuchen und Seiten abzurufen, und liefert die Ergebnisse als sauberes Markdown, das direkt an ein Modell übergeben werden kann.
Die Bibliothek benötigt keine API-Schlüssel: Die Websuche läuft über DuckDuckGo Lite, die Bildersuche über Bing Images, und beim Seitenabruf wird das HTML durch einen Readability-Extraktor geschickt, bevor es in Markdown umgewandelt wird. Um gegen Bot-Schutz zuverlässig zu bleiben, imitiert sie echte Browser auf TLS-Ebene und kann sowohl Browser-Fingerprints als auch Proxys rotieren – siehe Retrieval-Engine.
Beide vom MCP-SDK unterstützten Transporte sind verfügbar und bieten denselben Werkzeugsatz:
stdio – der Client startet die Binärdatei und kommuniziert über stdin/stdout (Standard, ideal für Desktop-Clients).
http – ein langlebiger streambarer HTTP-Server (nützlich für Remote-/gemeinsame Bereitstellungen).
Related MCP server: mcp-web-calc
Werkzeuge
Werkzeug | Beschreibung |
| Führt eine oder mehrere Abfragen parallel aus und liefert pro Abfrage deduplizierte, neu bewertete Snippets mit Links. |
| Führt eine oder mehrere Bildabfragen parallel aus und liefert pro Abfrage deduplizierte Bildergebnisse. |
| Lädt eine oder mehrere Seiten parallel herunter und liefert den Hauptartikeltext als Markdown. |
Alle drei sind als schreibgeschützt annotiert. Jedes Werkzeug gibt eine strukturierte JSON-Nutzlast zurück, die zu seinem Ausgabeschema passt; das SDK spiegelt dasselbe JSON in den Text-Inhaltsblock für Clients, die structuredContent nicht lesen.
web_search
Parameter | Typ | Standard | Hinweise |
|
| — | Erforderlich. Werden parallel ausgeführt. |
|
|
| Snippets pro Abfrage, begrenzt auf |
|
|
| Timeout für den gesamten Aufruf; auf |
|
| — | Aktualitätsfilter: |
web_search_images
Parameter | Typ | Standard | Hinweise |
|
| — | Erforderlich. Werden parallel ausgeführt. |
|
|
| Bilder pro Abfrage, begrenzt auf |
|
|
| Timeout für den gesamten Aufruf; auf |
|
| — | Aktualitätsfilter: |
web_scrape
Parameter | Typ | Standard | Hinweise |
|
| — | Erforderlich. Werden parallel heruntergeladen. |
|
|
| Respektiert die |
|
|
| Timeout für den gesamten Aufruf; auf |
|
|
| Entfernt Markdown-Links aus dem Text. |
|
|
| Kürzt den Seitentext auf N Zeichen, begrenzt auf |
Sowohl
queries- als auchurls-Listen sind aufmax_queries(10) Einträge pro Aufruf begrenzt. Abfragen müssen ≤ 512 Zeichen lang sein; URLs ≤ 2048 Zeichen und nurhttp/https.
Ergebnisse und Zählungen
Jeder Aufruf verteilt sich auf die Eingabeliste und gibt einen Eintrag pro Abfrage/URL zurück, jeweils mit eigenem status – success, failed oder timeout – sodass ein teilweiser Fehler trotzdem die funktionierenden Elemente zurückgibt.
count ist die Anzahl der tatsächlich zurückgegebenen Elemente und kann niedriger sein als das angeforderte max_results / max_images: Duplikate innerhalb der Ergebnisse einer einzelnen Abfrage werden entfernt, bevor das Limit angewendet wird, und der Upstream kann einfach weniger Elemente liefern. Ein kleineres count ist ein normales Ergebnis, kein Fehler.
Die Deduplizierung erfolgt pro Abfrage, nicht über Abfragen hinweg. Jeder Eintrag wird für sich dedupliziert, sodass ein Link, der von zwei Abfragen im selben Aufruf gefunden wird, in beiden Einträgen erscheint – deduplizieren Sie die Vereinigung selbst, wenn Sie das benötigen.
Fehler
Fehler auf Anfrageebene werden als Werkzeugergebnis mit isError: true und einer Klartextnachricht zurückgegeben, nicht als JSON-RPC-Fehler – das Modell liest die Nachricht und kann den Aufruf selbst korrigieren. Fehler pro Element tun dies nie; sie bleiben in der Nutzlast als status: "failed" / "timeout".
Ein Aufruf schlägt nur dann vollständig fehl, wenn die Eingabe abgelehnt wird, bevor irgendeine Arbeit beginnt, oder wenn jedes Element darin fehlschlägt:
Nachricht | Bedeutung |
| Die Argumente haben die Validierung nicht bestanden. |
| Die Liste überschreitet |
| Eine leere Abfrage oder eine leere |
| Eine Abfrage überschreitet 512 Zeichen. |
| Eine URL ist fehlerhaft, über 2048 Zeichen oder nicht |
|
|
| Der Upstream hat mit einem unerwarteten Statuscode geantwortet. |
| Alle URLs sind fehlgeschlagen. Einzelne Ursachen werden an |
| Alle Abfragen sind fehlgeschlagen. |
| Alles Unklassifizierte. |
Die Alle-fehlgeschlagen-Nachrichten unterscheiden bewusst nicht zwischen Timeouts und anderen Ursachen: Eine gemischte Charge kann aus mehreren Gründen gleichzeitig fehlschlagen, und der status pro Element trägt diese Details bereits, wenn mindestens ein Element überlebt.
Bekannte Einschränkungen
web_scrapeverarbeitet nur HTML. Seiten werden durch einen Readability-Extraktor geschickt, der Artikel-Markup benötigt, daher lieferntext/plain-Antworten nichts und kommen alsstatus: "failed"zurück. Rohdatei-Hosts sind der häufige Fall:raw.githubusercontent.com,github.com/.../raw/...,cdn.jsdelivr.net. Scrapen Sie stattdessen die gerenderte Seite, nicht die Rohdatei.Die Relevanz von
web_search_imagesist nicht garantiert. Für einige Abfragen liefert Bing Images eine Seite, die keine Ergebnismenge ist, und sie wird so geparst, als wäre sie eine – das Werkzeug gibt dann nicht zusammenhängende Bilder mitstatus: "success"zurück. Behandeln Sie Bildergebnisse als Best-Effort und verifizieren Sie sie, bevor Sie sie einem Benutzer zeigen.Kein JavaScript. Seiten werden unverändert abgerufen; clientseitig gerenderter Inhalt ist für den Extraktor unsichtbar.
Schnellstart
Installation
Wählen Sie, was passt – alle ergeben denselben Server.
Container (keine Go-Toolchain erforderlich):
docker pull ghcr.io/role1776/mcp-retrieval:latestVorgefertigte Binärdatei – Holen Sie sich das Archiv für Ihre Plattform aus dem letzten Release, entpacken Sie es und legen Sie mcp-retrieval in Ihren PATH.
MCP-Bundle – Für Clients, die .mcpb-Dateien installieren, laden Sie mcp-retrieval_<version>_<os>_<arch>.mcpb aus dem letzten Release herunter und öffnen Sie es mit Ihrem Client. Das Bundle enthält die kompilierte Binärdatei, benötigt also weder Docker noch Go. Wählen Sie die Datei, die zu Ihrem Betriebssystem und Ihrer CPU-Architektur passt: Ein Bundle enthält eine native Binärdatei.
Aus dem Quellcode:
go install github.com/Role1776/mcp-retrieval/app/cmd/mcp-retrieval@latest # needs Go 1.25.5+Oder bauen Sie die Binärdatei direkt (das Go-Modul befindet sich in app/):
make build # -> bin/mcp-retrievalAusführen
# defaults: stdio transport, no configuration needed
./bin/mcp-retrieval
# with an explicit env file
./bin/mcp-retrieval -env /absolute/path/to/.envDas eine Flag ist optional:
Flag | Bedeutung |
| Pfad zu einer |
Verbinden eines MCP-Clients (stdio)
Richten Sie Ihren Client auf das gebaute Binary aus. Beispiel für eine Claude-Desktop-Konfiguration:
{
"mcpServers": {
"retrieval": {
"command": "/absolute/path/to/mcp-retrieval",
"env": {
"MAX_RESULTS": "20"
}
}
}
}Der env-Block ist optional — "command" allein genügt.
Verbinden eines MCP-Clients (Container)
Führen Sie das Image über stdio aus. Die Konfiguration wird weiterhin über den env-Block übertragen, aber Docker benötigt jede Variable mit -e in der Befehlszeile, damit sie den Prozess erreicht:
{
"mcpServers": {
"retrieval": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MAX_RESULTS",
"-e", "DEFAULT_TIMEOUT_MS",
"ghcr.io/role1776/mcp-retrieval:latest"
],
"env": {
"MAX_RESULTS": "20",
"DEFAULT_TIMEOUT_MS": "5000"
}
}
}
}-i ist erforderlich — ohne sie erhält der Container kein stdin und der Client sieht den Server sofort sterben. Clients, die aus dem MCP-Registry installieren, erstellen diesen Aufruf selbst und fragen nach den in server.json deklarierten Variablen.
Ausführung über HTTP
Setzen Sie MCP_TRANSPORT=http und der Server lauscht auf SERVER_PORT unter MCP_PATH (Standard: http://localhost:8080/mcp).
Konfiguration
Alles wird über Umgebungsvariablen konfiguriert, und jeder Wert wird vor dem Start validiert: ein nicht-numerischer oder nicht-positiver Wert ist ein Startfehler. Beziehungen zwischen Limits werden beim Start nicht geprüft — siehe Limits. Bereits in der Umgebung vorhandene Variablen haben Vorrang vor einer .env-Datei, sodass der env-Block eines MCP-Clients immer wirksam wird. Jedes Feld hat einen sinnvollen Standardwert, sodass der Server ohne jegliche Konfiguration läuft (stdio-Transport).
Siehe .env.example für die vollständige Liste mit ihren Standardwerten, bereit zum Kopieren in .env.
MCP-Server
Env | Standard | Hinweise |
|
|
|
|
| Servername, der Clients angezeigt wird. |
|
| HTTP-Route (nur http-Transport). |
Die den Clients angezeigte Version ist nicht konfigurierbar: Sie wird zur Build-Zeit aus dem Git-Tag in das Binary eingestanzt.
HTTP-Server (nur http-Transport)
Env | Standard |
|
|
|
|
|
|
HTTP-Client und Proxy
Env | Standard | Hinweise |
|
| HTTP-Verbindungspooling. |
| — | Optional. Wenn gesetzt, werden Anfragen über einen Proxy mit rotierenden Sitzungen geleitet. |
| — | Erforderlich, wenn |
| — | Erforderlich, wenn |
| — | Erforderlich, wenn |
| — | Erforderlich, wenn |
Wenn ein Proxy konfiguriert ist, erhält jede ausgehende Anfrage eine eindeutige Sitzungs-ID, die an den Login angehängt wird, sodass der Upstream-Anbieter die Exit-IP pro Anfrage rotiert.
Limits
Env | Standard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Jeder Wert wird für sich geprüft — er muss größer als null sein —, aber die DEFAULT_*-, MIN_*- und MAX_*-Tripel werden beim Start nicht gegeneinander geprüft. Ein inkonsistenter Satz stoppt den Server nicht; er wird stattdessen pro Anfrage abgeglichen:
ein Wert, den der Aufrufer weglässt oder als null oder negativ übergibt, fällt auf das passende
DEFAULT_*zurück;das Ergebnis wird dann in
[MIN_*, MAX_*]geklemmt, sodass einDEFAULT_*, das größer als seinMAX_*ist, einfachMAX_*ergibt;wenn
MIN_*größer alsMAX_*ist, gewinnt das Maximum.
Das effektive Limit liegt daher immer innerhalb des konfigurierten Maximums, und eine Fehlkonfiguration führt zu einem funktionierenden Server statt zu einem fehlgeschlagenen Start. Der Kompromiss ist, dass sie still degradiert: ein Tippfehler wie MAX_RESULTS=2 statt 20 erzeugt keine Warnung, nur leise kleinere Antworten. Es lohnt sich, diese Werte zu überprüfen, wenn Ergebnisse abgeschnitten wirken.
Protokollierung
Env | Standard | Hinweise |
|
|
|
Architektur
Das Projekt folgt einer sauberen, geschichteten Struktur. Abhängigkeiten zeigen nach innen zur Domäne, und jede Schicht kommuniziert über Schnittstellen mit der nächsten.
app/ the Go module: sources plus its build files
(Dockerfile, .dockerignore, .goreleaser.yaml)
cmd/mcp-retrieval/main.go entry point: parse flags, load config, run app
internal/
app/ wiring + lifecycle (build server, run, graceful shutdown)
config/ config loading (.env → env vars → validate)
domain/ core types (Query, Link, Document, Snippet, Image) and errors
dto/web/ request/response shapes for the MCP tools
transport/mcp/ MCP layer
router/ registers every tool group on the MCP server
web/ tool handlers
utils/ schema helpers and error → tool-result mapping
usecase/web/ business logic: validation, parallelism, timeouts, dedupe/limit/rerank
adapter/web/ retrieval-go client wiring (search, images, scrape, proxy)
pkg/ reusable building blocks (mcpserver, server, logger, validator)Anfragefluss für einen Tool-Aufruf:
MCP client → transport/mcp/web (handler) → usecase/web → adapter/web → retrieval-go → the web
↑ maps errors ↑ validates, fans out, limits resultsSuche und Scraping verzweigen sich beide gleichzeitig über die Eingabeliste und aggregieren Ergebnisse pro Element, jeweils mit eigenem Status (success, failed, timeout). Ein Aufruf schlägt nur dann vollständig fehl, wenn jedes Element darin fehlschlägt.
Abruf-Engine
Die gesamte Netzwerkarbeit wird an retrieval-go delegiert, konfiguriert in app/internal/adapter/web. Wissenswert:
Quellen. Die Websuche verwendet DuckDuckGo Lite; die Bildersuche verwendet Bing Images; beim Seitenabruf wird das rohe HTML durch einen Readability-Extraktor geführt und der Hauptartikel in Markdown konvertiert (Tabellen inklusive). Es sind keine Suchmaschinen-API-Schlüssel erforderlich.
Browser-Imitation. Der Adapter aktiviert
WithBrowserRotation(), sodass jede Anfrage von einem von ~11 echten Browserprofilen gesendet wird, die zufällig ausgewählt werden. Jedes Profil kombiniert einen echten TLS/JA3-Fingerabdruck (über uTLS) mit einem passendenUser-Agentund Client-Hint-Headern — Chrome 133/131/120 (Windows/macOS/Linux), Edge 131, Firefox 120 (Windows/macOS), Safari 18.4 (macOS) und iOS 18.4 Safari. Dadurch sieht der Datenverkehr wie gewöhnliche Browser aus und nicht wie ein Go-HTTP-Client, was die freien Quellen erreichbar hält.Proxy-Rotation. Wenn
PROXY_HOSTkonfiguriert ist, installiert der Adapter eine Proxy-Factory, die bei jeder Anfrage eine eindeutigesession-<id>an den Proxy-Benutzernamen anhängt. Mit einem sitzungsbasierten Residential-/Rotating-Proxy-Anbieter ergibt das eine frische Exit-IP pro Anfrage, was die Last verteilt und Ratenlimits vermeidet. Ohne Proxy gehen Anfragen direkt hinaus.Antwortverarbeitung. Antworten werden transparent dekomprimiert (
gzip,br,zstd,deflate), und Keep-Alive ist deaktiviert (WithDisableKeepAlive()), sodass gepoolte Verbindungen keinen einzelnen Fingerabdruck/eine einzelne IP über Anfragen hinweg fixieren.
Nichts davon benötigt Konfiguration, um zu funktionieren — die obigen Standardwerte werden automatisch angewendet. Nur Proxy-Anmeldedaten sind optionale Extras.
Entwicklung
Alles, was Go betrifft, liegt in app/, also verwenden Sie entweder das Makefile aus dem Repository-Stamm oder übergeben Sie -C app an die Toolchain:
make build # compile the binary
make test # run tests
go -C app build ./... # compile everything
go -C app test ./... # run tests
go -C app vet ./... # static checksSiehe CONTRIBUTING.md für Pull-Request-Richtlinien.
Lizenz
Veröffentlicht unter der MIT-Lizenz.
Available Tools
3 toolsweb_scrapeWeb scrapeARead-onlyIdempotent
Downloads pages by their links and returns the main text as markdown. Use this to read a page in full after 'web_search' found it; snippets alone are often not enough. Links are fetched in parallel, up to 10 per call, so batch all links into one call.
Size: 'max_chars' is a per-page character limit (not tokens). A page cut short ends with '[truncated]' and has 'truncated' set; the rest cannot be fetched afterwards.
Results are reported per URL with a 'status' field (success, failed or timeout). A failed URL does not fail the others; the call errors only if every URL fails. Target sites may block or rate-limit the request, which shows up as a failed URL.
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | 1-10 absolute http(s) page URLs, fetched in parallel; one malformed URL rejects the whole call | |
| max_chars | No | character limit applied to each page separately, not to the whole response; default and maximum 20000, so it can only lower the limit; a cut page ends with '[truncated]' | |
| robots_txt | No | if true, pages disallowed by the site robots.txt are not fetched; default false | |
| timeout_ms | No | timeout for the whole call in milliseconds, shared by all URLs; default 5000, clamped to 1000-10000; unfinished pages get status 'timeout' | |
| remove_links | No | if true, markdown links are replaced by their text; default false |
Output Schema
| Name | Required | Description |
|---|---|---|
| results | Yes | |
| metadata | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare the safety profile (readOnly, idempotent, openWorld, non-destructive), yet the description still adds real substance: per-URL status values, partial-failure semantics ('a failed URL does not fail the others'), all-fail error condition, external blocking/rate-limiting, and the irreversibility of truncation. Minor gap: it doesn't mention the robots_txt opt-in or the call-wide timeout being shared across URLs, both of which affect real call behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core action and the batching rule, then cleanly separated into size and result-reporting sections. Every sentence carries a constraint or a consequence an agent would otherwise get wrong; nothing is padding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers the things that actually break an agent's plan: batching limit, per-page truncation, partial failure isolation, and timeouts. An output schema exists, yet the description still summarizes the per-URL status contract, which is a useful addition rather than redundancy.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3, but the description adds interpretive value beyond the schema: 'max_chars' is a per-page limit, not tokens, and a cut page cannot be recovered afterwards. The remaining parameters (robots_txt, timeout_ms, remove_links) are left entirely to the schema, which is acceptable given full coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Downloads pages by their links and returns the main text as markdown') and explicitly positions itself against the sibling 'web_search' by naming the gap in snippets. An agent can distinguish it from web_search and web_search_images without opening any schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit sequencing rule ('use this to read a page in full after web_search found it; snippets alone are often not enough') and an operational rule ('batch all links into one call'). The alternative tool is named together with the condition that selects it.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
web_searchWeb searchARead-onlyIdempotent
Searches the web for one or more queries and returns snippets with links. Queries run in parallel. IMPORTANT: Always write search queries in English for best results and relevance. Use this to find sources; then call 'web_scrape' to read a full page, or 'web_search_images' when you need pictures (both can be called in the same turn).
Freshness: set the 'date' field to restrict results by recency - 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year). Use it to prefer the most recent pages when the user asks about news or anything time-sensitive; leave it empty for all time.
Query operators (put them inside the query string itself): 'site:example.com term' limits the search to one site; 'filetype:pdf term' restricts to a file type; double quotes "exact phrase" force an exact match; a leading '-' excludes a word (term -foo); 'intitle:term' requires the word in the page title. Operators can be combined, e.g. 'site:arxiv.org filetype:pdf transformers'.
Results are reported per query with a 'status' field (success, failed or timeout). A failed query does not fail the others; the call errors only if every query fails. The upstream search engines may rate-limit or block requests, which shows up as a failed or timed-out query - retry later or rephrase.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | freshness filter: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time; use only these values | |
| queries | Yes | 1-10 search queries in English, run in parallel; each must be non-empty and at most 512 characters, otherwise the whole call is rejected | |
| timeout_ms | No | timeout for the whole call in milliseconds, shared by all queries; default 5000, clamped to 1000-10000; unfinished queries get status 'timeout' | |
| max_results | No | maximum snippets per query, not in total; default 5, values above 20 are clamped to 20 |
Output Schema
| Name | Required | Description |
|---|---|---|
| results | Yes | |
| metadata | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Goes well beyond the readOnly/openWorld/idempotent annotations: it explains per-query status reporting (success/failed/timeout), that a failed query does not fail the others and the call errors only if all queries fail, and that upstream rate-limiting surfaces as failed/timed-out queries requiring retry or rephrasing. That is exactly the operational context annotations cannot carry.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with purpose before the operational detail, and section labels (Freshness, Query operators) make it scannable. Minor redundancy: the date filter values are spelled out in both the description and the schema's date property description, costing a sentence that adds no new information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Covers everything an agent needs for a multi-query search tool: batching behavior, partial-failure semantics, timeout/rate-limit handling, query formatting, and result shape at a high level. An output schema exists, so return values need not be enumerated here.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Even though schema coverage is 100%, the description adds substantial meaning: it mandates English queries, enumerates the supported query operators (site:, filetype:, quoted phrases, leading '-', intitle:) with a combined example, and explains freshness semantics. This is syntax guidance the schema does not express.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('searches the web') plus scope ('one or more queries', parallel execution, snippets with links). It explicitly distinguishes itself from both siblings by naming web_scrape for full-page reads and web_search_images for pictures.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives explicit when-to-use routing ('Use this to find sources; then call web_scrape...') and notes both can be called in the same turn. It also supplies conditional guidance for the date filter ('use it when the user asks about news or anything time-sensitive; leave it empty for all time').
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
web_search_imagesWeb image searchARead-onlyIdempotent
Searches for images by one or more queries, executed in parallel. IMPORTANT: Queries must be in English ONLY. Use this only when you need pictures; use 'web_search' for text answers and links, and 'web_scrape' to read a page.
Freshness: set the 'date' field to restrict results by recency - 'd' (past day), 'w' (past week), 'm' (past month), 'y' (past year); leave it empty for all time.
Query operators can be embedded in the query string: 'site:example.com term' limits to one site, double quotes "exact phrase" force an exact match, and a leading '-' excludes a word.
Results are reported per query with a 'status' field (success, no relevant, failed or timeout). A failed query does not fail the others; the call errors only if every query fails. The upstream image search may rate-limit or block requests, which shows up as a failed or timed-out query.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | freshness filter: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time; other values are ignored | |
| queries | Yes | 1-10 image search queries in English, run in parallel; each must be non-empty and at most 512 characters, otherwise the whole call is rejected | |
| max_images | No | maximum images per query, not in total; default 5, values above 10 are clamped to 10 | |
| timeout_ms | No | timeout for the whole call in milliseconds, shared by all queries; default 5000, clamped to 1000-10000; unfinished queries get status 'timeout' |
Output Schema
| Name | Required | Description |
|---|---|---|
| results | Yes | |
| metadata | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/openWorld/idempotent/non-destructive, yet the description still adds real value: per-query status semantics, partial-failure behavior ("a failed query does not fail the others"), and the upstream rate-limit/block risk. It does not explain result ordering or what fields come back, but the output schema covers that.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core behavior and routing decision, then broken into scannable paragraphs for freshness, operators, and failure semantics. Slightly dense, but no sentence is filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 4-param parallel search tool with annotations and an output schema, this covers everything an agent needs: language constraint, batching, freshness, operator syntax, and failure modes. Nothing material is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3, and the description goes beyond it by documenting query operators (site:, "exact phrase", leading '-') that are absent from the schema entirely. The freshness codes and clamping are repeated from the schema rather than adding to it.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ("Searches for images by one or more queries") plus the parallel-execution trait. It explicitly names both siblings and what each is for, so an agent can pick the right tool without opening a schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit use condition ("use this only when you need pictures") and names the two alternatives with their respective purposes. The English-only constraint is flagged as IMPORTANT and front-loaded.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v0.1.10- Changed
web_scrape6 fields changed- changed
Input schema / properties / max_chars / descriptionPrevious value: -"truncate each page separately to N characters, default and maximum 20000; only lowers the limit, higher values are ignored"New value: +"character limit applied to each page separately, not to the whole response; default and maximum 20000, so it can only lower the limit; a cut page ends with '[truncated]'" - changed
Input schema / properties / remove_links / descriptionPrevious value: -"strip markdown links from the text"New value: +"if true, markdown links are replaced by their text; default false" - changed
Input schema / properties / robots_txt / descriptionPrevious value: -"respect the page robots.txt"New value: +"if true, pages disallowed by the site robots.txt are not fetched; default false" - changed
Input schema / properties / timeout_ms / descriptionPrevious value: -"timeout for the whole call in milliseconds"New value: +"timeout for the whole call in milliseconds, shared by all URLs; default 5000, clamped to 1000-10000; unfinished pages get status 'timeout'" - changed
Input schema / properties / urls / descriptionPrevious value: -"links to pages, downloaded in parallel"New value: +"1-10 absolute http(s) page URLs, fetched in parallel; one malformed URL rejects the whole call" - added
Input schema / properties / urls / maxItemsAdded value: +10
- Changed
web_search5 fields changed- changed
Input schema / properties / date / descriptionPrevious value: -"filter results by freshness: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time"New value: +"freshness filter: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time; use only these values" - changed
Input schema / properties / max_results / descriptionPrevious value: -"maximum number of snippets per query"New value: +"maximum snippets per query, not in total; default 5, values above 20 are clamped to 20" - changed
Input schema / properties / queries / descriptionPrevious value: -"search queries in English, executed in parallel"New value: +"1-10 search queries in English, run in parallel; each must be non-empty and at most 512 characters, otherwise the whole call is rejected" - added
Input schema / properties / queries / maxItemsAdded value: +10 - changed
Input schema / properties / timeout_ms / descriptionPrevious value: -"timeout for the whole call in milliseconds"New value: +"timeout for the whole call in milliseconds, shared by all queries; default 5000, clamped to 1000-10000; unfinished queries get status 'timeout'"
- Changed
web_search_images5 fields changed- changed
Input schema / properties / date / descriptionPrevious value: -"filter results by freshness: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time"New value: +"freshness filter: 'd' past day, 'w' past week, 'm' past month, 'y' past year; empty means all time; other values are ignored" - changed
Input schema / properties / max_images / descriptionPrevious value: -"maximum number of images per query"New value: +"maximum images per query, not in total; default 5, values above 10 are clamped to 10" - changed
Input schema / properties / queries / descriptionPrevious value: -"queries in English for image search"New value: +"1-10 image search queries in English, run in parallel; each must be non-empty and at most 512 characters, otherwise the whole call is rejected" - added
Input schema / properties / queries / maxItemsAdded value: +10 - changed
Input schema / properties / timeout_ms / descriptionPrevious value: -"timeout for the whole call in milliseconds"New value: +"timeout for the whole call in milliseconds, shared by all queries; default 5000, clamped to 1000-10000; unfinished queries get status 'timeout'"
3 tool updates
v1.0.0- First observed
web_scrape - First observed
web_search - First observed
web_search_images
TDQS
Scored across 3 tools
Each tool targets a distinct modality+action: text search, image search, and full-page fetching. The descriptions explicitly cross-reference each other ('use web_search for text, web_scrape to read a page'), leaving no realistic chance of misselection.
All three names follow the same snake_case verb_noun pattern sharing the 'web_' prefix (web_search, web_search_images, web_scrape). The shared prefix makes the family immediately recognizable while the distinguishing suffix stays descriptive.
Three tightly scoped tools for a retrieval-only server; none is redundant and no filler exists. Search-text, search-images, and scrape cover the full surface without bloat.
The retrieve-then-read workflow is fully supported, with batching, truncation signaling, and per-URL status handling. Minor gaps remain (no structured/raw fetch beyond markdown extraction, no crawl or sitemap traversal), but agents can work around these via repeated scrape calls.
Maintenance
Related MCP Connectors
Free web search for AI agents. No API key required. Hosted MCP in active development.
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Related MCP Servers
- AlicenseBqualityDmaintenanceA local web scraping MCP server with RAG capabilities that provides intelligent web search, content extraction, and screenshot tools without requiring API keys.46 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that enables web searching, URL content extraction, and summarization without requiring API keys. It also provides advanced mathematical evaluation and multi-language Wikipedia summary retrieval tools.5400 npm7MIT
- AlicenseAqualityAmaintenanceA local-first, no-API-key MCP server that enables LLMs to search the web, fetch pages, and read documents using multiple engines and smart fallbacks.11167MIT
- AlicenseAqualityAmaintenanceA self-hosted MCP server providing web search and URL fetching tools, running locally without external API keys or accounts.2380 npmMIT