yandex-searchapi-mcp
Yandex Search.API MCP 服务器
用于通过 REST 调用 Yandex Search API 的 MCP 服务器,包含 7 个工具:
web_searchimage_searchgenerative_searchwordstat_get_topwordstat_get_dynamicswordstat_get_regions_distributionwordstat_get_regions_tree
服务器从 MCP 客户端环境变量配置中读取凭据:
FOLDER_IDAPI_KEY
对于本地开发,.env 文件会自动加载。
功能特性
仅使用 REST 端点(
/v2/web/search、/v2/image/search、/v2/gen/search以及 Wordstat REST 路径)默认最小化工具输入,以保持模型上下文简洁
searchType可用于所有相关工具,默认为SEARCH_TYPE_COM网页搜索始终强制使用
responseFormat: FORMAT_XML网页/图片工具会对
rawData进行 Base64 解码,并将 XML 解析为结构化分组具备清晰的 API 状态和详细信息的错误处理机制
Related MCP server: Yandex Search MCP Server
安装
npm install yandex-searchapi-mcpMCP 客户端配置示例
{
"mcpServers": {
"yandex-searchapi": {
"command": "npx",
"args": ["-y", "yandex-searchapi-mcp"],
"env": {
"FOLDER_ID": "your-folder-id",
"API_KEY": "your-api-key"
}
}
}
}工具
web_search
当你需要经典的网页搜索结果(链接 + 摘要)而非生成式答案时,请使用此工具。
输入:
query(必填)searchType(可选,默认SEARCH_TYPE_COM)page(可选)docsOnPage(可选)familyMode(可选)fixTypoMode(可选)
返回:
groups[],其中包含documents[],每个文档包含:urltitlelanguagepassages
requestIdfound
注意:对于网页搜索,此输入映射到上游 API 的 groupSpec.groupsOnPage。
image_search
当你需要图片搜索结果和图片元数据(缩略图/原始链接及尺寸)时,请使用此工具。
输入:
query(必填)searchType(可选,默认SEARCH_TYPE_COM)page(可选)site(可选)docsOnPage(可选)imageSpec(可选:format,size,orientation,color)
返回:
groups[],其中包含documents[],每个文档包含:urlextras.image-properties(如果存在)
requestIdfound
generative_search
当你需要从搜索结果中合成的、可直接使用的基础答案时,请使用此工具。
输入:
query(必填)searchType(可选,默认SEARCH_TYPE_COM)fixMisspell(可选)getPartialResults(可选)scope(可选):{ type: "site" | "host" | "url", values: string[] }
仅返回核心生成字段(不包含包装对象):
messagesourcessearchQueriesfixedMisspellQueryisAnswerRejectedisBulletAnswerhintsproblematicAnswer
wordstat_get_top
使用此工具了解用户围绕某个关键词搜索的相关查询。
输入:
phrase(必填)numPhrases(可选,默认20)regions(可选)devices(可选)
返回:
totalCountresultsassociations
wordstat_get_dynamics
使用此工具跟踪关键词随时间的需求趋势。
输入:
phrase(必填)period(可选,默认PERIOD_WEEKLY)fromDate(可选,默认now-30d,ISO 日期时间)toDate(可选,默认now,ISO 日期时间)regions(可选)devices(可选)
返回:
results
wordstat_get_regions_distribution
使用此工具查看关键词在哪些地区/城市相对更受欢迎。
输入:
phrase(必填)region(可选,默认REGION_ALL)devices(可选)
返回:
results
wordstat_get_regions_tree
使用此工具获取用于区域 Wordstat 过滤器的有效区域 ID 和名称。
输入:
无
返回:
regions
开发
npm install
npm run build
npm run devAvailable Tools
7 toolsgenerative_searchA
Generate an answer grounded in web search results, with optional source restrictions (site/host/url).
Inputs: query (required), searchType, fixMisspell, getPartialResults, +1 more.
image_searchA
Search images by text query. Returns grouped image documents and image metadata like thumbnail/original links.
Inputs: query (required), searchType, page, site, +2 more.
web_searchA
Search web pages by text query. Returns grouped documents with URL, title, language, and snippet passages.
Inputs: query (required), searchType, page, docsOnPage, +2 more.
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
Scored across 7 tools
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.
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>'.
7 tools is an ideal scope for a Yandex Search API server, covering core search types and keyword research without being overwhelming or insufficient.
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
Related MCP Connectors
Web search, AI agent, and content extraction via You.com APIs
Web knowledge fetching tools for your agent.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
SEO & GEO data: keywords, live SERPs with AI Overviews, backlinks, site audits, rank tracking.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables 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.-

Yandex Search MCP Serverofficial
FlicenseNot gradedqualityDmaintenanceEnables 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-- AlicenseBqualityBmaintenanceEnables 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.222MIT
- AlicenseAqualityCmaintenanceEnables 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.5MIT