Skip to main content
Glama

Yandex MCP

Unofficial project, not affiliated with or endorsed by Yandex. "Yandex" and the names of its services are trademarks of their owner and are used here only to describe which APIs the servers talk to.

A monorepo of MCP (Model Context Protocol) servers for Yandex APIs. Provides AI assistants with access to Yandex Search, Wordstat, Webmaster, Metrika, and Direct through a unified interface.

Built for Russian and CIS market analysis -- keyword research, search analytics, site monitoring, web traffic insights, and ad campaign management.

Packages

Package

Description

Tools

yandex-search-mcp

Yandex Search API v2 (Cloud)

1

yandex-wordstat-mcp

Yandex Wordstat (Cloud Search API v2) -- keyword research

5

yandex-webmaster-mcp

Yandex Webmaster API v4 -- site analytics

33

yandex-metrika-mcp

Yandex Metrika API -- web analytics

12

yandex-direct-mcp

Yandex Direct API v5 -- ad campaigns

43

94 tools total across all packages (counted by node scripts/smoke-tools.mjs).

Package names. The packages go to npm under the @stufently/* scope (@stufently/yandex-webmaster-mcp and so on), starting with v2.2.0. The unscoped names — yandex-search-mcp, yandex-wordstat-mcp, yandex-webmaster-mcp, yandex-metrika-mcp — belong to a different publisher on the public registry (altrr2, altrr2/yandex-tools-mcp, first published 2025-12-20, three months before this repo existed). Never npx an unscoped name with your Yandex tokens in the environment: that hands your credentials to unrelated code. Always type the @stufently/ prefix.

Related MCP server: yandex-mcp

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:

Server

Command

Variables it needs

Search

npx -y @stufently/yandex-search-mcp

YANDEX_SEARCH_API_KEY, YANDEX_FOLDER_ID

Wordstat

npx -y @stufently/yandex-wordstat-mcp

WORDSTAT_API_KEY, WORDSTAT_FOLDER_ID

Webmaster

npx -y @stufently/yandex-webmaster-mcp

YANDEX_WEBMASTER_TOKEN

Metrika

npx -y @stufently/yandex-metrika-mcp

YANDEX_METRIKA_TOKEN

Direct

npx -y @stufently/yandex-direct-mcp

YANDEX_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.3.0) 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).

Verified clients and platforms

Only what has actually been run is listed as verified. Everything else in Client Configuration is a documented config that nobody has checked end to end.

Client / runtime

OS

How it runs

Status

Evidence

Claude Code 2.1

Ubuntu 26.04 LTS, x86_64

Node.js 24 from a checkout, stdio: yandex-direct, yandex-wordstat, yandex-webmaster

Verified

Daily use on the maintainer's host

Codex CLI 0.162

Ubuntu 26.04 LTS, x86_64

Node.js 24 from a checkout: yandex-wordstat, yandex-webmaster

Configured, not checked separately

Maintainer's host config

Node.js 22 + Bun

Ubuntu (ubuntu-latest)

Unit tests; all five servers answer tools/list over stdio

Verified in CI

ci.yml (node --test, scripts/smoke-tools.mjs)

yandex-metrika, yandex-search with a real token

any

—

Not verified in a client

CI smoke test only

npx @stufently/* from npm

Ubuntu, node:24-alpine

npx -y @stufently/yandex-*-mcp, stdio

Verified

All five answer tools/list from the published 2.2.0 packages (2026-10-15)

Claude Desktop (.mcpb), Claude Code plugin

any

Desktop Extension, plugin

Not verified

Bundles are built in CI, never installed in a real Desktop or as a plugin

Cursor, Windsurf, Zed

any

Configs below

Not verified

Documented only

macOS, Windows

—

Any client

Not verified

No CI runner on these systems

Client Configuration

Every block registers all five servers; drop the ones you do not need. Values are placeholders — see Environment Variables for where each one comes from. command is the same npx as in the terminal snippet above.

Claude Code

Project file: .mcp.json in the project root (Claude Code also reads a user-level config; this block is the project file).

{
  "mcpServers": {
    "yandex-search": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-search-mcp"],
      "env": {
        "YANDEX_SEARCH_API_KEY": "your-cloud-api-key",
        "YANDEX_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-wordstat": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-wordstat-mcp"],
      "env": {
        "WORDSTAT_API_KEY": "your-cloud-api-key",
        "WORDSTAT_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-webmaster": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-webmaster-mcp"],
      "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" }
    },
    "yandex-metrika": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-metrika-mcp"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    },
    "yandex-direct": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-direct-mcp"],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-oauth-token",
        "YANDEX_DIRECT_CLIENT_LOGIN": "",
        "YANDEX_DIRECT_SANDBOX": "true"
      }
    }
  }
}

Or from the terminal, one server at a time:

claude mcp add yandex-search --scope user \
  --env YANDEX_SEARCH_API_KEY=your-cloud-api-key --env YANDEX_FOLDER_ID=your-folder-id \
  -- npx -y @stufently/yandex-search-mcp
claude mcp add yandex-wordstat --scope user \
  --env WORDSTAT_API_KEY=your-cloud-api-key --env WORDSTAT_FOLDER_ID=your-folder-id \
  -- npx -y @stufently/yandex-wordstat-mcp
claude mcp add yandex-webmaster --scope user \
  --env YANDEX_WEBMASTER_TOKEN=your-oauth-token \
  -- npx -y @stufently/yandex-webmaster-mcp
claude mcp add yandex-metrika --scope user \
  --env YANDEX_METRIKA_TOKEN=your-oauth-token \
  -- npx -y @stufently/yandex-metrika-mcp
claude mcp add yandex-direct --scope user \
  --env YANDEX_DIRECT_TOKEN=your-oauth-token \
  -- npx -y @stufently/yandex-direct-mcp

Check with claude mcp list. The plugin does the same in two commands and also installs the bundled skills.

Claude Desktop

File: claude_desktop_config.json — macOS ~/Library/Application Support/Claude/claude_desktop_config.json, Windows %APPDATA%\Claude\claude_desktop_config.json, Linux ~/.config/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "yandex-search": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-search-mcp"],
      "env": {
        "YANDEX_SEARCH_API_KEY": "your-cloud-api-key",
        "YANDEX_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-wordstat": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-wordstat-mcp"],
      "env": {
        "WORDSTAT_API_KEY": "your-cloud-api-key",
        "WORDSTAT_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-webmaster": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-webmaster-mcp"],
      "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" }
    },
    "yandex-metrika": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-metrika-mcp"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    },
    "yandex-direct": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-direct-mcp"],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-oauth-token",
        "YANDEX_DIRECT_CLIENT_LOGIN": "",
        "YANDEX_DIRECT_SANDBOX": "true"
      }
    }
  }
}

One click, without editing JSON: download the .mcpb file for the server you want from https://github.com/stufently/yandex-mcp/releases/latest and open it. Claude Desktop installs the extension and asks for the token. Each server is its own file (yandex-search-mcp, yandex-wordstat-mcp, yandex-webmaster-mcp, yandex-metrika-mcp, yandex-direct-mcp). That path works before the npm packages are published. YANDEX_DIRECT_SANDBOX set to true points Direct at the sandbox; leave it false for real campaigns. Restart the app after a manual edit.

Each release includes checksums.txt with the SHA256 checksum of every .mcpb bundle. Download it alongside your bundle and verify the download before opening it:

sha256sum -c --ignore-missing checksums.txt   # run next to the downloaded .mcpb

Releases from the next tag on also carry a GitHub build provenance attestation for each .mcpb, signed in the release workflow. Check that a bundle was built by this repository's workflow and not swapped afterwards (needs the GitHub CLI):

gh attestation verify <bundle>.mcpb --repo stufently/yandex-mcp

Cursor

Add yandex-search MCP server to Cursor yandex-search

Add yandex-wordstat MCP server to Cursor yandex-wordstat

Add yandex-webmaster MCP server to Cursor yandex-webmaster

Add yandex-metrika MCP server to Cursor yandex-metrika

Add yandex-direct MCP server to Cursor yandex-direct

Each button installs one server; replace the your-… placeholders in ~/.cursor/mcp.json afterwards. Or add the block below by hand.

File: ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project).

{
  "mcpServers": {
    "yandex-search": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-search-mcp"],
      "env": {
        "YANDEX_SEARCH_API_KEY": "your-cloud-api-key",
        "YANDEX_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-wordstat": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-wordstat-mcp"],
      "env": {
        "WORDSTAT_API_KEY": "your-cloud-api-key",
        "WORDSTAT_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-webmaster": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-webmaster-mcp"],
      "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" }
    },
    "yandex-metrika": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-metrika-mcp"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    },
    "yandex-direct": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-direct-mcp"],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-oauth-token",
        "YANDEX_DIRECT_CLIENT_LOGIN": "",
        "YANDEX_DIRECT_SANDBOX": "true"
      }
    }
  }
}

Windsurf

File: mcp_config.json — macOS and Linux ~/.config/devin/mcp_config.json (or $XDG_CONFIG_HOME/devin/mcp_config.json), Windows %APPDATA%\devin\mcp_config.json. Older builds used ~/.codeium/windsurf/mcp_config.json; that path is not in the current docs.

{
  "mcpServers": {
    "yandex-search": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-search-mcp"],
      "env": {
        "YANDEX_SEARCH_API_KEY": "your-cloud-api-key",
        "YANDEX_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-wordstat": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-wordstat-mcp"],
      "env": {
        "WORDSTAT_API_KEY": "your-cloud-api-key",
        "WORDSTAT_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-webmaster": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-webmaster-mcp"],
      "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" }
    },
    "yandex-metrika": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-metrika-mcp"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    },
    "yandex-direct": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-direct-mcp"],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-oauth-token",
        "YANDEX_DIRECT_CLIENT_LOGIN": "",
        "YANDEX_DIRECT_SANDBOX": "true"
      }
    }
  }
}

Zed

File: settings.json (command palette: zed: open settings file). The key is context_servers, not mcpServers.

{
  "context_servers": {
    "yandex-search": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-search-mcp"],
      "env": {
        "YANDEX_SEARCH_API_KEY": "your-cloud-api-key",
        "YANDEX_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-wordstat": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-wordstat-mcp"],
      "env": {
        "WORDSTAT_API_KEY": "your-cloud-api-key",
        "WORDSTAT_FOLDER_ID": "your-folder-id"
      }
    },
    "yandex-webmaster": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-webmaster-mcp"],
      "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" }
    },
    "yandex-metrika": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-metrika-mcp"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    },
    "yandex-direct": {
      "command": "npx",
      "args": ["-y", "@stufently/yandex-direct-mcp"],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-oauth-token",
        "YANDEX_DIRECT_CLIENT_LOGIN": "",
        "YANDEX_DIRECT_SANDBOX": "true"
      }
    }
  }
}

Codex

From the shell:

codex mcp add yandex-webmaster --env YANDEX_WEBMASTER_TOKEN=your-oauth-token \
  -- npx -y @stufently/yandex-webmaster-mcp

Or all five in ~/.codex/config.toml:

[mcp_servers.yandex-search]
command = "npx"
args = ["-y", "@stufently/yandex-search-mcp"]
env = { YANDEX_SEARCH_API_KEY = "your-cloud-api-key", YANDEX_FOLDER_ID = "your-folder-id" }

[mcp_servers.yandex-wordstat]
command = "npx"
args = ["-y", "@stufently/yandex-wordstat-mcp"]
env = { WORDSTAT_API_KEY = "your-cloud-api-key", WORDSTAT_FOLDER_ID = "your-folder-id" }

[mcp_servers.yandex-webmaster]
command = "npx"
args = ["-y", "@stufently/yandex-webmaster-mcp"]
env = { YANDEX_WEBMASTER_TOKEN = "your-oauth-token" }

[mcp_servers.yandex-metrika]
command = "npx"
args = ["-y", "@stufently/yandex-metrika-mcp"]
env = { YANDEX_METRIKA_TOKEN = "your-oauth-token" }

[mcp_servers.yandex-direct]
command = "npx"
args = ["-y", "@stufently/yandex-direct-mcp"]
env = { YANDEX_DIRECT_TOKEN = "your-oauth-token" }

Other ways to install

Claude Code plugin

This repo ships as a Claude Code plugin, so you do not have to hand-write five MCP entries. Add the repo as a marketplace and install:

/plugin marketplace add stufently/yandex-mcp
/plugin install yandex-mcp@stufently

Or without the interactive picker:

claude plugin marketplace add stufently/yandex-mcp
claude plugin install yandex-mcp@stufently --scope user

What the plugin gives you over a hand-written MCP config:

Plugin

Manual MCP config

Setup

two commands

edit JSON, restart client

All five servers

registered at once

five entries, one per server

Paths

resolved via ${CLAUDE_PLUGIN_ROOT}

you hardcode absolute paths

Bundled skills

yandex-keyword-research, yandex-competitive-analysis installed too

not included — skills are Claude Code only

Updates

/plugin update yandex-mcp@stufently

git pull and re-check your paths

The plugin asks for the credentials itself. On install (or later with /plugin configure yandex-mcp@stufently) Claude Code shows one field per value; API keys and OAuth tokens are marked sensitive, so Claude Code masks them and keeps them in the system credential store (on Linux, ~/.claude/.credentials.json), not in settings.json. Folder IDs, the Direct client login and the sandbox switch are plain settings under pluginConfigs.

Option

Variable it sets

Sensitive

search_api_key

YANDEX_SEARCH_API_KEY

yes

search_folder_id

YANDEX_FOLDER_ID

no

wordstat_api_key

WORDSTAT_API_KEY

yes

wordstat_folder_id

WORDSTAT_FOLDER_ID

no

webmaster_token

YANDEX_WEBMASTER_TOKEN

yes

metrika_token

YANDEX_METRIKA_TOKEN

yes

direct_token

YANDEX_DIRECT_TOKEN

yes

direct_client_login

YANDEX_DIRECT_CLIENT_LOGIN

no

direct_sandbox

YANDEX_DIRECT_SANDBOX

no

Every option is optional. Servers whose values are missing simply fail on first use; the rest keep working, so you can install the plugin and set up one API at a time.

Already export the variables? Earlier versions of the plugin read them from your shell or from env in ~/.claude/settings.json, and that still works: an option you leave empty does not touch the variable of the same name, so the server sees the value from your environment. A value you do enter wins over the environment. The servers start through scripts/plugin-launch.mjs, which copies each non-empty option onto its variable and then runs the server in the same process.

Docker

The image ghcr.io/stufently/yandex-mcp is published with the next release tag; until then, build it from a clone with docker build -t yandex-mcp ..

One image holds all five servers. The first argument picks the server — search, wordstat, webmaster (the default), metrika or direct — and anything after it goes to the server. Keep -i (MCP talks over stdin) and pass the tokens with -e:

docker run -i --rm -e YANDEX_WEBMASTER_TOKEN ghcr.io/stufently/yandex-mcp webmaster
docker run -i --rm -e YANDEX_DIRECT_TOKEN ghcr.io/stufently/yandex-mcp direct

In a client config, Docker replaces npx. For example, Metrika in Claude Desktop:

{
  "mcpServers": {
    "yandex-metrika": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "YANDEX_METRIKA_TOKEN", "ghcr.io/stufently/yandex-mcp", "metrika"],
      "env": { "YANDEX_METRIKA_TOKEN": "your-oauth-token" }
    }
  }
}

-e NAME without a value forwards the variable from the client's environment, so the token stays out of args. The image runs as the unprivileged node user, and the entrypoint execs the server, so docker stop reaches Node directly. The Wordstat fallback file ~/.config/yandex-cloud/wordstat.env is not visible inside the container — pass WORDSTAT_API_KEY and WORDSTAT_FOLDER_ID with -e. The OAuth helper prints a link and reads the code from stdin, so it works too: docker run -it --rm -e YANDEX_CLIENT_ID -e YANDEX_CLIENT_SECRET ghcr.io/stufently/yandex-mcp webmaster auth.

From source

Needs Node.js >= 22 and Bun on your PATH (the plugin needs Bun too: the repo carries a bun.lock, so Claude Code installs the plugin's dependencies with Bun and does not fall back to npm).

git clone https://github.com/stufently/yandex-mcp.git
cd yandex-mcp
bun install
cp .env.example .env   # then fill it in

For Webmaster and Metrika you can mint an OAuth token with the built-in flow (needs YANDEX_CLIENT_ID / YANDEX_CLIENT_SECRET from your own Yandex OAuth app):

node packages/yandex-webmaster-mcp/src/index.mjs auth
node packages/yandex-metrika-mcp/src/index.mjs auth

Search and Wordstat do not use OAuth: both talk to Yandex Cloud and need a service-account API key plus a folder ID.

The Metrika helper requests metrika:read metrika:write, because create-counter and delete-counter are refused with HTTP 403 by a read-only token. To keep a token that cannot modify anything, narrow the scope explicitly:

YANDEX_METRIKA_SCOPE="metrika:read" node packages/yandex-metrika-mcp/src/index.mjs auth

The two write tools then fail with a 403 that names the missing scope, instead of a bare permission error.

A write-capable token does not mean an unguarded delete: delete-counter refuses unless the call passes confirm: true, and the refusal happens before any request reaches Yandex. See Deleting a counter.

The same rule holds across the monorepo: an operation that cannot be undone through the API it is called with asks for confirm: true first — delete-counter in Metrika, delete-host in Webmaster, and the fourteen delete/update/bid tools in Direct. Additive and reversible writes (create-counter, add-host, add_*, archive and suspend) run without one, so the confirmation stays a signal rather than a reflex. Search and Wordstat are read-only and have nothing to guard.

To use a clone with any client block above, replace the npx command with node and the script path, e.g. for Webmaster:

"command": "node",
"args": ["/path/to/yandex-mcp/packages/yandex-webmaster-mcp/src/index.mjs"]

Inside a clone, the checked-in .mcp.json already registers all five servers for Claude Code from .env, with paths relative to the repo root.

Environment Variables

Variable

Required by

Description

YANDEX_SEARCH_API_KEY

yandex-search-mcp

API key from Yandex Cloud

YANDEX_FOLDER_ID

yandex-search-mcp

Folder ID from Yandex Cloud

WORDSTAT_API_KEY

yandex-wordstat-mcp

Yandex Cloud API key (service account, role search-api.webSearch.user)

WORDSTAT_FOLDER_ID

yandex-wordstat-mcp

Yandex Cloud folder ID for Search API v2

YANDEX_WEBMASTER_TOKEN

yandex-webmaster-mcp

OAuth token for Webmaster

YANDEX_METRIKA_TOKEN

yandex-metrika-mcp

OAuth token for Metrika (metrika:read to read, metrika:write also needed for counter tools)

YANDEX_METRIKA_SCOPE

OAuth flow (optional)

Override requested scopes; default metrika:read metrika:write

YANDEX_DIRECT_TOKEN

yandex-direct-mcp

OAuth token for Direct API v5

YANDEX_DIRECT_CLIENT_LOGIN

yandex-direct-mcp (agencies)

Client login to act on behalf of

YANDEX_DIRECT_SANDBOX

yandex-direct-mcp (optional)

true to hit the Direct sandbox

YANDEX_CLIENT_ID

OAuth flow (optional)

Yandex OAuth app client ID

YANDEX_CLIENT_SECRET

OAuth flow (optional)

Yandex OAuth app client secret

Copy .env.example to .env and fill in the values:

cp .env.example .env

You only need the variables for the servers you actually enable — each server reads its own and ignores the rest.

Example prompts

  • Why did my site lose clicks last week?

  • Which search phrases send the most visits to example.com?

  • How many people search for this phrase on Yandex each month, and is that demand growing?

  • Pause the Direct campaign that spent the most yesterday, then show me its new state.

Common Prompts

Once a server is connected, these are the kinds of requests it can answer. Each example maps onto real tools listed in the per-package READMEs.

yandex-search (1 tool)

  • "Search Yandex for «купить кондиционер» and show me the top 10 results with their domains."

  • "Who ranks on Yandex for «доставка пиццы» in region 2 (Saint Petersburg)? Give positions and titles."

  • "Search yandex.ru for «отзывы о клинике» with strict family mode and pull 20 results."

  • "Get page 2 of Yandex results for «ремонт ноутбуков Москва»."

yandex-wordstat (5 tools)

  • "How many people search «купить ноутбук» on Yandex per month, and what related queries come up?"

  • "Show the monthly trend for «горящие туры» over the last two years — is demand growing?"

  • "Which Russian regions search «кондиционер» the most? Show volume and affinity index for the top 20."

  • "Give me the Yandex region tree down to depth 2 so I can pick region IDs for filtering."

  • "Compare desktop vs phone demand for «доставка еды»."

yandex-webmaster (33 tools)

  • "List my verified sites in Yandex Webmaster with their SQI."

  • "Add https://example.com/sitemap.xml to Webmaster for example.com."

  • "Which pages dropped out of search on example.com recently, and why? Show anything that came back too."

  • "Why did pages drop out of search on example.com? Group the samples by exclusion reason."

  • "What are my top 50 queries by clicks for example.com, and how did positions move?"

  • "Show indexing history for example.com and flag any sudden drop in pages in search."

  • "What site problems does Yandex report for example.com right now?"

  • "Send https://example.com/new-page for recrawl and tell me my remaining daily quota."

  • "Show broken internal links on example.com — and say which of them Yandex has not re-checked in months."

yandex-metrika (12 tools)

  • "Traffic summary for counter 12345678 last month — visits, users, bounce rate, average duration."

  • "Where does my traffic come from? Break it down by source for counter 12345678."

  • "Top 20 landing pages by pageviews for counter 12345678 last week."

  • "Which countries and cities do my visitors come from?"

  • "Custom report: ym:s:visits by ym:s:trafficSource and ym:s:deviceCategory for the last 7 days."

yandex-direct (43 tools)

  • "List my active Yandex Direct campaigns with their types and states."

  • "Show the keywords in campaign 123 together with their current search bids."

  • "Build a last-30-days campaign performance report with impressions, clicks, and cost."

  • "Pause campaign 123, then confirm its new state."

  • "Pull the GeoRegions dictionary so I can pick targeting IDs."

Direct writes are live. Every write hits the production account — there is no dry-run. The fourteen that cannot be undone (delete_*, update_* and the three bid set_* tools) refuse unless the call passes confirm: true; add_*, archive_*/unarchive_*, suspend_*/resume_* and moderate_ads have an inverse tool and run straight away. Bids are expressed in micros (×10⁶). Set YANDEX_DIRECT_SANDBOX=true while experimenting. See Irreversible tools.

