mcpsurfr
v1.2.3Local web search with multi-engine deep research and on-device re-ranking.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rag_search_ddgs Web search
Search the web and return the most relevant pages as text, for when whole pages are wanted (search returns only the relevant passages). Results are re-ranked locally by semantic similarity to the query before the top pages are fetched.
| Parameter | Type | Description |
|---|---|---|
query * | string | The search query. Use natural language questions or keywords. Example: "latest developments in quantum computing" |
backend | string | Search backend, same names as deep_research. Default "auto" (ddgs metasearch over several engines, skipping blocked ones). Non-auto backends that return nothing are retried with… |
exclude_domains | Never results from these sites. Example: ["pinterest.com"] | |
include_domains | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] | |
include_urls | boolean | Whether to include each page's source URL for citation. Default: True |
news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
num_results | integer | Number of initial search results to rank. More results provide better coverage but increase processing time. Default: 10 |
recency | Only results from the past "day", "week", "month" or "year". | |
region | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). | |
top_k | integer | Number of top-ranked pages to fetch and return. Default: 5 |
search Search (passages)
Search the web and return only the passages that answer the query, not whole pages: usually about a tenth of the text of rag_search_ddgs. Use this first. Tiers, cheapest first: 1. Search, then keep the top_pages results whose title/snippet match best. 2. Fetch those pages, split them into ~600-char passages, keyword-match them (BM25) against the query plus `keywords`. 3. Only if that leaves too many candidates, or matches nothing (a paraphrase), the local embedder ranks them by meaning. If nothing matched the keywords and the client can show questions, the user is asked whether they wan…
| Parameter | Type | Description |
|---|---|---|
query * | string | The question or topic, in natural language. |
backend | string | Search backend, same names as deep_research. Default "auto". |
exclude_domains | Never results from these sites. Example: ["pinterest.com"] | |
include_domains | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] | |
keywords | Terms a good answer would contain, including synonyms and exact phrases. Example for "how do I make postgres faster": ["index", "EXPLAIN ANALYZE", "query planner", "vacuum"]. Strongly improves results… | |
max_passages | integer | Passages to return. Default 8. |
news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
num_results | integer | Search results to consider. Default 10. |
recency | Only results from the past "day", "week", "month" or "year". | |
region | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). | |
top_pages | integer | Pages to fetch and split. Default 5. |
read_url Read a page
Read one page whose URL you already have: a link the user pasted, or one from earlier results. HTML or PDF. With a query, returns only the passages that answer it, the same way search does; without one, the page's main text (cut to the shared budget).
| Parameter | Type | Description |
|---|---|---|
url * | string | A public http(s) URL. Localhost and private network addresses are refused. |
keywords | Terms a good answer would contain, as for search. | |
max_passages | integer | Passages to return when there's a query. Default 8. |
query | What you want from the page. Leave out to get the whole text. |
deep_research Deep research
Research a topic across several search terms and engines. Each term is searched on each backend, results are re-ranked locally by relevance, duplicates are removed, and the best pages are fetched as text. Backends: auto, brave, duckduckgo, google, grokipedia, mojeek, startpage, wikipedia, yahoo. - "auto" (default): ddgs metasearch over several engines, skipping blocked ones. Most reliable. - "brave": fast and usually available. - "wikipedia": exact article lookups, best with title-like terms. - "google", "startpage", "yahoo", "mojeek": often blocked. Empty engines are reported as warnings,…
| Parameter | Type | Description |
|---|---|---|
search_terms * | array | 2-5 specific, related search queries covering different angles. Example: ["postgres query planner", "postgres index types", "EXPLAIN ANALYZE tutorial"] |
backends | Backends to use. Defaults to ["auto"]. Unknown names are skipped with a warning. | |
exclude_domains | Never results from these sites. Example: ["pinterest.com"] | |
include_domains | Only results from these sites, subdomains included. Example: ["python.org", "stackoverflow.com"] | |
include_urls | boolean | Whether to include each page's source URL. |
news | boolean | Search news articles instead of the web. Results then carry their published "date". News backends: auto, bing, duckduckgo, yahoo. Pair with recency for current events. |
num_results_per_term | integer | Number of results to rank per search term per backend. |
recency | Applied to every term. Only results from the past "day", "week", "month" or "year". | |
region | Region-language code like "us-en", "uk-en" or "de-de". Default: ddgs's own (us-en). | |
top_k_per_term | integer | Number of top-ranked results to keep per search term per backend. |