Yandex Webmaster MCP
v2.3.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | Start date YYYY-MM-DD |
date_to | string | End 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
get-popular-queries
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
order_by * | string | Sort by shows or clicks |
date_from | string | Start date YYYY-MM-DD |
date_to | string | End date YYYY-MM-DD |
device_type | string | Device filter |
limit | integer | Results limit (default: 100) |
offset | integer | Offset |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string | |
device_type | string |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | |
offset | integer |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | |
offset | integer |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string |
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…
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
event_type | string | Keep only events of this type (client-side filter; omit to get both) |
limit | integer | Limit (default: 10) |
offset | integer |
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_…
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | How many EXCLUDED pages to collect (default: 20) |
max_requests | integer | Cap 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. |
offset | integer | Event-stream offset to resume from (default: 0) |
returned_urls | array | URLs 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-external-links
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | |
offset | integer |
get-external-links-history
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string |
get-broken-internal-links
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…
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | |
offset | integer |
get-broken-internal-links-history
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
date_from | string | |
date_to | string |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
sitemap_id * | string | Sitemap 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID (URL-encoded, e.g. "https:example.com:443") |
url * | string | Full 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
limit | integer | |
offset | integer |
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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
url * | string | URL 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID (e.g. "https:example.com:443") |
url * | string | Full 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID (e.g. "https:example.com:443") |
limit | integer | Max results (default 10) |
offset | integer | Pagination 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID |
task_id * | string | Recrawl 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.
| Parameter | Type | Description |
|---|---|---|
host_url * | string | Site 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host 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…
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID (URL-encoded, e.g. "https:example.com:443") |
verification_type * | string | Verification 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.
| Parameter | Type | Description |
|---|---|---|
host_id * | string | Host ID (URL-encoded, e.g. "https:example.com:443") |
confirm | boolean | Must be exactly true to actually delete. Omit it (or pass false) and the tool refuses without calling the Webmaster API. |