
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 分