
Yandex Webmaster MCP
io.github.stufently由 GitHub 帳號 stufently 發布v2.2.1更新於 Oct 24, 2026
MCP server for Yandex Webmaster API — site analytics, indexing, search queries
概覽
面向 Yandex Webmaster API 的本機 MCP 伺服器,讓助理檢視網站健康狀態、索引、搜尋查詢、連結、網站地圖與重新檢索狀態。
- 可以做什麼
- 讀取帳戶與網站資料:目前使用者、含 host_id 的網站清單、網站詳細資料、網站摘要與 SQI 歷史、診斷資訊、熱門查詢與查詢歷史、索引與搜尋出現歷史及範例 URL、含排除原因的搜尋事件、被排除頁面、外部連結與失效內部連結及其歷史、網站地圖、重要 URL,以及重新檢索配額、佇列與任務。為網站新增網站地圖檔案。將 URL 加入重新檢索佇列,會消耗每日配額。將網站加入 Webmaster 並啟動所有權驗證。從 Webmaster 移除網站,需明確確認。
- 適用情境
- 適合管理受 Yandex 收錄的網站時使用:讓助理稽核索引與搜尋表現、追查被移除或排除的頁面、檢查失效連結與網站地圖,或在對話中提交重新檢索請求。
- 執行需求
- 以本機 Node.js 程序從原始碼執行(複製儲存庫並以 bun 安裝相依套件)。需要 Yandex OAuth 權杖,放在 YANDEX_WEBMASTER_TOKEN 中;互動式授權流程另需 YANDEX_CLIENT_ID 與 YANDEX_CLIENT_SECRET。需要連線至 Yandex Webmaster API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Yandex Webmaster MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
yandex-webmaster-mcp
MCP server for Yandex Webmaster API v4. Monitor site health, indexing status, search queries, backlinks, sitemaps, and more.
Installation
This package is published as @stufently/yandex-webmaster-mcp; the unscoped name yandex-webmaster-mcp
belongs to an unrelated publisher (see the note in the root README).
Nothing is on the scope yet, so run it from source:
Configuration
Add to your MCP client config:
Environment Variables
Authentication
To obtain an OAuth token interactively:
This opens a browser for Yandex OAuth authorization and returns a token. Set the token as YANDEX_WEBMASTER_TOKEN.
Note: The Webmaster API uses Authorization: OAuth {token} (not Bearer).
Agent playbook
SKILL.md next to this file is the task-level guide for agents: the new-site flow, the
regular-audit order, the recrawl rules, how the three different time-series shapes are read,
and — importantly — what API v4 does not have (IndexNow, robots.txt, site region, favicon,
mobile status, Metrika binding), so nothing gets invented.
Tool Reference (33 tools)
Core (3)
Statistics (2)
Diagnostics (1)
Search Queries (2)
Indexing (4)
Search Events (3)
There is no dedicated "excluded pages" resource in API v4: get-summary carries only the
aggregate excluded_pages_count, and the reason a given URL was dropped lives on
REMOVED_FROM_SEARCH records of /search-urls/events/samples. Since the API has no
server-side event filter, count still counts events of both types and limit/offset
page the mixed stream. get-search-events-samples reports what one such page contains;
get-excluded-pages does the walking, so its limit counts excluded pages rather than
events. Per-URL detail beyond the status code: bad_http_status for HTTP_ERROR, and
target_url for the redirect target, canonical address or duplicate.
These are events in time, not a snapshot of the index. The same URL appears as
REMOVED_FROM_SEARCH and later as APPEARED_IN_SEARCH — it dropped out and came back, and
right now it is in search. get-excluded-pages therefore deduplicates by URL and keeps the
latest event: a URL whose latest event is an appearance goes to returned_to_search, not to
pages. Two consequences worth stating out loud:
- an exclusion older than the scanned window is invisible, no matter how current it is;
- deduplication spans one call. Continuing from
next_offsetstarts with an empty state, so a page whose return fell into the previous window would be reported as excluded again — pass the previousreturned_to_searchinreturned_urlsto keep the walk honest; excluded_pages_countfromget-summaryand the length ofpagesare different kinds of number and are not expected to match. The tool returns the aggregate assummary_excluded_pages_countand says so in its text, instead of leaving the reader to discover a 25x gap on their own.
The per-URL status field is named excluded_url_status everywhere — in the tool
descriptions, in excluded_pages from get-search-events-samples and in pages from
get-excluded-pages. It is the name from the Yandex reference (ApiExcludedUrlStatus), so
it can be grepped against the docs.
Links (4)
A broken-link record is a snapshot of the last time Yandex checked that link, and that
moment can be months old: when source_last_access_date equals discovery_date, nothing has
been re-verified since the problem was found, so the link may have been fixed long ago. Each
record therefore carries days_since_last_check, never_rechecked and stale (last check
older than 90 days — never_rechecked on its own does not set it), and the text block puts
the warning above the list. A live check of 258 links reported broken across these sites
(2026-09-02) found 10 real 404s; about 80% were 301 redirects. The API is not lying — the old
one-line output just made the count read like an outage.
⚠️ In the Yandex reference the name and the description of source_last_access_date
disagree: the name says source, the description says "the date the robot last visited the
link's destination page". The wording here stays neutral ("last checked") because the
conclusion about the record's age holds under either reading, while a conclusion about a
specific page does not.
Sitemaps (4)
add-sitemap needs the host verified (404 HOST_NOT_VERIFIED otherwise). Adding a file that is
already there answers 409 SITEMAP_ALREADY_ADDED; like every other non-2xx here it surfaces as
an error, and its payload names the existing sitemap_id — read it as "already present" rather
than retrying. Removing a sitemap (DELETE /user-added-sitemaps/{id}) exists in the API but is
deliberately not wrapped here.
Important URLs (2)
Recrawl (4)
Host Management (4)
These change your Webmaster account, not just read from it.
Deleting a host
delete-host is the only irreversible tool here, and it refuses to run unless the call carries
confirm: true:
Called without it, the tool returns an error result and sends nothing to the Webmaster API:
confirm is optional in the JSON schema on purpose: a missing confirmation has to come back as
that explanation, not as a schema validation error a model cannot act on. Only a literal true
counts — "true", 1 and "yes" are refused, because a guess at the protocol is not a
decision to delete anything. The tool is also marked destructiveHint: true in its MCP
annotations, so clients that surface tool risk can show it before the call.
The other three writes are deliberately left unguarded: add-host is additive and undone by
delete-host, add-recrawl-url only queues a URL for re-crawl against a daily quota that
replenishes, and add-sitemap adds a file that stays removable and takes no history with it.
A confirmation on every write would train callers to pass confirm: true by
reflex, which is exactly what would defeat it on the one call that matters.
Common Parameters
host_id-- Host identifier, URL-encoded (e.g.,https:example.com:443). Get it fromlist-hosts.date_from,date_to-- Dates in YYYY-MM-DD format. Strictly validated (no silent date overflow).limit,offset-- Pagination controls.device_type-- One of:ALL,DESKTOP,MOBILE,TABLET,MOBILE_AND_TABLET.
Caching
The user_id is fetched once on the first API call and cached for the session. It is automatically invalidated on 401/403 errors.
License
MIT
來源:packages/yandex-webmaster-mcp/README.md,提交 bdd6c64
工具
0版本歷史
2- v2.2.1最新Oct 16, 2026
- v2.2.0Oct 15, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分