# Yandex Wordstat MCP

Hooks Yandex Wordstat into your coding agent: query volume, demand trends and regional search data for Russian and CIS markets.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: stufently
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/stufently/yandex-mcp/tree/HEAD/packages/yandex-wordstat-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/yandex-wordstat-mcp

## What it does

The server talks to Yandex Cloud Search API v2 and authenticates with a service account API key. Yandex shut down the old `api.wordstat.yandex.net` endpoint in 2026, so an OAuth token is no longer an option. Tool names and their parameters stayed the same.

Five tools ship with it. `top-requests` returns popular queries containing your keyword for the last 30 days along with related phrases; `dynamics` charts volume by day, week or month; `regions` breaks interest down by region and adds an affinity index. The region tree is pulled once per session and cached, and `get-region-children` answers straight from that cache without an API call. A sliding-window limit of 10 requests per second queues anything above it, while 429 and 5xx replies are retried with exponential backoff.

Two environment variables are required: `WORDSTAT_API_KEY` and `WORDSTAT_FOLDER_ID`. You get the key in the Yandex Cloud console from a service account holding the `search-api.webSearch.user` role and the `yc.search-api.execute` scope; a billing account has to be linked to the cloud. No key means the server will not start. Date handling in `dynamics` is the fiddly part: `daily` needs a start date inside the last 60 days, `weekly` a Monday, `monthly` the first of a month. Out-of-range dates are not rejected — they get snapped to the nearest valid window, and every shift shows up in `adjustments`.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `WORDSTAT_API_KEY`, `WORDSTAT_FOLDER_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add yandex-wordstat-mcp -e WORDSTAT_API_KEY=<WORDSTAT_API_KEY> -e WORDSTAT_FOLDER_ID=<WORDSTAT_FOLDER_ID> -- npx -y @stufently/yandex-wordstat-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add yandex-wordstat-mcp --env WORDSTAT_API_KEY=<WORDSTAT_API_KEY> --env WORDSTAT_FOLDER_ID=<WORDSTAT_FOLDER_ID> -- npx -y @stufently/yandex-wordstat-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "yandex-wordstat-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@stufently/yandex-wordstat-mcp"
            ],
            "env": {
                "WORDSTAT_API_KEY": "<WORDSTAT_API_KEY>",
                "WORDSTAT_FOLDER_ID": "<WORDSTAT_FOLDER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "yandex-wordstat-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@stufently/yandex-wordstat-mcp"
            ],
            "env": {
                "WORDSTAT_API_KEY": "<WORDSTAT_API_KEY>",
                "WORDSTAT_FOLDER_ID": "<WORDSTAT_FOLDER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e WORDSTAT_API_KEY=<WORDSTAT_API_KEY> -e WORDSTAT_FOLDER_ID=<WORDSTAT_FOLDER_ID> yandex-wordstat-mcp npx -y @stufently/yandex-wordstat-mcp
```
Replace <…> with your own values

## When to use it
- build a Russian-language keyword list for a site
- see how demand for a product moved over the year
- find which regions search a term most often
- pull related queries around a single phrase
- compare volume across desktop, phone and tablet

## Example prompts
- Show the top 100 queries containing "flower delivery" for the last 30 days
- Chart monthly demand for "electric scooter" over the past year
- Break down interest in "apartment renovation" by region with the affinity index

## Similar
- [New-Term Radar](https://affpapa.org/en/nevibecode/mcp/new-term-radar.md) — MCP server · ★ 1766
- [NotFair](https://affpapa.org/en/nevibecode/mcp/notfair.md) — MCP server · ★ 4055
- [seo-monster](https://affpapa.org/en/nevibecode/mcp/seo-monster.md) — MCP server · ★ 553
- [Google Maps MCP Server](https://affpapa.org/en/nevibecode/mcp/google-maps-mcp-server.md) — MCP server · ★ 479
- [Search Console MCP](https://affpapa.org/en/nevibecode/mcp/search-console-mcp.md) — MCP server · ★ 308
- [squirrelscan](https://affpapa.org/en/nevibecode/mcp/squirrelscan.md) — MCP server · ★ 296

From the same set: [stufently/yandex-mcp](https://affpapa.org/en/nevibecode/by/stufently/yandex-mcp.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
