Yandex MCP
Yandex Webmaster MCP server — site analytics and management for sites verified in Yandex Webmaster (33 tools, 29 read-only).
Account & hosts: get the current user/user_id (
get-user), list all sites with theirhost_id(list-hosts), and inspect one host's verification and data status (get-host).Site health: current SQI, page counts and problem totals (
get-summary), SQI history over a date range (get-sqi-history), and current diagnostics such as mobile or security issues (get-diagnostics).Search queries: top queries by shows or clicks with date/device filters (
get-popular-queries) and site-wide shows/clicks/average-position trends (get-query-history).Indexing & search presence: indexed-page counts over time and sample indexed URLs, in-search page counts over time and sample URLs appearing in results, plus appeared/removed event counts.
Dropped pages: sample search-event URLs with per-URL exclusion reasons (
get-search-events-samples) and a dedicated walk of pages dropped from search with reasons, deduplication, andreturned_to_searchtracking (get-excluded-pages).Links: inbound external link samples and their count history, broken internal links (flagging records never re-checked) and their count history.
Sitemaps: list all known sitemaps vs. user-added ones, get one sitemap's details, and add a sitemap file to a verified host.
Important URLs: list tracked URLs and fetch the full, unfiltered history of one URL.
Re-crawl: check the daily quota, queue a URL for re-crawl, list the recrawl queue, and read a task's state.
Site setup & removal: add a new host, read verification status/UIN and available methods, start the ownership check (HTML file, meta tag, or DNS), and delete a host irreversibly when
confirm: trueis passed.
Integrates with Yandex Cloud to provide access to Yandex Search API v2 and Yandex Wordstat, enabling keyword research and search analytics.
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 API v2 (Cloud) | 1 | |
Yandex Wordstat (Cloud Search API v2) -- keyword research | 5 | |
Yandex Webmaster API v4 -- site analytics | 33 | |
Yandex Metrika API -- web analytics | 12 | |
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-mcpand 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). Nevernpxan 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-mcpNode.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 |
|
|
Wordstat |
|
|
Webmaster |
|
|
Metrika |
|
|
Direct |
|
|
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: | Verified | Daily use on the maintainer's host |
Codex CLI 0.162 | Ubuntu 26.04 LTS, x86_64 | Node.js 24 from a checkout: | Configured, not checked separately | Maintainer's host config |
Node.js 22 + Bun | Ubuntu ( | Unit tests; all five servers answer | Verified in CI |
|
| any | — | Not verified in a client | CI smoke test only |
| Ubuntu, |
| Verified | All five answer |
Claude Desktop ( | 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-mcpCheck 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 .mcpbReleases 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-mcpCursor
yandex-search
yandex-wordstat
yandex-webmaster
yandex-metrika
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-mcpOr 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@stufentlyOr without the interactive picker:
claude plugin marketplace add stufently/yandex-mcp
claude plugin install yandex-mcp@stufently --scope userWhat 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 | you hardcode absolute paths |
Bundled skills |
| not included — skills are Claude Code only |
Updates |
|
|
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 |
|
| yes |
|
| no |
|
| yes |
|
| no |
|
| yes |
|
| yes |
|
| yes |
|
| no |
|
| 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-mcpis published with the next release tag; until then, build it from a clone withdocker 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 directIn 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 inFor 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 authSearch 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 authThe 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-mcp | API key from Yandex Cloud |
| yandex-search-mcp | Folder ID from Yandex Cloud |
| yandex-wordstat-mcp | Yandex Cloud API key (service account, role |
| yandex-wordstat-mcp | Yandex Cloud folder ID for Search API v2 |
| yandex-webmaster-mcp | OAuth token for Webmaster |
| yandex-metrika-mcp | OAuth token for Metrika ( |
| OAuth flow (optional) | Override requested scopes; default |
| yandex-direct-mcp | OAuth token for Direct API v5 |
| yandex-direct-mcp (agencies) | Client login to act on behalf of |
| yandex-direct-mcp (optional) |
|
| OAuth flow (optional) | Yandex OAuth app client ID |
| OAuth flow (optional) | Yandex OAuth app client secret |
Copy .env.example to .env and fill in the values:
cp .env.example .envYou 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:visitsbyym:s:trafficSourceandym:s:deviceCategoryfor 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 bidset_*tools) refuse unless the call passesconfirm: true;add_*,archive_*/unarchive_*,suspend_*/resume_*andmoderate_adshave an inverse tool and run straight away. Bids are expressed in micros (×10⁶). SetYANDEX_DIRECT_SANDBOX=truewhile 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:localTech Stack
Pure ES Modules (
.mjs, no TypeScript, no build step)@modelcontextprotocol/sdk(^1.27.1)zod(^4.3.6) for input validationBiome 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 directlyEach 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:
Code passes
bun run lintandbun run testwith no errors.All tools return both
content(human-readable) andstructuredContent(raw API data).The
contenttext must not contradictstructuredContent— 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.API requests use
fetchWithRetrywith exponential backoff for 429/5xx errors.Dates are validated with strict calendar checking (no silent overflow) in UTC.
Tokens are never printed to stdout in full.
License
MIT
Available Tools
33 toolsadd-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-hostADestructive
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-broken-internal-linksARead-onlyIdempotent
List broken internal links (destination URL, the source page linking to it, and when Yandex last checked the link). Records can be months old: source_last_access_date equal to discovery_date means the link has NOT been re-verified since the problem was found, so it may already be fixed. Such records are flagged stale / "never re-checked" — verify before treating the count as a live failure. Use when the user asks which internal links look broken and whether Yandex has rechecked them. Do not use it for the count over time; call get-broken-internal-links-history. Do not use it for links from other sites; call get-external-links.
Inputs: host_id (required), limit, offset.
get-broken-internal-links-historyARead-onlyIdempotent
Get broken internal links count history. Use when the user asks how the broken-internal-link count changed over time. Do not use it for the source and destination URLs; call get-broken-internal-links, and read source_last_access_date before treating a row as a live failure.
Inputs: host_id (required), date_to, date_from.
get-diagnosticsARead-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-pagesARead-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-external-linksARead-onlyIdempotent
Get external links pointing to the site. Use when the user wants sample pages on other sites that link to this host. Do not use it for the count over time; call get-external-links-history. Do not use it for broken links inside the site; call get-broken-internal-links.
Inputs: host_id (required), limit, offset.
get-external-links-historyARead-onlyIdempotent
Get external links count history. Use when the user asks whether the number of external links rose or fell. Do not use it for the linking URLs themselves; call get-external-links. Do not use it for internal broken links; call get-broken-internal-links-history.
Inputs: host_id (required), date_to, date_from.
get-hostARead-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-historyARead-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-urlsARead-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-historyARead-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-samplesARead-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-historyARead-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-samplesARead-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-popular-queriesARead-onlyIdempotent
Get popular search queries for a site. Use when the user wants the top queries for a site by shows or clicks. Do not use it for the day-by-day totals of all queries; call get-query-history. Do not use it for pages in search; call get-insearch-samples.
Inputs: host_id (required), order_by (required), limit, offset, +3 more.
get-query-historyARead-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-queueARead-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-quotaARead-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-taskARead-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-historyARead-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-samplesARead-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-sitemapARead-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-sitemapsARead-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-historyARead-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-summaryARead-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-userARead-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-sitemapsARead-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-hostsARead-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-hostARead-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
Scored across 33 tools
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.
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).
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.
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
Related MCP Connectors
- Yandex Tools MCPDeprecatedio.github.ruslan-mm18
MCP servers for Yandex APIs: Wordstat, Search, Webmaster, Metrika, Direct. Open source, by Seyka AI.
MCP for Yandex Direct: manage ad campaigns & analytics from Claude or ChatGPT
Meta Ads and Google Ads MCP server: 350+ tools for Claude, ChatGPT, Cursor and Codex.
Hosted DataForSEO MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP 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.10014 npm3MIT
- AlicenseNot gradedqualityDmaintenanceMCP 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.60MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for querying Yandex Wordstat via Yandex Cloud Search API. Enables checking phrase frequency, similar queries, regional demand, and seasonality trends.2MIT
- AlicenseAqualityBmaintenanceMCP 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.20292 npm1MIT