Self-hosted MCP server for Yandex Search API v2 (web, image, generative search)
Three well-named search tools with comprehensive descriptions (194 - 392 chars, baseline 194 avg). All parameters have types and descriptions. Input schemas are complete with enums for constrained values (search_type, family_mode, period, sort_by, image_format, etc.). Tool annotations (readOnlyHint, idempotentHint, openWorldHint) are present. Output schemas are documented in descriptions but not formally in JSON Schema. Error handling is mentioned in descriptions but not structured in code. No evidence of per-tool error classification or recovery guidance in implementation.
Generative search (Yandex AI): one synthesized answer with cited web sources. Expensive and SLOW endpoint (tens of seconds; strict 1 request/second quota) — prefer yandex_web_search unless the user explicitly needs a single synthesized, citation-backed answer rather than a list of results. When to use: complex questions where a digest of several sources should be returned as final text. When NOT to use: quick fact checks, link/page/image lookup — use yandex_web_search or yandex_image_search. Returns JSON: answer (markdown), sources[] with 'used' flags, is_answer_rejected (true when Yandex refused to answer), fixed_misspell_query (note: typo correction is aggressive and may distort technical terms — check this field if the answer looks off-topic). Use site/host to restrict sources to specific domains.
Search images by text query via Yandex Images. When to use: finding pictures of people, places, things, diagrams, art or design references — especially for Russian-language queries. When NOT to use: for web pages and facts use yandex_web_search; for synthesized answers use yandex_gen_search. Returns image URLs and metadata only — never binary/base64 data; fetch image_url separately if pixels are needed. Usage hints: n_results=5 to pick one image, 15-20 to offer a choice. Filters: image_format, image_size, orientation, color, site (limit to a domain). Each result has direct image_url, width/height, and the hosting page_url.
Search the web with Yandex Search — the strongest engine for Russian-language queries; also serves yandex.com/tr/kk/be/uz indexes. When to use: fact-checking, current information, news, research, finding sources on any topic; the go-to tool for anything about Russia/CIS or written in Russian. When NOT to use: for pictures use yandex_image_search; for a single synthesized AI answer with citations use yandex_gen_search (much slower and more expensive). Usage hints: n_results=5 for quick fact checks, 15-20 for research/comparison tasks. The query supports Yandex search operators: site:example.com (limit to domain), host:, date:YYYYMMDD / date:>YYYYMMDD, "quoted phrase" for exact match, word1 | word2 for OR, -word to exclude. Returns JSON: ranked results (url, domain, title, snippet, modified_at), estimated total 'found', corrected_query when Yandex fixed a typo, and has_more — pass page=1,2,... to paginate.
Output schemas not formally documented in JSON Schema format. Descriptions mention return fields (url, domain, title, snippet, etc.) but no structured schema definition visible in code. LLMs cannot reliably parse unstructured output descriptions.
Error handling lacks structured classification. Code references ToolError with JSON body {error: {type, message, retryable}} but no evidence of actionable recovery guidance (e.g., 'Try search_users() first' pattern). Errors should guide LLM on next steps.
yandex_gen_search description warns of 'tens of seconds' latency and '1 request/second quota' but no timeout parameter or rate-limit guidance in schema. Tool should expose timeout control or document retry strategy.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2025-06-18+ | v2 |
yandex_web_search and yandex_image_search accept 'page' (0-based) but no explicit limit on max page or total results. Unbounded pagination could allow LLM to request page=1000000, wasting quota. Should document max page or enforce server-side cap.
Parameter 'region' (yandex_web_search) and 'site'/'host' (yandex_gen_search) lack detailed format guidance. 'region' is described as 'Yandex geo-id' but no examples or valid range provided. LLMs may pass invalid geo-ids.