Skills

These are Claude Code skills, installed automatically with the plugin. They are not available to other MCP clients, which get the raw tools only.

yandex-keyword-research

Research keywords and search trends for Russian/CIS markets. Combines Wordstat data (volumes, trends, regional distribution) with Yandex Search results for a complete keyword analysis.

yandex-competitive-analysis

Analyze competitors and search landscape. Finds who ranks for target keywords, identifies content gaps, and discovers ranking opportunities across Russian/CIS markets.

Development

Requires Node.js >= 22.0.0 and Bun as the package manager.

# Install dependencies
bun install

# Lint
bun run lint

# Auto-fix lint issues
bun run lint:fix

# Format code
bun run format

# Unit tests (pure helpers: date windows, series extraction, XML parsing)
bun run test

# Smoke test: start every server over stdio and query tools/list
bun run smoke

# The same from the Docker image, with no credentials in the container
docker build -t yandex-mcp:local . && node scripts/docker-smoke.mjs yandex-mcp:local

Tech Stack

  • Pure ES Modules (.mjs, no TypeScript, no build step)

  • @modelcontextprotocol/sdk (^1.27.1)

  • zod (^4.3.6) for input validation

  • Biome for linting and formatting

Project Structure

packages/
  yandex-search-mcp/       # 1 tool   - Yandex Search  (src/parse.mjs — XML parsing)
  yandex-wordstat-mcp/     # 5 tools  - Keyword research (src/dates.mjs — API window rules)
  yandex-webmaster-mcp/    # 33 tools - Site analytics  (SKILL.md — agent playbook;
                           #                            src/series.mjs — time series shapes;
                           #                            src/exclusions.mjs — exclusion reasons)
  yandex-metrika-mcp/      # 12 tools - Web analytics
  yandex-direct-mcp/       # 43 tools - Ad campaigns
