yandex-webmaster-mcp

v0.1.1
io.github.BoxLab-Ltd/yandex-webmaster-mcp Checked 1 day ago Published 4 months ago

Query 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.

ParameterTypeDescription
oobbooleanForce 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.

ParameterTypeDescription
code *stringThe 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.

ParameterTypeDescription
hostIdstringOptional 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…

ParameterTypeDescription
dateFromstringStart date, YYYY-MM-DD. Default: last week.
dateTostringEnd date, YYYY-MM-DD. Default: today.
deviceTypestringDevice bucket. Default ALL.
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. List valid ids with get_hosts.
indicatorsarrayWhich indicators to return. Default: all four (TOTAL_SHOWS, TOTAL_CLICKS, AVG_SHOW_POSITION, AVG_CLICK_POSITION).
limitintegerreport="top" only: rows to return (1-500). Default 50.
offsetintegerreport="top" only: rows to skip for paging. Default 0.
orderBystringreport="top" only: rank by TOTAL_SHOWS or TOTAL_CLICKS. Default TOTAL_CLICKS.
queryIdstringreport="trend" only: return the time series for this specific query (query_id from a prior "top" call). Omit for the aggregate trend.
reportstring"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.

ParameterTypeDescription
dateFromstringreport="history": start date YYYY-MM-DD.
dateTostringreport="history": end date YYYY-MM-DD.
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID.
limitintegersamples reports: rows to return (1-100). Default 20.
offsetintegersamples reports: rows to skip for paging. Default 0.
reportstringWhich 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.

ParameterTypeDescription
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID. List valid ids with get_hosts.
includeAbsentbooleanAlso 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.

ParameterTypeDescription
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID.
limitintegerMax sitemaps to return (1-100). Default 100.

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.

ParameterTypeDescription
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID.
limitintegerRecent tasks to list when no taskId (1-100). Default 10.
taskIdstringCheck 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.

ParameterTypeDescription
url *stringAbsolute URL of the page to recrawl, e.g. "https://example.com/page/". Must belong to the host.
hostIdstringHost id (e.g. "https:example.com:443"). Defaults to YANDEX_WEBMASTER_HOST_ID.