Web search, image search, and page scraping as Markdown. No API keys required.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that gives an LLM three web tools: search, image search, and page scraping β no API keys required.
Tools Β· Quick start Β· Configuration Β· Retrieval engine Β· Architecture Β· Contributing
mcp-retrieval is a Model Context Protocol server written in Go. It exposes web retrieval capabilities to any MCP-compatible client (Claude Desktop, IDE agents, custom LLM apps) as three read-only tools. Under the hood it uses the retrieval-go library to search the web and fetch pages, returning results as clean Markdown ready to hand to a model.
The library needs no API keys: web search goes through DuckDuckGo Lite, image search through Bing Images, and page fetching runs the HTML through a readability extractor before converting it to Markdown. To stay reliable against bot protection it impersonates real browsers at the TLS level and can rotate both browser fingerprints and proxies β see Retrieval engine.
Both transports the MCP SDK supports are available and expose the identical tool set:
| Tool | Description |
|---|---|
web_search | Runs one or more queries in parallel and returns per-query deduplicated, reranked snippets with links. |
web_search_images | Runs one or more image queries in parallel and returns per-query deduplicated image results. |
web_scrape | Downloads one or more pages in parallel and returns the main article text as Markdown. |
All three are annotated as read-only. Each tool returns a structured JSON payload that matches its output schema; the SDK mirrors the same JSON into the text content block for clients that do not read structuredContent.
web_search| Parameter | Type | Default | Notes |
|---|---|---|---|
queries | []string | β | Required. Executed in parallel. |
max_results | int | 5 | Snippets per query, capped at max_results config (20). |
timeout_ms | int64 | 5000 | Whole-call timeout; clamped to [min, max] from config. |
date | string | β | Freshness filter: d (day), w (week), m (month), y (year). |
web_search_images| Parameter | Type | Default | Notes |
|---|---|---|---|
queries | []string | β | Required. Executed in parallel. |
max_images | int | 5 | Images per query, capped at max_images config (10). |
timeout_ms | int64 | 5000 | Whole-call timeout; clamped to [min, max] from config. |
date | string | β | Freshness filter: d / w / m / y. |
web_scrape| Parameter | Type | Default | Notes |
|---|---|---|---|
urls | []string | β | Required. Downloaded in parallel. |
robots_txt | bool | false | Respect the page's robots.txt. |
timeout_ms | int64 | 5000 | Whole-call timeout; clamped to [min, max] from config. |
remove_links | bool | false | Strip Markdown links from the text. |
max_chars | int | 20000 | Truncate page text to N characters, capped at max_document_chars config (20000). |
Both
queries/urlslists are capped atmax_queries(10) items per call. Queries must be β€ 512 characters; URLs β€ 2048 characters andhttp/httpsonly.
Every call fans out across the input list and returns one entry per query/URL, each with its own status β success, failed, or timeout β so a partial failure still returns the items that did work.
count is the number of items actually returned, and it can be lower than the requested max_results / max_images: duplicates within a single query's results are removed before the limit is applied, and the upstream may simply have fewer items to give. A smaller count is a normal outcome, not an error.
Deduplication is per query, not across queries. Each entry is deduplicated on its own, so a link found by two of the queries in the same call appears in both entries β dedupe the union yourself if you need it.
Request-level failures are returned as a tool result with isError: true and a plain-text message, not as a JSON-RPC error β the model reads the message and can correct the call itself. Per-item failures never do this; they stay inside the payload as status: "failed" / "timeout".
A call fails outright only when the input is rejected before any work starts, or when every item in it fails:
| Message | Meaning |
|---|---|
invalid request | The arguments did not pass validation. |
too many queries / too many urls | The list exceeds MAX_QUERIES. |
query must not be empty | An empty query, or an empty queries list. |
query is too long | A query exceeds 512 characters. |
invalid url | A URL is malformed, over 2048 characters, or not http/https. |
robots.txt denied | robots_txt: true and the page disallows fetching. |
upstream service unavailable | The upstream answered with an unexpected status code. |
every url failed to be scraped; the pages may be unreachable or hold no extractable text | All URLs failed. Individual causes are logged to stderr, not returned. |
every query failed; the search upstream may be unreachable | All queries failed. |
internal server error | Anything unclassified. |
The all-failed messages deliberately do not distinguish timeouts from other causes: a mixed batch can fail for several reasons at once, and the per-item status already carries that detail whenever at least one item survives.
web_scrape handles HTML only. Pages are run through a readability extractor, which needs article markup, so text/plain responses yield nothing and come back as status: "failed". Raw-file hosts are the common case: raw.githubusercontent.com, github.com/.../raw/..., cdn.jsdelivr.net. Scrape the rendered page instead of the raw file.web_search_images relevance is not guaranteed. For some queries Bing Images serves a page that is not a result set, and it is parsed as though it were β the tool then returns unrelated images with status: "success". Treat image results as best-effort and verify them before showing them to a user.Pick whichever fits β all of them give the identical server.
Container (no Go toolchain needed):
Prebuilt binary β grab the archive for your platform from the latest release, unpack it, and put mcp-retrieval on your PATH.
MCP Bundle β for clients that install .mcpb files, download mcp-retrieval_<version>_<os>_<arch>.mcpb from the latest release and open it with your client. The bundle carries the compiled binary, so it needs neither Docker nor Go. Pick the file matching your OS and CPU architecture: a bundle holds one native binary.
From source:
Or build the binary in place (the Go module lives in app/):
The one flag is optional:
| Flag | Meaning |
|---|---|
-env | Path to a .env file. If omitted β or if the file does not exist β the server starts on defaults and whatever is already in the environment. There is no implicit lookup: under stdio the working directory is chosen by the MCP client, so a relative default would be unpredictable. |
Point your client at the built binary. Example Claude Desktop config:
The env block is optional β "command" alone is enough.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-retrieval)<a href="https://allmcps.com/mcp/mcp-retrieval"><img src="https://allmcps.com/api/badge/mcp-retrieval?style=directory" alt="MCP Retrieval on AllMCPs" /></a>