scripts/smoke-tools.mjs    # Starts every server and checks tools/list
scripts/docker-smoke.mjs   # Same check against the Docker image, without credentials
Dockerfile                 # One image for all five servers (docker/entrypoint.sh picks one)
.claude/skills/            # Claude Code skills (shipped with the plugin)
.mcp.json                  # Local dev config
plugin.mcp.json            # Distribution config — the 5 servers the plugin registers
.claude-plugin/
  plugin.json              # Plugin manifest
  marketplace.json         # Marketplace catalog, so the repo can be added directly

Each package keeps its pure, testable helpers in separate modules next to index.mjs; tests live in packages/*/test/*.test.mjs and run without network access.

Contributing

Contributions are welcome. Please ensure:

  1. Code passes bun run lint and bun run test with no errors.

  2. All tools return both content (human-readable) and structuredContent (raw API data).

  3. The content text must not contradict structuredContent — a summary that reports "0 data points" while the structured payload holds a full series is a bug, and was the most common one in this repo's history.

  4. API requests use fetchWithRetry with exponential backoff for 429/5xx errors.

  5. Dates are validated with strict calendar checking (no silent overflow) in UTC.

  6. Tokens are never printed to stdout in full.

License

MIT

Available Tools

33 tools
add-hostAdd site to WebmasterA

Add a new site (host) to Yandex Webmaster. The host_url must include protocol (e.g. "https://example.com"). After adding, the host needs verification. Use when the user asks to add a new site to Webmaster. Do not use it to check ownership; call verify-host, then start-verification. Do not use it to remove a site; call delete-host, which is irreversible and requires confirm.

Inputs: host_url (required).

add-recrawl-urlQueue URL for re-crawlA

Enqueue a URL for Yandex re-crawl. Daily quota applies (check get-recrawl-quota). Returns task_id. Use when the user asks Yandex to recrawl one URL and the daily quota still has room. Do not use it to check the quota first; call get-recrawl-quota. Do not use it to read a task later; call get-recrawl-task with the returned task id.

Inputs: url (required), host_id (required).

add-sitemapAdd Sitemap fileA

Add a Sitemap file to Yandex Webmaster (user-added sitemaps). Returns sitemap_id, url and already_present: false for a new file. A 409 SITEMAP_ALREADY_ADDED is a successful result with already_present: true and the existing sitemap_id (null if unavailable). The host must be verified, or the call fails with 404 HOST_NOT_VERIFIED. Use when the user asks to register a sitemap URL on an already verified host. Do not use it to list files; call get-user-sitemaps. Do not use it to delete the host; call delete-host, which is irreversible and requires confirm.

Inputs: url (required), host_id (required).

delete-hostA
Destructive

Remove a host (site) from Yandex Webmaster. IRREVERSIBLE: verification, indexing and search-query history, sitemaps and important-URL settings are lost permanently; re-adding the site starts from scratch. Requires confirm: true — without it the tool refuses and calls nothing. Use when the user has explicitly asked to remove a site from Webmaster and accepts that its history is lost. Do not use it to add a site; call add-host. Do not use it to drop one URL from search; this tool deletes the whole host.

Inputs: host_id (required), confirm.

get-diagnosticsA
Read-onlyIdempotent

Get site diagnostics. Text lists problems in state PRESENT (code, severity, date); full response is in structuredContent. Use when the user asks what site problems Yandex currently reports, such as mobile or security issues. Do not use it for pages that dropped out of search; call get-excluded-pages or get-search-events-samples.

Inputs: host_id (required).

get-excluded-pagesA
Read-onlyIdempotent

Pages DROPPED FROM SEARCH inside a time window, with the reason for each one (url + excluded_url_status, plus bad_http_status for HTTP_ERROR and target_url for redirect/canonical/duplicate cases). READ THE NATURE OF THIS DATA: API v4 has no "currently excluded pages" resource, only the event log /search-urls/events/samples, so this is built from REMOVED_FROM_SEARCH EVENTS in the scanned window, not from a live index snapshot. Events are deduplicated per URL with the latest one winning, so a page that dropped and came back is NOT reported as excluded — it is listed separately under returned_to_search. The window is bounded by limit/max_requests, so an older exclusion outside it is invisible, and summary_excluded_pages_count (the aggregate from get-summary, returned alongside) is a DIFFERENT kind of number that is not expected to match the length of this list. Deduplication spans ONE call: when continuing a walk with offset, pass the URLs from the previous returned_to_search in returned_urls, otherwise a page whose return fell in the earlier window will be reported as excluded again. There is no server-side event filter, so the tool walks the mixed stream page by page until it has collected limit excluded pages (at most max_requests page fetches — retries are not counted, so HTTP calls can be more) and reports next_offset/exhausted to continue the walk. Use when the user asks which pages dropped out of search and why, inside a scanned window. Do not use it for the aggregate excluded_pages_count; that number comes from get-summary and is a different kind of count. Do not use it for a single mixed page of events; call get-search-events-samples.

Inputs: host_id (required), limit, offset, max_requests, +1 more.

get-hostA
Read-onlyIdempotent

Get details for a specific host. Use when the user wants the verification flag and data status of one host. Do not use it to list every site; call list-hosts. Do not use it to start the ownership check; call start-verification after verify-host.

Inputs: host_id (required).

get-important-url-historyA
Read-onlyIdempotent

Get the entire history of a tracked important URL. This resource has no date range filter. Use when the user asks how one important URL changed over time. Do not use it to list the important URLs; call get-important-urls. Do not use it for search-event samples; call get-search-events-samples.

Inputs: url (required), host_id (required).

get-important-urlsA
Read-onlyIdempotent

Get important URLs for a site. Use when the user wants the important URLs configured for the host. Do not use it for the history of one URL; call get-important-url-history. Do not use it for indexed samples; call get-indexing-samples.

Inputs: host_id (required), limit, offset.

get-indexing-historyA
Read-onlyIdempotent

Get indexing history over time. Use when the user asks how the number of indexed pages changed over time. Do not use it for example URLs; call get-indexing-samples. Do not use it for pages that appear in search results; call get-insearch-history.

Inputs: host_id (required), date_to, date_from.

get-indexing-samplesA
Read-onlyIdempotent

Get sample indexed URLs. Use when the user wants example URLs Yandex has indexed. Do not use it for the count over time; call get-indexing-history. Do not use it for URLs that dropped out of results; call get-search-events-samples.

Inputs: host_id (required), limit, offset.

get-insearch-historyA
Read-onlyIdempotent

Get in-search (appearing in results) history. Use when the user asks how many pages were present in search results over time. Do not use it for example URLs; call get-insearch-samples. Do not use it for the indexed-page series; call get-indexing-history.

Inputs: host_id (required), date_to, date_from.

get-insearch-samplesA
Read-onlyIdempotent

Get sample URLs appearing in search. Use when the user wants example URLs that currently appear in search. Do not use it for pages that were removed; call get-search-events-samples or get-excluded-pages. Do not use it for the history series; call get-insearch-history.

Inputs: host_id (required), limit, offset.

get-query-historyA
Read-onlyIdempotent

Get search query totals history. Use when the user asks how shows, clicks, or average position moved over time for the site as a whole. Do not use it for the ranking of individual queries; call get-popular-queries.

Inputs: host_id (required), date_to, date_from, device_type.

get-recrawl-queueA
Read-onlyIdempotent

List recrawl queue for a host (URLs submitted via add-recrawl-url with their state). Use when the user wants the list of URLs already sent for recrawl and their states. Do not use it for one known task id; call get-recrawl-task. Do not use it to enqueue a URL; call add-recrawl-url.

Inputs: host_id (required), limit, offset.

get-recrawl-quotaA
Read-onlyIdempotent

Get recrawl quota for a host. Use when the user asks how many recrawl requests are left today. Do not use it to send a URL; call add-recrawl-url. Do not use it to see queued tasks; call get-recrawl-queue.

Inputs: host_id (required).

get-recrawl-taskA
Read-onlyIdempotent

Get state of a single recrawl task by task_id (returned by add-recrawl-url). Use when the user has a task id from add-recrawl-url and wants that task state. Do not use it to list the queue; call get-recrawl-queue. Do not use it to spend quota; call add-recrawl-url.

Inputs: host_id (required), task_id (required).

get-search-events-historyA
Read-onlyIdempotent

Get search URL events history (appeared/removed). Use when the user wants the count of appeared and removed search URLs over time. Do not use it for the URLs themselves or the exclusion reason; call get-search-events-samples or get-excluded-pages.

Inputs: host_id (required), date_to, date_from.

get-search-events-samplesA
Read-onlyIdempotent

Get sample URLs for search events (appeared in / removed from search), with the reason each page was dropped (excluded_url_status). This is the only place API v4 exposes per-URL exclusion reasons — get-summary only has the aggregate excluded_pages_count. Note: the API has no server-side event filter, so event_type is applied to the fetched page and offset/limit still paginate the unfiltered stream. Use when the user wants sample URLs that appeared in or left search, including excluded_url_status. Do not use it to walk only dropped pages across a window; call get-excluded-pages. Do not use it for the event counts; call get-search-events-history.

Inputs: host_id (required), limit, offset, event_type.

get-sitemapA
Read-onlyIdempotent

Get details for a specific sitemap. Use when the user already has a sitemap id and wants that file details. Do not use it to list files; call get-sitemaps or get-user-sitemaps. Do not use it to upload a sitemap; call add-sitemap.

Inputs: host_id (required), sitemap_id (required).

get-sitemapsA
Read-onlyIdempotent

List all sitemaps for a host. Use when the user wants every sitemap Yandex knows for the host, including ones it discovered. Do not use it for only the files the user uploaded; call get-user-sitemaps. Do not use it to add a file; call add-sitemap.

Inputs: host_id (required), limit.

get-sqi-historyA
Read-onlyIdempotent

Get SQI (Site Quality Index) history over time. Use when the user asks how the Site Quality Index changed over a date range. Do not use it for the single current SQI; call get-summary. Do not use it for indexing counts; call get-indexing-history.

Inputs: host_id (required), date_to, date_from.

get-summaryA
Read-onlyIdempotent

Get site summary: SQI, pages count, problems. Use when the user wants the current SQI, page counts, and problem totals for a host. Do not use it for the list of excluded URLs; call get-excluded-pages. Do not use it for SQI over time; call get-sqi-history.

Inputs: host_id (required).

get-userA
Read-onlyIdempotent

Get current Webmaster user info and user_id. Use when the user needs the Webmaster account id before a call that is not already scoped to a host. Do not use it to list sites; call list-hosts, which also returns the host_id every other tool expects.

Inputs: no named parameters.

get-user-sitemapsA
Read-onlyIdempotent

List user-added sitemaps. Use when the user asks which sitemap files were added by hand. Do not use it for sitemaps Yandex found on its own; call get-sitemaps. Do not use it to add a file; call add-sitemap.

Inputs: host_id (required), limit.

list-hostsA
Read-onlyIdempotent

List all hosts (sites) in Webmaster with their host_id — the identifier every other tool requires (format "https:example.com:443"). Take it from here instead of assembling it by hand. Use when the user asks which sites are in Webmaster or needs a host_id for any later call. Do not use it for one site SQI or problems; call get-summary or get-diagnostics after the host_id is known.

Inputs: no named parameters.

start-verificationStart host verificationA

Start the Yandex Webmaster ownership check for a host. Put the verification_uin (see verify-host) on the site first: HTML_FILE — file yandex_.html, META_TAG — , DNS — TXT record. The check runs asynchronously: the call returns the current state (usually IN_PROGRESS); poll verify-host for VERIFIED or VERIFICATION_FAILED (reason in fail_info). Use when the verification file, meta tag, or DNS record is already in place and the user wants the ownership check started. Do not use it to read the UIN or the failure reason; call verify-host. Do not use it to add the host; call add-host.

Inputs: host_id (required), verification_type (required).

verify-hostA
Read-onlyIdempotent

Get verification status and available verification methods for a host. Use after add-host to check what verification is needed. Use when the user wants the current verification state, the UIN, or which methods are available. Do not use it to start the check; call start-verification. Do not use it to add the site; call add-host.

Inputs: host_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 33 tools

    Disambiguation4/5

    Each tool has a distinct resource+action target, and the descriptions carry explicit 'do not use it, call X instead' cross-references that resolve most near-overlaps. The residual risk sits in the three-way 'current vs history vs samples' families (e.g. get-search-events-samples vs get-excluded-pages vs get-search-events-history), where the boundaries are only clear after reading long caveats.

    Naming Consistency5/5

    Every name is kebab-case verb_noun (add-recrawl-url, get-sqi-history, list-hosts, delete-host), with a stable get-/add-/start-/verify-/delete- prefix set. Resources are named consistently across families (get-indexing-history / get-indexing-samples, get-insearch-history / get-insearch-samples).

    Tool Count3/5

    33 tools is heavy, but the surface mirrors a genuinely broad domain (hosts, sitemaps, recrawl, SQI, indexing, in-search, events, links, queries) with parallel get/history pairs. It is on the upper edge of what an agent can select from reliably without a routing layer.

    Completeness3/5

    Read-side coverage is strong and nearly one-to-one with the Webmaster API, and the host/sitemap/recrawl lifecycles are mostly closed. Gaps remain on the mutation side: no delete-sitemap, no way to add/remove tracked important URLs, and no way to cancel or remove recrawl entries, leaving several create-only dead ends.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      MCP server for managing Yandex Direct advertising, Yandex Metrica analytics, Wordstat keyword research, and Yandex Webmaster SEO tools, with self-configuring OAuth; provides 153 tools for complete ad and search workflows from AI assistants.
      100
      14 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Yandex Direct, Metrika, Wordstat, and Webmaster APIs, providing 132 tools to manage advertising campaigns, analytics, keyword research, and reporting through any MCP-compatible client.
      60
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for querying Yandex Wordstat via Yandex Cloud Search API. Enables checking phrase frequency, similar queries, regional demand, and seasonality trends.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      MCP server for the Yandex Webmaster API, enabling natural-language queries about site indexing, search queries, IKS, diagnostics, sitemaps, and external links, as well as actions like recrawling, from AI assistants such as Claude, Cursor, and Codex.
      20
      292 npm
      1
      MIT