yandex-wordstat-mcp by nikolaymokh-dev

yandex-wordstat-mcp

A Wordstat MCP server via the Yandex Search API that estimates and tracks request cost before and after each call

MCP server

Low risk

We rate an entry low when it mostly gives the agent instructions and reference material.

Why this level

  • Only reads search query statistics, changes nothing in accounts
  • Requests are billed, but the server itself provides spend-tracking tools before and after calls
All reasons and checks
Russian stack

nikolaymokh-dev/yandex-wordstat-mcp

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/nikolaymokh-dev-yandex-wordstat-mcp

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Assembled automatically, review before installing.

Run in a terminal

claude mcp add --transport stdio --env 'YANDEX_SEARCH_API_KEY=<your YANDEX_SEARCH_API_KEY>' --env 'YANDEX_FOLDER_ID=<your YANDEX_FOLDER_ID>' yandex-wordstat -- uvx --from git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp yandex-wordstat-mcp

Or add to the file .mcp.json, in the project

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Install in Cursor

The button opens the agent and offers to add the server. If nothing happens, copy the config below.

Add to the file ~/.cursor/mcp.json, for all projects

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key. For a single project, put the same block into .cursor/mcp.json.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Install in VS Code

The button opens the agent and offers to add the server. If nothing happens, copy the config below.

Run in a terminal

code --add-mcp '{"name":"yandex-wordstat","type":"stdio","command":"uvx","args":["--from","git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp","yandex-wordstat-mcp"],"env":{"YANDEX_SEARCH_API_KEY":"<your YANDEX_SEARCH_API_KEY>","YANDEX_FOLDER_ID":"<your YANDEX_FOLDER_ID>"}}'

Or add to the file .vscode/mcp.json, in the project

