npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yandex-searchapi-mcp

v0.1.1

Published

MCP server for Yandex Search API (web, image, generative, wordstat).

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