generative_search
Generate an answer grounded in web search results, with optional source restrictions (site/host/url).
Search the web and images, get an answer grounded in those results, and read demand for a phrase — by region, by device and over a date range.
LABSCO SUMMARY
The Wordstat half is what distinguishes this: wordstat_get_dynamics returns a phrase's frequency between two dates at daily, weekly or monthly granularity and wordstat_get_regions_distribution splits the same phrase geographically, which is demand data a plain search API does not carry at all. Because devices and regions run through every Wordstat call, wordstat_get_regions_tree is worth calling once up front rather than passing a region ID on trust and reading a distribution that quietly covers the wrong place.
A Yandex Search API client with 7 tools: web search, image search, a generative answer grounded in search results, and the Wordstat demand tools wordstat_get_top, wordstat_get_dynamics, wordstat_get_regions_distribution and wordstat_get_regions_tree.
A Yandex Cloud API key in API_KEY and the folder that key belongs to in FOLDER_ID. Region filters are supplied per call rather than configured once, and wordstat_get_regions_tree is the tool that returns the IDs those filters expect.
One command plus a key — npm install yandex-searchapi-mcp, then supply credentials
USE CASES
See what people actually type around the phrase, whether interest is rising or seasonal, and which regions carry it.
Restrict the grounding to a site, host or URL you trust, and read the underlying results when the generated answer needs checking.
Pull the region tree first so the IDs are real, then run the distribution and the related-query list against them.
Read the text results as they come back, then look at what the same query returns in images and from which sites.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generative_searchGenerate an answer grounded in web search results, with optional source restrictions (site/host/url).
image_searchSearch images by text query. Returns grouped image documents and image metadata like thumbnail/original links.
web_searchSearch web pages by text query. Returns grouped documents with URL, title, language, and snippet passages.
wordstat_get_dynamicsGet how search frequency changes over time for a keyword (daily, weekly, or monthly).
wordstat_get_regions_distributionGet regional distribution for a keyword: where users search this phrase more often.
wordstat_get_regions_treeGet the full tree of Wordstat region IDs and names. Useful for choosing region filters.
wordstat_get_topGet popular and related search queries for a keyword using Yandex Wordstat.
BEFORE YOU INSTALL
7 tools when we connected. Three tools search (web, image, generative); four Wordstat tools report keyword demand. All read. searchType defaults to SEARCH_TYPE_COM.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npm install yandex-searchapi-mcp{
"mcpServers": {
"yandex-searchapi": {
"command": "npx",
"args": [
"-y",
"yandex-searchapi-mcp"
],
"env": {
"FOLDER_ID": "<YOUR_FOLDER_ID>",
"API_KEY": "<YOUR_API_KEY>"
}
}
}
}