{
  "servers": {
    "yandex-wordstat": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the servers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Run in a terminal

codex mcp add yandex-wordstat --env 'YANDEX_SEARCH_API_KEY=<your YANDEX_SEARCH_API_KEY>' --env 'YANDEX_FOLDER_ID=<your YANDEX_FOLDER_ID>' -- uvx --from git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp yandex-wordstat-mcp

Or add to the file ~/.codex/config.toml, for all projects

[mcp_servers.yandex-wordstat]
command = "uvx"
args = ["--from", "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp", "yandex-wordstat-mcp"]
env = { YANDEX_SEARCH_API_KEY = "<your YANDEX_SEARCH_API_KEY>", YANDEX_FOLDER_ID = "<your YANDEX_FOLDER_ID>" }

If the file already exists, append the block to the end.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Add to the file ~/.gemini/settings.json, for all projects

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Add to the file ~/.config/devin/mcp_config.json, for all projects

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key. Legacy Cascade keeps the MCP config in ~/.codeium/windsurf/mcp_config.json.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Formerly Windsurf.

Add to the file cline_mcp_settings.json, for all projects

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key. Open the settings file in Cline: MCP Servers tab, Configure MCP Servers.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Add to the file .roo/mcp.json, in the project

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

A fork of Roo Code, same .roo folders.

Add to the file opencode.json, in the project

{
  "mcp": {
    "yandex-wordstat": {
      "type": "local",
      "command": [
        "uvx",
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "environment": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcp key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Add to the file ~/.config/zed/settings.json, for all projects

{
  "context_servers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the context_servers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

Add to the file .codeassistant/mcp.json, in the project

{
  "mcpServers": {
    "yandex-wordstat": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp",
        "yandex-wordstat-mcp"
      ],
      "env": {
        "YANDEX_SEARCH_API_KEY": "<your YANDEX_SEARCH_API_KEY>",
        "YANDEX_FOLDER_ID": "<your YANDEX_FOLDER_ID>"
      }
    }
  }
}

If the file already exists, add the server inside the mcpServers key.

Keys and settings

YANDEX_SEARCH_API_KEYsecret, required
API-ключ Yandex Cloud для Search API
YANDEX_FOLDER_IDsecret, required
ID каталога (folder ID) в Yandex Cloud

Replace the values in angle brackets with your own. Keys never go into install links and are not stored by us.

You will need: uv

Checked against the repository on Sep 26, 2026, commit 526959d.

Text for your agent

Add the server with claude mcp add yandex-wordstat --env YANDEX_SEARCH_API_KEY=<key> --env YANDEX_FOLDER_ID=<id> -- uvx --from git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp yandex-wordstat-mcp, then check wordstat_cost_estimate before a bulk run.

Other ways from the author
claude mcp add yandex-wordstat --env YANDEX_SEARCH_API_KEY=<ваш-API-ключ> --env YANDEX_FOLDER_ID=<ваш-folder-id> -- uvx --from git+https://github.com/nikolaymokh-dev/yandex-wordstat-mcp yandex-wordstat-mcp

The README's command: installs and runs the server straight from Git via uvx, no cloning needed.

This is third-party code. Review the repository files before installing.

What it does

A thin wrapper over the Wordstat methods of the Yandex Search API: top queries with related phrases, frequency dynamics by month/week/day, regional distribution with an affinity index, and the region code tree. Separately from Wordstat itself, the server keeps a local call log and offers two cost-tracking tools: wordstat_cost_report for a summary of actual spend, and wordstat_cost_estimate to price a batch of requests before the agent sends them.

Who it is for. For anyone who wants visibility into paid Search API spend both before and after an agent makes requests.

Good fit when

  • You need Wordstat frequency and dynamics with transparent cost tracking
  • You want to price a batch of requests before a large keyword-collection run
  • You want a one-line uvx install straight from GitHub, no cloning

Not a fit when

  • You have no card attached to Yandex Cloud billing: without it the Search API often returns 403
  • You need tools beyond the four Wordstat API methods

Example request

Estimate how much it would cost to check yearly dynamics for 50 phrases before running it

Limitations

Requires a card attached to Yandex Cloud billing (even with no real spend), a key with the yc.search-api.execute scope, and the search-api.webSearch.user role. Secrets are read from the environment at launch only; a local .env file is not picked up automatically.

How to disable. Run claude mcp remove yandex-wordstat, or remove the server entry from your client config.

MCP

Transport
stdio
Authentication
API key
Environment variables
Environment variables
YANDEX_SEARCH_API_KEY
required, secret
Yandex Cloud API key with the yc.search-api.execute scope.
YANDEX_FOLDER_ID
required
Yandex Cloud folder ID from the console, part of the URL after /folders/.

Security check

  • Only reads search query statistics, changes nothing in accounts
  • Requests are billed, but the server itself provides spend-tracking tools before and after calls

README in short

The Russian README describes a one-command uvx install straight from GitHub, a step-by-step Yandex Cloud setup with card binding and role assignment, a tool table including two extra cost-tracking tools, and a table of common 401/403 errors.

FAQ

Why does the Search API return 403?

Usually there's no card attached to Yandex Cloud billing, or the key has the wrong scope, the README covers both cases.

How do I see how much I've already spent?

The wordstat_cost_report tool summarizes spend from the local call log.

Official

Official DataLens (Yandex) skills for Claude Code, Codex and OpenCode: SDK, HTML reports and RLS resolution

SkillMedium riskRussian stackNo VPN needed12Repository stars
Editors’ pick

A Yandex Metrika MCP server generated from the API spec: 108 methods, 10 tools declared by default, transparent filters and response metadata

MCP serverMedium riskRussian stackNo VPN needed2Repository stars
Official

An open MCP server and agent skill set for SEO: keyword research, competitors, backlinks and site audits powered by DataForSEO

MCP serverMedium risk21.5KRepository stars

A Claude Code plugin for SEO audits: technical SEO, E-E-A-T, schema, local and AI search via parallel subagents

PluginHigh risk17.9KRepository stars
Foxx AIyandex-wordstat-mcp by nikolaymokh-dev

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.