Skip to main content
Glama
yandex-searchapi-mcp

yandex-searchapi-mcp

by shufl9dka

Yandex Search.API MCP-Server

MCP-Server für die Yandex Search API über REST mit 7 Tools:

  • web_search

  • image_search

  • generative_search

  • wordstat_get_top

  • wordstat_get_dynamics

  • wordstat_get_regions_distribution

  • wordstat_get_regions_tree

Der Server liest Anmeldedaten aus der MCP-Client-Umgebungskonfiguration:

  • FOLDER_ID

  • API_KEY

Für die lokale Entwicklung wird .env automatisch geladen.

Funktionen

  • Verwendet nur REST-Endpunkte (/v2/web/search, /v2/image/search, /v2/gen/search, Wordstat REST-Pfade)

  • Minimale Tool-Eingaben standardmäßig, um den Modellkontext kompakt zu halten

  • searchType ist für alle relevanten Tools verfügbar und standardmäßig auf SEARCH_TYPE_COM gesetzt

  • Die Websuche erzwingt immer responseFormat: FORMAT_XML

  • Web-/Bild-Tools dekodieren rawData aus Base64 und parsen XML in strukturierte Gruppen

  • Fehlerbehandlung mit klarem API-Status und Details

Related MCP server: Yandex Search MCP Server

Installation

npm install yandex-searchapi-mcp

Beispiel für MCP-Client-Konfiguration

{
  "mcpServers": {
    "yandex-searchapi": {
      "command": "npx",
      "args": ["-y", "yandex-searchapi-mcp"],
      "env": {
        "FOLDER_ID": "your-folder-id",
        "API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Verwenden Sie dieses Tool, wenn Sie klassische Websuchergebnisse (Links + Snippets) benötigen, keine generierte Antwort.

Eingaben:

  • query (erforderlich)

  • searchType (optional, Standard SEARCH_TYPE_COM)

  • page (optional)

  • docsOnPage (optional)

  • familyMode (optional)

  • fixTypoMode (optional)

Rückgabewerte:

  • groups[] mit documents[], wobei jedes Dokument Folgendes enthält:

    • url

    • title

    • language

    • passages

  • requestId

  • found

Hinweis: Bei der Websuche wird diese Eingabe auf groupSpec.groupsOnPage in der Upstream-API abgebildet.

Verwenden Sie dieses Tool, wenn Sie Bildsuchergebnisse und Bildmetadaten (Miniaturansicht/Original-Links und Abmessungen) benötigen.

Eingaben:

  • query (erforderlich)

  • searchType (optional, Standard SEARCH_TYPE_COM)

  • page (optional)

  • site (optional)

  • docsOnPage (optional)

  • imageSpec (optional: format, size, orientation, color)

Rückgabewerte:

  • groups[] mit documents[], wobei jedes Dokument Folgendes enthält:

    • url

    • extras.image-properties (falls vorhanden)

  • requestId

  • found

Verwenden Sie dieses Tool, wenn Sie eine gebrauchsfertige, fundierte Antwort benötigen, die aus Suchergebnissen synthetisiert wurde.

Eingaben:

  • query (erforderlich)

  • searchType (optional, Standard SEARCH_TYPE_COM)

  • fixMisspell (optional)

  • getPartialResults (optional)

  • scope (optional): { type: "site" | "host" | "url", values: string[] }

Gibt nur die generativen Kernfelder zurück (ohne Wrapper-Objekte):

  • message

  • sources

  • searchQueries

  • fixedMisspellQuery

  • isAnswerRejected

  • isBulletAnswer

  • hints

  • problematicAnswer

wordstat_get_top

Verwenden Sie dieses Tool, um zu verstehen, nach welchen verwandten Suchanfragen Nutzer im Zusammenhang mit einem Keyword suchen.

Eingaben:

  • phrase (erforderlich)

  • numPhrases (optional, Standard 20)

  • regions (optional)

  • devices (optional)

Rückgabewerte:

  • totalCount

  • results

  • associations

wordstat_get_dynamics

Verwenden Sie dieses Tool, um Nachfragetrends für ein Keyword im Zeitverlauf zu verfolgen.

Eingaben:

  • phrase (erforderlich)

  • period (optional, Standard PERIOD_WEEKLY)

  • fromDate (optional, Standard now-30d, ISO-Datum)

  • toDate (optional, Standard now, ISO-Datum)

  • regions (optional)

  • devices (optional)

Rückgabewerte:

  • results

wordstat_get_regions_distribution

Verwenden Sie dieses Tool, um zu sehen, in welchen Regionen/Städten ein Keyword relativ beliebter ist.

Eingaben:

  • phrase (erforderlich)

  • region (optional, Standard REGION_ALL)

  • devices (optional)

Rückgabewerte:

  • results

wordstat_get_regions_tree

Verwenden Sie dieses Tool, um gültige Regions-IDs und Namen für regionale Wordstat-Filter zu erhalten.

Eingaben:

  • keine

Rückgabewerte:

  • regions

Entwicklung

npm install
npm run build
npm run dev

Available Tools

7 tools
wordstat_get_dynamicsB

Get how search frequency changes over time for a keyword (daily, weekly, or monthly).

Inputs: phrase (required), period, fromDate, toDate, +2 more.

wordstat_get_regions_distributionB

Get regional distribution for a keyword: where users search this phrase more often.

Inputs: phrase (required), region, devices.

wordstat_get_regions_treeA

Get the full tree of Wordstat region IDs and names. Useful for choosing region filters.

Inputs: no named parameters.

wordstat_get_topB

Get popular and related search queries for a keyword using Yandex Wordstat.

Inputs: phrase (required), numPhrases, regions, devices.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: web search, image search, generative answer, and four distinct Wordstat analytics functions. No overlap or confusion between tools.

    Naming Consistency5/5

    All tool names follow snake_case with a consistent verb_noun pattern. The three search tools use 'search' as noun, and the four Wordstat tools use 'wordstat_get_<feature>'.

    Tool Count5/5

    7 tools is an ideal scope for a Yandex Search API server, covering core search types and keyword research without being overwhelming or insufficient.

    Completeness4/5

    The tool set covers web search, image search, generative search, and comprehensive Wordstat analytics. Minor gaps like video or news search exist but are not essential for the server's stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables keyword research and search trend analysis for the Russian market through Yandex Wordstat API. Provides access to popular search queries, search volume dynamics over time, and regional distribution data.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform real-time web searches and retrieve AI-generated answers using the Yandex Search API. It provides tools for accessing up-to-date internet information with support for both raw search results and summarized content via the Yazeka model.
      50
      -
    • A
      license
      B
      quality
      B
      maintenance
      Enables SEO and AI-search visibility analysis for Russian websites through Yandex APIs, including keyword research from Wordstat, live SERP results, position tracking with history, technical audits, content briefs, and checks of AI search citations.
      22
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables collecting real Yandex Wordstat v2 data and running managed semantic-core research workflows, including query frequencies, regional demand, dynamics, and AI-assisted cleaning, intent labeling, clustering, and reporting.
      5
      MIT