OpenSERP

v0.1.12
org.openserp/mcp Checked 23 hours ago Published 1 month ago

Search Google, Bing, Yandex, Baidu, DuckDuckGo and Ecosia with original ranks, plus page extraction.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mega_image Mega Image Search

Search images on several engines and merge them into one list (mode balanced, the default); each image keeps its source engine and rank, and duplicates are dropped. Use it when one engine gives too few or too similar images; use image_search for a single engine. Balanced mode serves only the first page; mode any or fast returns the first engine that succeeds. Output fields match image_search. Cloud: any/fast cost 1 credit, balanced depends on engines and image volume. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked (CAPTCHA…

ParameterTypeDescription
datestringPublished-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge.
dedupebooleanDrop duplicate URLs across engines (default true).
enginesarrayEngines to query, in priority order for any mode. Omit to use all available engines.
featuresbooleanAdd serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them.
filestringFile extension filter, such as PDF.
filterbooleanLet the engine collapse near-duplicate results (default true, mostly affects Google).
formatstringjson (default) for structured results; markdown, text or ndjson for compact plain text.
langstringLanguage code, such as EN or de.
limitintegerMaximum result count, 1-100. Keep 10 when paging with start.
mergebooleantrue (default): one list from every engine that succeeded. false: keep only the first engine that returned results.
modestringbalanced (default): all engines in parallel, results merged. any: engines in your order until one succeeds; on Cloud slow attempts can overlap. fast: the healthiest, fastest engine. Only any and fast…
regionstringMarket or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id.
sitestringDomain filter, such as example.com.
startintegerResult offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400.
textstringSearch query text. At least one of text, site, or file should be provided.

get_usage Get Usage

Show the OpenSERP Cloud account behind OPENSERP_API_KEY: account (plan, credits_remaining) and lastResponse (request_id, credits used, engine) for the previous tool call in this session. Read-only and free. Use it to check the balance before a large batch or to see what a call cost. Self-hosted mode has no credits, so it returns an error there.

list_engines List Engines

List the engines this OpenSERP backend can use and whether they work right now. Self-hosted: each engine with initialized and circuit_state (open means it is failing, skip it). Cloud: per-engine web/image support and status (operational, loaded, down) with latency. Read-only and free. Call it when searches keep failing, then pick a healthy engine for search or the engines list.

extract Extract URL

Fetch one URL and return its main content as Markdown, e.g. to read a page found by search. Returns JSON: url, title, description, markdown, text, headings, links (first 50), lang and meta.mode_used. Content over maxChars (default 20000) is cut and the result gets truncated: true. For two or more pages use batch_extract. Pages behind logins or bot walls can fail or come back thin; try mode rendered or another source. Cloud: 1 credit for a fast fetch, 3 when the page needs a browser, +1 with region; failed and empty pages are free. Errors return isError with status and error code.

ParameterTypeDescription
url *stringAbsolute URL to fetch and extract.
cleanbooleanArticle-only extraction (default true). Set false for landing pages, docs indexes and dashboards, where content sits in navigation or feature blocks.
formatstringjson (default) for the structured fields; markdown or text for the page content as plain text.
langstringPreferred page language, sent as Accept-Language, such as en or de.
maxCharsintegerMax characters of page content (default 20000). Longer pages are cut and marked truncated.
minRunesintegerMinimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor.
modestringauto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages.
regionstringTwo-letter country code to extract from, e.g. US or DE, for geo-fenced or localized pages. On Cloud this adds 1 credit per extracted URL.
useLlmsTxtbooleanFor a site root URL, return the site's /llms-full.txt or /llms.txt instead when it has one.

batch_extract Extract several URLs

Extract LLM-ready content from up to 20 URLs in one request. Prefer this over repeated extract calls when grounding an answer in several pages: it is one round-trip, and a URL that fails returns an item with an error instead of failing the batch. Returns results (url, page_content as Markdown, error when that URL failed; metadata with title, mode_used and, when cut, truncated and total_chars) and meta (requested, succeeded, failed). Cloud: billed per URL like extract; failed and empty URLs are free.

ParameterTypeDescription
urls *arrayAbsolute URLs to fetch and extract. Duplicates are dropped.
cleanbooleanArticle-only extraction (default true). Set false for landing pages, docs indexes and dashboards, where content sits in navigation or feature blocks.
langstringPreferred page language, sent as Accept-Language, such as en or de.
maxCharsintegerMax characters of content per URL. Default splits 40000 across the batch (at least 2000 each). Longer pages are cut and marked metadata.truncated.
minRunesintegerMinimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor.
modestringauto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages.
regionstringTwo-letter country code applied to every URL, e.g. US or DE. On Cloud this adds 1 credit per extracted URL.
useLlmsTxtbooleanFor a site root URL, return the site's /llms-full.txt or /llms.txt instead when it has one.