yandex-searchapi-mcp

yandex-searchapi-mcp

Provides tools for web, image, generative search, and Wordstat keyword statistics via Yandex Search API.

Category
Visit Server

README

Yandex Search.API MCP Server

MCP server for Yandex Search API over REST with 7 tools:

  • web_search
  • image_search
  • generative_search
  • wordstat_get_top
  • wordstat_get_dynamics
  • wordstat_get_regions_distribution
  • wordstat_get_regions_tree

The server reads credentials from MCP client env config:

  • FOLDER_ID
  • API_KEY

For local development, .env is loaded automatically.

Features

  • Uses only REST endpoints (/v2/web/search, /v2/image/search, /v2/gen/search, Wordstat REST paths)
  • Minimal tool inputs by default to keep model context compact
  • searchType is available for all relevant tools and defaults to SEARCH_TYPE_COM
  • Web search always forces responseFormat: FORMAT_XML
  • Web/image tools decode rawData from Base64 and parse XML into structured groups
  • Error handling with clear API status and details

Install

npm install yandex-searchapi-mcp

MCP client config example

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

Tools

web_search

Use 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:
    • url
    • title
    • language
    • passages
  • requestId
  • found

Note: for web search this input is mapped to groupSpec.groupsOnPage on the upstream API.

image_search

Use 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:
    • url
    • extras.image-properties (if present)
  • requestId
  • found

generative_search

Use 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):

  • message
  • sources
  • searchQueries
  • fixedMisspellQuery
  • isAnswerRejected
  • isBulletAnswer
  • hints
  • problematicAnswer

wordstat_get_top

Use 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:

  • totalCount
  • results
  • associations

wordstat_get_dynamics

Use 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:

  • results

wordstat_get_regions_distribution

Use 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:

  • results

wordstat_get_regions_tree

Use this tool to get valid region IDs and names for regional Wordstat filters.

Inputs:

  • none

Returns:

  • regions

Development

npm install
npm run build
npm run dev

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured