loading…
Search for a command to run...
loading…
Provides tools for web, image, generative search, and Wordstat keyword statistics via Yandex Search API.
Provides tools for web, image, generative search, and Wordstat keyword statistics via Yandex Search API.
MCP server for Yandex Search API over REST with 7 tools:
web_searchimage_searchgenerative_searchwordstat_get_topwordstat_get_dynamicswordstat_get_regions_distributionwordstat_get_regions_treeThe server reads credentials from MCP client env config:
FOLDER_IDAPI_KEYFor local development, .env is loaded automatically.
/v2/web/search, /v2/image/search, /v2/gen/search, Wordstat REST paths)searchType is available for all relevant tools and defaults to SEARCH_TYPE_COMresponseFormat: FORMAT_XMLrawData from Base64 and parse XML into structured groupsnpm 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"
}
}
}
}
web_searchUse this tool when you need classic web search results (links + snippets), not a generated answer.
Inputs:
query (required)searchType (optional, default SEARCH_TYPE_COM)page (optional)docsOnPage (optional)familyMode (optional)fixTypoMode (optional)Returns:
groups[] with documents[] where each document contains:urltitlelanguagepassagesrequestIdfoundNote: for web search this input is mapped to groupSpec.groupsOnPage on the upstream API.
image_searchUse this tool when you need image search results and image metadata (thumbnail/original links and dimensions).
Inputs:
query (required)searchType (optional, default SEARCH_TYPE_COM)page (optional)site (optional)docsOnPage (optional)imageSpec (optional: format, size, orientation, color)Returns:
groups[] with documents[] where each document contains:urlextras.image-properties (if present)requestIdfoundgenerative_searchUse this tool when you need a ready-to-use grounded answer synthesized from search results.
Inputs:
query (required)searchType (optional, default SEARCH_TYPE_COM)fixMisspell (optional)getPartialResults (optional)scope (optional): { type: "site" | "host" | "url", values: string[] }Returns only core generative fields (without wrapper objects):
messagesourcessearchQueriesfixedMisspellQueryisAnswerRejectedisBulletAnswerhintsproblematicAnswerwordstat_get_topUse this tool to understand what related queries users search for around a keyword.
Inputs:
phrase (required)numPhrases (optional, default 20)regions (optional)devices (optional)Returns:
totalCountresultsassociationswordstat_get_dynamicsUse this tool to track demand trends over time for a keyword.
Inputs:
phrase (required)period (optional, default PERIOD_WEEKLY)fromDate (optional, default now-30d, ISO datetime)toDate (optional, default now, ISO datetime)regions (optional)devices (optional)Returns:
resultswordstat_get_regions_distributionUse this tool to see in which regions/cities a keyword is relatively more popular.
Inputs:
phrase (required)region (optional, default REGION_ALL)devices (optional)Returns:
resultswordstat_get_regions_treeUse this tool to get valid region IDs and names for regional Wordstat filters.
Inputs:
Returns:
regionsnpm install
npm run build
npm run dev
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"yandex-searchapi-mcp": {
"command": "npx",
"args": []
}
}
}