Yandex Webmaster MCP
概览
作者提供的说明(英文原文)
MCP server for Yandex Webmaster API — site analytics, indexing, search queries
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 69/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 营销与社交媒体
- 你需要填写:YANDEX_WEBMASTER_TOKEN
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
YANDEX_WEBMASTER_TOKEN
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"yandex-webmaster": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-webmaster-mcp"
],
"env": {
"YANDEX_WEBMASTER_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add yandex-webmaster --env YANDEX_WEBMASTER_TOKEN=your-value -- npx -y @stufently/yandex-webmaster-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"yandex-webmaster": {
"command": "npx",
"args": [
"-y",
"@stufently/yandex-webmaster-mcp"
],
"env": {
"YANDEX_WEBMASTER_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"yandex-webmaster": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@stufently/yandex-webmaster-mcp"
],
"env": {
"YANDEX_WEBMASTER_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- OAuth token for Yandex Webmaster
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 stufently 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“营销与社交媒体”中的其他服务器比较i
- 星标数多于此分类中其他 3697 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3697 个服务器的 55% 更新
- 基础检查结果等于或优于此分类中其他 3697 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Yandex Webmaster MCP 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:YANDEX_WEBMASTER_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(2.2.1)于25天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Google Analytics MCP
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
BibiGPT YouTube Video Summarizer
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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:
git clone https://github.com/stufently/yandex-mcp.git
cd yandex-mcp && bun install node packages/yandex-webmaster-mcp/src/index.mjs
Configuration
Add to your MCP client config:
{
"mcpServers": { "yandex-webmaster": { "command": "node", "args": ["/path/to/yandex-mcp/packages/yandex-webmaster-mcp/src/index.mjs"], "env": { "YANDEX_WEBMASTER_TOKEN": "your-oauth-token" } } } }
Environment Variables
| Variable | Required | Description |
|---|---|---|
YANDEX_WEBMASTER_TOKEN | Yes | OAuth token for Webmaster API |
YANDEX_CLIENT_ID | For auth flow | Yandex OAuth app client ID |
YANDEX_CLIENT_SECRET | For auth flow | Yandex OAuth app client secret |
Authentication
To obtain an OAuth token interactively:
node packages/yandex-webmaster-mcp/src/index.mjs auth
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)
| Tool | Description | Parameters |
|---|---|---|
get-user | Get current Webmaster user info and user_id | -- |
list-hosts | List all hosts (sites) with their `host_id` — the identifier every other tool needs | -- |
get-host | Get details for a specific host | host_id |
Statistics (2)
| Tool | Description | Parameters |
|---|---|---|
get-summary | Get site summary: SQI, page counts, problems | host_id |
get-sqi-history | Get SQI (Site Quality Index) history | host_id, date_from?, date_to? |
Diagnostics (1)
| Tool | Description | Parameters |
|---|---|---|
get-diagnostics | Get site diagnostics and problems | host_id |
Search Queries (2)
| Tool | Description | Parameters |
|---|---|---|
get-popular-queries | Get popular search queries for a site | host_id, order_by (TOTAL_SHOWS/TOTAL_CLICKS), device_type?, date_from?, date_to?, limit? (1-500, default: 100), offset? |
get-query-history | Get search query totals history | host_id, device_type?, date_from?, date_to? |
Indexing (4)
| Tool | Description | Parameters |
|---|---|---|
get-indexing-history | Get indexing history over time | host_id, date_from?, date_to? |
get-indexing-samples | Get sample indexed URLs | host_id, limit? (1-100), offset? |
get-insearch-history | Get in-search (appearing in results) history | host_id, date_from?, date_to? |
get-insearch-samples | Get sample URLs appearing in search | host_id, limit? (1-100), offset? |
Search Events (3)
| Tool | Description | Parameters |
|---|---|---|
get-search-events-history | Get search URL events history | host_id, date_from?, date_to? |
get-search-events-samples | Get sample URLs for search events, with per-URL exclusion reasons (excluded_url_status): an exclusion_reasons tally of the fetched page plus an excluded_pages list of URL → reason | host_id, event_type? (APPEARED_IN_SEARCH/REMOVED_FROM_SEARCH — client-side filter, the API has none), limit? (1-100, default: 10), offset? |
get-excluded-pages | Pages dropped from search inside a time window, with `excluded_url_status` for each one. Built from REMOVED_FROM_SEARCH events, deduplicated per URL (latest event wins), so a page that came back is reported under returned_to_search instead. Walks the mixed event stream page by page until limit excluded pages are collected, then reports next_offset (first unread event) / exhausted so the walk can continue. Also returns summary_excluded_pages_count for cross-checking | host_id, limit? (1-100 excluded pages, default: 20), offset?, max_requests? (1-50 page fetches, retries not counted, default: 10), returned_urls? (pass the previous returned_to_search when continuing a walk) |
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)
| Tool | Description | Parameters |
|---|---|---|
get-external-links | Get external links pointing to the site | host_id, limit? (1-100), offset? |
get-external-links-history | Get external links count history | host_id, date_from?, date_to? |
get-broken-internal-links | List broken internal links: destination URL, the source page linking to it, and when Yandex last checked the link. Records carry days_since_last_check, never_rechecked and stale (last check older than 90 days) | host_id, limit? (1-100), offset? |
get-broken-internal-links-history | Get broken internal links count history | host_id, date_from?, date_to? |
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)
| Tool | Description | Parameters |
|---|---|---|
get-sitemaps | List all sitemaps for a host | host_id, limit? (1-100) |
get-sitemap | Get details for a specific sitemap | host_id, sitemap_id |
get-user-sitemaps | List user-added sitemaps | host_id, limit? (1-100) |
add-sitemap | Write. Add a user sitemap file; returns sitemap_id. Additive — the file is removable in the Webmaster panel | host_id, url |
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)
| Tool | Description | Parameters |
|---|---|---|
get-important-urls | Get important URLs for a site | host_id, limit? (1-100), offset? |
get-important-url-history | Get history for a specific important URL | host_id, url, date_from?, date_to? |
Recrawl (4)
| Tool | Description | Parameters |
|---|---|---|
get-recrawl-quota | Get recrawl quota (daily limit and remainder) | host_id |
add-recrawl-url | Write. Enqueue a URL for re-crawl; consumes daily quota | host_id, url |
get-recrawl-queue | List submitted recrawl tasks and their state | host_id, limit? (default: 10), offset? |
get-recrawl-task | Get the state of one recrawl task | host_id, task_id |
Host Management (4)
These change your Webmaster account, not just read from it.
| Tool | Description | Parameters |
|---|---|---|
add-host | Write. Add a site to Webmaster (needs verification afterwards). Additive — undone by delete-host | host_url (with protocol) |
verify-host | Get verification state and applicable verification methods | host_id |
start-verification | Write. Start the ownership check (POST …/verification, no body). The verification_uin must already be on the site; the check is asynchronous — poll verify-host. Additive | host_id, verification_type (HTML_FILE / META_TAG / DNS) |
delete-host | Write. Remove a site from Webmaster. Irreversible — see Deleting a host. Needs `confirm: true` | host_id, confirm |
Deleting a host
delete-host is the only irreversible tool here, and it refuses to run unless the call carries confirm: true:
{ "host_id": "https:example.com:443", "confirm": true }
Called without it, the tool returns an error result and sends nothing to the Webmaster API:
Refused: `delete-host` requires explicit confirmation.
Removing host https:example.com:443 from Yandex Webmaster is irreversible — the site's verification, its accumulated indexing and search-query history, and its sitemap and important-URL settings go with it. Adding the same site back creates a fresh host that must be verified again and starts with no history.
Nothing was sent to the Webmaster API — no host was touched.
To go ahead, call `delete
只显示了开头部分;其余内容请在仓库中阅读