
Yandex Webmaster Mcp
io.github.BoxLab-Ltd由 GitHub 帳號 BoxLab-Ltd 發布v0.1.1更新於 Oct 24, 2026
Query Yandex Webmaster indexing, queries, diagnostics and backlinks, and recrawl, via an AI agent.
概覽
本機 MCP 伺服器,讓助理查詢 Yandex Webmaster 的主機、搜尋查詢、索引、診斷、網站地圖與反向連結,並可提交網址重新抓取。
- 可以做什麼
- 列出權杖可存取的所有網站,包含主機 ID、驗證狀態,可選 SQI 與頁面摘要,作為其他工具的起點。分析搜尋查詢:依流量排名的熱門查詢、時間序列趨勢、曝光、點擊與平均排名,可依裝置與日期範圍篩選。檢視索引狀況:依 HTTP 狀態類別統計的已抓取頁面歷史、範例抓取網址及目前仍在搜尋結果中的頁面。檢視網站診斷問題(DNS、回應緩慢、robots.txt、4xx 等),以及已知網站地圖的網址數與錯誤數。檢視入站反向連結的範例連結或數量趨勢,並查詢重新抓取配額與任務狀態。提交單一網址要求重新抓取,這是唯一的寫入操作。
- 適用情境
- 適合在 Yandex Webmaster 中已登記網站、想用自然語言了解搜尋流量、索引狀況、網站問題或反向連結的情況,也可用來觸發單一網址的重新抓取。搭配 Yandex Metrica 伺服器,可將搜尋查詢與站內行為和轉換交叉比對。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 18 或更新版本。需要一個已在 Yandex Webmaster 新增至少一個網站的 Yandex 帳號。驗證方式:建議的瀏覽器互動登入、YANDEX_WEBMASTER_TOKEN 環境變數,或自建 OAuth 應用程式(用戶端 ID 與密鑰)。可選設定 YANDEX_WEBMASTER_HOST_ID 作為預設主機。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Yandex Webmaster Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Yandex Webmaster MCP
Ask your Yandex Webmaster data in plain language — from Claude, Cursor, or any MCP client.
Read-only by design (plus URL recrawl), no secrets stored. Sign in with a built-in public OAuth client over PKCE — no app registration, no client secret.
Early development (v0.1). The tool surface is still growing.
A Model Context Protocol server that exposes Yandex Webmaster as a small set of
flexible, well-described tools instead of one-thin-wrapper-per-endpoint. Pairs
with yandex-metrica-mcp:
run both and an agent can cross-reference search queries from Webmaster with
on-site behavior and conversions from Metrica in a single conversation.
Quickstart
1. Add the server to your MCP client (Claude Desktop, Cursor, …):
2. Sign in — interactive, no secret needed:
Approve access in the browser, paste the code Yandex shows you. The token is
cached at ~/.config/yandex-webmaster-mcp/token.json (mode 0600).
3. Ask your agent — e.g. "List my Webmaster hosts and show the SQI for example.com."
Or install as a Claude Code plugin
Why
Existing community servers tend to be thin wrappers — one tool per API endpoint, dumping raw JSON into the model's context. This server aims to be well-engineered: fewer, smarter tools; compact, structured output; read-only by default so an agent can explore your Webmaster data safely.
Tools (v0.1)
get_hosts— list the sites available to your token with theirhost_id, URL and verification state; optionally a host summary (SQI, indexed/excluded pages, site problems). Read-only. Call this first.search_queries— search-query analytics from Yandex Search: impressions, clicks, average show/click position.report="top"ranks the queries bringing the most traffic;report="trend"returns a time series (per query or the site aggregate). Filter by device and date range. Read-only.get_indexing— how Yandex crawls and indexes the host.report="history"gives crawled pages by HTTP status class over time;report="crawled"lists example crawled URLs with their codes;report="in_search"lists example pages currently in search. Read-only.get_diagnostics— problems detected on the site (DNS, slow response, robots.txt, 4xx, …) with severity, active problems first. Read-only.list_sitemaps— the Sitemap files Yandex knows, with URL counts, error counts and where each was discovered. Read-only.get_external_links— inbound links (backlinks):report="samples"for example links with source/target,report="history"for the count over time. Read-only.recrawl_status— remaining daily recrawl quota plus recent recrawl tasks and their state; passtaskIdto check one task. Read-only.recrawl_submit— ask Yandex to recrawl a specific URL sooner. The one write tool; consumes one unit of the daily quota. Returns the task id.
Planned: write tools for sitemaps, original texts and feeds, deferred to a later, opt-in release.
Requirements
- Node.js >= 18
- A Yandex account with at least one site added in Yandex Webmaster
Authentication
Three ways, in priority order:
- Interactive login (recommended) —
npx @boxlab/yandex-webmaster-mcp auth. Uses the built-in public OAuth client over PKCE; the token is valid ~6 months. - Static token — set
YANDEX_WEBMASTER_TOKEN(e.g. for CI) to an OAuth token for an app with thewebmaster:hostinfoscope. - Your own OAuth app — set
YANDEX_OAUTH_CLIENT_ID(andYANDEX_OAUTH_CLIENT_SECRETto enable automatic token refresh). The app needs thewebmaster:hostinfoandwebmaster:verifyscopes.
See .env.example for all configuration.
Development
Bun-first:
The published package runs on Node; local development uses Bun.
License
MIT
來源:README.md,提交 5cd6513
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分