Yandex MCP

Open source · MIT · Node.js 22+

MCP servers for Yandex Search, Wordstat, Webmaster, Metrika and Direct

Five MCP servers, 94 tools: give Claude, Cursor or Codex access to Yandex Search, Wordstat, Webmaster, Metrika and Direct. Run with npx, MIT.

Get started Read the docsView on GitHub

What it does

Install

Paste this into a terminal. It starts the Webmaster server on stdin; the same npx command is what every client block below runs.

YANDEX_WEBMASTER_TOKEN=your-oauth-token npx -y @stufently/yandex-webmaster-mcp

Node.js >= 22 is the only prerequisite — no clone, no Bun, no build step. Swap the package and the variables for another server:

ServerCommandVariables it needs
Searchnpx -y @stufently/yandex-search-mcpYANDEX_SEARCH_API_KEY, YANDEX_FOLDER_ID
Wordstatnpx -y @stufently/yandex-wordstat-mcpWORDSTAT_API_KEY, WORDSTAT_FOLDER_ID
Webmasternpx -y @stufently/yandex-webmaster-mcpYANDEX_WEBMASTER_TOKEN
Metrikanpx -y @stufently/yandex-metrika-mcpYANDEX_METRIKA_TOKEN
Directnpx -y @stufently/yandex-direct-mcpYANDEX_DIRECT_TOKEN (+ optional YANDEX_DIRECT_CLIENT_LOGIN, YANDEX_DIRECT_SANDBOX)

All five servers start without their variables and fail only on the first tool call, with an error that names the missing variable.

Append a version (@stufently/yandex-webmaster-mcp@2.2.1) to pin it instead of taking the latest release on every start. The OAuth helper runs the same way: npx -y @stufently/yandex-webmaster-mcp auth (and @stufently/yandex-metrika-mcp auth).

Do not npx the unscoped names — they belong to a different publisher (see the note above).

Example prompts

FAQ

How do I install Yandex MCP?

No clone or build is needed. With Node.js 22 or newer, run a server with npx, for example YANDEX_WEBMASTER_TOKEN=your-oauth-token npx -y @stufently/yandex-webmaster-mcp, and register the same command in your MCP client.

Which Yandex APIs are covered?

Five servers: Yandex Search API v2, Wordstat (Cloud Search API v2), Webmaster API v4, Metrika API and Direct API v5 — 94 tools in total.

Which AI clients does it work with?

Any MCP client over stdio. The README has ready configs for Claude Code, Claude Desktop, Cursor, Windsurf, Zed and Codex; Claude Code is verified in daily use.

Why must I use the @stufently/ package names?

The unscoped names such as yandex-webmaster-mcp on npm belong to a different publisher. Running them with your Yandex tokens in the environment hands those tokens to unrelated code, so always type the @stufently/ prefix.

Can the Direct server change my live ad account?

Yes. Every Direct write hits the production account. The fourteen irreversible tools refuse unless the call passes confirm: true, and YANDEX_DIRECT_SANDBOX=true points the server at the Direct sandbox for experiments.

Which tokens do I need?

Only the ones for the servers you enable: an API key and folder ID from Yandex Cloud for Search and Wordstat, and OAuth tokens for Webmaster, Metrika and Direct. Each server starts without them and names the missing variable on the first tool call.

Documentation pages