Yandex Webmaster MCP

v2.3.0
io.github.stufently/yandex-webmaster-mcp Checked 19 hours ago Published 22 days ago

MCP server for Yandex Webmaster API — site analytics, indexing, search queries

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get-user

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.

list-hosts

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.

get-host

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.

ParameterTypeDescription
host_id *stringHost ID (URL-encoded, e.g. "https:example.com:443")

get-summary

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.

ParameterTypeDescription
host_id *stringHost ID

get-sqi-history

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.

ParameterTypeDescription
host_id *stringHost ID
date_fromstringStart date YYYY-MM-DD
date_tostringEnd date YYYY-MM-DD

get-diagnostics

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.

ParameterTypeDescription
host_id *stringHost ID

get-query-history

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.

ParameterTypeDescription
host_id *stringHost ID
date_fromstring
date_tostring
device_typestring

get-indexing-history

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.

ParameterTypeDescription
host_id *stringHost ID
date_fromstring
date_tostring

get-indexing-samples

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.

ParameterTypeDescription
host_id *stringHost ID
limitinteger
offsetinteger

get-insearch-history

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.

ParameterTypeDescription
host_id *stringHost ID
date_fromstring
date_tostring

get-insearch-samples

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.

ParameterTypeDescription
host_id *stringHost ID
limitinteger
offsetinteger

get-search-events-history

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.

ParameterTypeDescription
host_id *stringHost ID
date_fromstring
date_tostring

get-search-events-samples

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…

ParameterTypeDescription
host_id *stringHost ID
event_typestringKeep only events of this type (client-side filter; omit to get both)
limitintegerLimit (default: 10)
offsetinteger

get-excluded-pages

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_…

ParameterTypeDescription
host_id *stringHost ID
limitintegerHow many EXCLUDED pages to collect (default: 20)
max_requestsintegerCap on PAGE fetches made while walking the mixed event stream (default: 10). Retries of a failed fetch (429/5xx) are not counted, so the number of HTTP calls can be higher.
offsetintegerEvent-stream offset to resume from (default: 0)
returned_urlsarrayURLs already known to have come back to search — pass `returned_to_search` from the previous call when continuing a walk with `offset`. Deduplication only spans one call, so without this a page whos…

get-sitemaps

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.

ParameterTypeDescription
host_id *stringHost ID
limitinteger

get-sitemap

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.

ParameterTypeDescription
host_id *stringHost ID
sitemap_id *stringSitemap ID (URL-encoded)

get-user-sitemaps

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.

ParameterTypeDescription
host_id *stringHost ID
limitinteger

add-sitemap Add Sitemap file

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.

ParameterTypeDescription
host_id *stringHost ID (URL-encoded, e.g. "https:example.com:443")
url *stringFull URL of the sitemap file (e.g. "https://example.com/sitemap.xml")

get-important-urls

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.

ParameterTypeDescription
host_id *stringHost ID
limitinteger
offsetinteger

get-important-url-history

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.

ParameterTypeDescription
host_id *stringHost ID
url *stringURL to get history for

get-recrawl-quota

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.

ParameterTypeDescription
host_id *stringHost ID

add-recrawl-url Queue URL for re-crawl

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.

ParameterTypeDescription
host_id *stringHost ID (e.g. "https:example.com:443")
url *stringFull URL on the host to re-crawl (must start with host scheme+domain)

get-recrawl-queue

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.

ParameterTypeDescription
host_id *stringHost ID (e.g. "https:example.com:443")
limitintegerMax results (default 10)
offsetintegerPagination offset

get-recrawl-task

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.

ParameterTypeDescription
host_id *stringHost ID
task_id *stringRecrawl task ID

add-host Add site to Webmaster

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.

ParameterTypeDescription
host_url *stringSite URL with protocol (e.g. "https://example.com")

verify-host

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.

ParameterTypeDescription
host_id *stringHost ID (URL-encoded, e.g. "https:example.com:443")

start-verification Start host verification

Start the Yandex Webmaster ownership check for a host. Put the verification_uin (see verify-host) on the site first: HTML_FILE — file yandex_<uin>.html, META_TAG — <meta name="yandex-verification">, 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…

ParameterTypeDescription
host_id *stringHost ID (URL-encoded, e.g. "https:example.com:443")
verification_type *stringVerification method; must be among applicable_verifiers from verify-host

delete-host

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.

ParameterTypeDescription
host_id *stringHost ID (URL-encoded, e.g. "https:example.com:443")
confirmbooleanMust be exactly true to actually delete. Omit it (or pass false) and the tool refuses without calling the Webmaster API.