yandex-webmaster-mcp
v0.1.1Query Yandex Webmaster indexing, queries, diagnostics and backlinks, and recrawl, via an AI agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login Sign in to Yandex
Sign in to Yandex from here. Opens your browser to approve access; the code returns automatically over a local redirect, so this usually finishes in one call. If the local port is unavailable it returns a URL to approve and you then call submit_code with the code Yandex shows. Run this once (the token lasts ~1 year); needed before the data tools if you are not signed in yet.
| Parameter | Type | Description |
|---|---|---|
oob | boolean | Force the copy-paste flow instead of the automatic local redirect. |
submit_code Submit the Yandex sign-in code
Complete a copy-paste sign-in started by login: pass the code Yandex showed you after you approved access.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code shown on the Yandex page after you approved access. |
get_hosts List Webmaster hosts
Discovery tool: list the sites (hosts) available to your Yandex Webmaster token, each with its host_id, URL and verification state. host_id is what every other tool needs to identify a site. Optionally pass `hostId` to also fetch that host summary (SQI, indexed/excluded page counts, site problems). Read-only. Call this first.
| Parameter | Type | Description |
|---|---|---|
hostId | string | Optional host id (e.g. "https:example.com:443"). When set, the response also includes that host summary. Defaults to YANDEX_WEBMASTER_HOST_ID if configured. |
search_queries Yandex search queries
Search-query analytics for a host from Yandex Search: impressions (TOTAL_SHOWS), clicks (TOTAL_CLICKS), average show/click position. Read-only. • report="top" (default): ranked list of the queries bringing the most traffic, ordered by orderBy. Use this to see which phrases people search. • report="trend": a time series. Pass queryId (from a prior "top" call) for one query's history over time, or omit it for the site's aggregate trend. Tip: cross-reference these queries/landing pages with Yandex Metrica (bounce rate, conversions) to find high-impression, low-conversion phrases worth optimiz…
| Parameter | Type | Description |
|---|---|---|
dateFrom | string | Start date, YYYY-MM-DD. Default: last week. |
dateTo | string | End date, YYYY-MM-DD. Default: today. |
deviceType | string | Device bucket. Default ALL. |
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. List valid ids with get_hosts. |
indicators | array | Which indicators to return. Default: all four (TOTAL_SHOWS, TOTAL_CLICKS, AVG_SHOW_POSITION, AVG_CLICK_POSITION). |
limit | integer | report="top" only: rows to return (1-500). Default 50. |
offset | integer | report="top" only: rows to skip for paging. Default 0. |
orderBy | string | report="top" only: rank by TOTAL_SHOWS or TOTAL_CLICKS. Default TOTAL_CLICKS. |
queryId | string | report="trend" only: return the time series for this specific query (query_id from a prior "top" call). Omit for the aggregate trend. |
report | string | "top" ranked list (default) or "trend" time series. |
get_indexing Site indexing
How Yandex crawls and indexes the host. Read-only. Pick a report: • report="history" (default): time series of crawled pages grouped by HTTP status class (HTTP_2XX/3XX/4XX/5XX/OTHER) — spot spikes of errors the crawler hits. • report="crawled": example crawled URLs with their HTTP code and crawl date. • report="in_search": example URLs currently present in Yandex search, with title.
| Parameter | Type | Description |
|---|---|---|
dateFrom | string | report="history": start date YYYY-MM-DD. |
dateTo | string | report="history": end date YYYY-MM-DD. |
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. |
limit | integer | samples reports: rows to return (1-100). Default 20. |
offset | integer | samples reports: rows to skip for paging. Default 0. |
report | string | Which report to return. Default "history". |
get_diagnostics Site diagnostics
Yandex Webmaster site diagnostics: problems detected on the host (e.g. DNS errors, slow response, robots.txt issues, 4xx alerts), each with a severity (FATAL, CRITICAL, POSSIBLE_PROBLEM, RECOMMENDATION). By default returns only ACTIVE problems (state=PRESENT), worst first. Set includeAbsent=true to also list resolved/absent problem types. Read-only.
| Parameter | Type | Description |
|---|---|---|
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. List valid ids with get_hosts. |
includeAbsent | boolean | Also list problem types that are currently absent/resolved. Default false. |
list_sitemaps List sitemaps
List the Sitemap files Yandex knows for the host, each with its URL, type, last access date, number of URLs and error count, and where it was discovered (robots.txt, webmaster, etc.). Use it to check a sitemap is being read and is error-free. Read-only.
| Parameter | Type | Description |
|---|---|---|
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. |
limit | integer | Max sitemaps to return (1-100). Default 100. |
get_external_links External links
Inbound (external) links pointing to the host — the backlinks Yandex knows. Read-only. • report="samples" (default): example links with source page, target URL and discovery date, plus the total count available. • report="history": time series of the total external-link count over time.
| Parameter | Type | Description |
|---|---|---|
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. |
limit | integer | report="samples": rows to return (1-100). Default 20. |
offset | integer | report="samples": rows to skip for paging. Default 0. |
report | string | Which report to return. Default "samples". |
recrawl_status Recrawl quota & tasks
Read-only view of the host recrawl activity. With no taskId: the remaining daily quota plus the most recent recrawl tasks and their state (IN_PROGRESS, DONE, FAILED). Pass taskId (from recrawl_submit) to check one task. Use before recrawl_submit to confirm quota is available.
| Parameter | Type | Description |
|---|---|---|
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. |
limit | integer | Recent tasks to list when no taskId (1-100). Default 10. |
taskId | string | Check a single recrawl task by its id (from recrawl_submit). Omit to get quota + recent tasks. |
recrawl_submit Submit URL for recrawl
Ask Yandex to recrawl a specific page of the host sooner. NOT read-only: each call consumes one unit of the limited daily recrawl quota (check it with recrawl_status). The URL must belong to the host and be a full absolute URL. Returns the task_id and the remaining quota. Track progress with recrawl_status using the returned task_id.
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute URL of the page to recrawl, e.g. "https://example.com/page/". Must belong to the host. |
hostId | string | Host id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. |