Yandex Metrica MCP
NPM · MCP-YANDEX-METRICA
MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.
Available components
Last scanned (4 hours ago)
Scores higher than 48% of npm servers
Category Marketing and SEO
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security81
- No malware found by supply-chain analysis.Pass
- CVE check failed: a known high-severity CVE affects zod 3.25.76, a direct dependency. A fixed version is available. View diagnostics → Fail
- No install/post-install scripts declared.Pass
- 30 of 93 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 3 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability67
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 2299 tokens (~287/item across 8 items; 8 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management74
- Stability check failed: the tool surface changed between 1.4.1 and 1.5.5: 0 tool removals, 2 breaking changes, 0 additions. See how to fix → Fail
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 8 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 9 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 5 Nov 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 71 to 74.
- 4 Nov 26 −3
No change was recorded against any check on this day. Stability & Change Management went from 88 to 71.
- 1 Nov 26 +15
- Stability: fail → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Malware scan: unverified → pass ▲ security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Schema quality: Schema quality not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. functional
- Package version: 1.5.4 → 1.5.5 functional
- 31 Oct 26 0
- Known CVEs: fail → unverified ▼ security
- Malware scan: unverified → pass ▲ security
- Schema quality: 251 → 281 ▼ functional
- Dependency health: 0.85 → unverified ▼ functional
- Package version: 1.5.1 → 1.5.4 functional
- Package version: 1.5.1 → 1.5.3 functional
- Package version: 1.5.1 → 1.5.2 functional
- 30 Oct 26 −17
- Malware scan: pass → unverified ▼ security
- Stability: pass → fail ▼ security
- Package version: 1.4.1 → 1.5.1 functional
- Package version: 1.4.1 → 1.5.0 functional
- 29 Oct 26 +1
- Stability: 0.97 → pass security
- 28 Oct 26 −1
- Stability: pass → 0.97 functional
- 24 Oct 26 −5
- CVE-2023-54404 affects this package: high ▼ security
- Known CVEs: pass → fail ▼ security
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 5 Nov 2026 · Analysed npm/mcp-yandex-metrica@1.5.5
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | npm |
Background: How many MCP packages publish verified provenance →
Vulnerabilities 1 finding
| ID | CVE | Severity | Vector | Fix available |
|---|---|---|---|---|
| GHSA-mrhx-c7xc-m3w5 | CVE-2023-54404 | high | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | yes |
Background: What a vulnerability scan can and cannot prove →
Dependencies 93 packages
| Packages resolved | 93 |
|---|---|
| Stale | 30 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
auth_status Статус подключения к Метрике ~101
Показывает, подключена ли Яндекс Метрика: есть ли токен, откуда он взят (переменная окружения YANDEX_METRIKA_TOKEN или сохранённый вход), когда истекает и где лежит файл с сохранёнными данными. Ничего не отправляет в сеть и не показывает сам токен. Вызовите это, если инструменты Метрики отвечают, что подключение не настроено.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
finish_login Завершить подключение Метрики ~123
Второй шаг подключения: обменивает код подтверждения из start_login на токен доступа, сохраняет его в файл только для владельца (0600) и сразу проверяет живым запросом к Метрике. После успеха остальные инструменты работают немедленно — перезапускать клиент не нужно. Код одноразовый и живёт 10 минут: если он не принят, вызовите start_login заново и попросите свежий.
| Name | Type | Req | Description |
|---|---|---|---|
| code | string | yes | Код подтверждения, который Яндекс показал пользователю после входа. |
No output schema declared.
No examples provided.
get_statistics Статистика ~958
Запрашивает Reporting API Яндекс Метрики (stat/v1/data) по счётчику. ПО УМОЛЧАНИЮ возвращает одну строку, агрегированную за период (без измерений), с visits/users/pageviews/bounceRate/avgVisitDurationSeconds. `dimensions` разбивает результат на строки (ym:s:date — динамика по дням, ym:s:lastTrafficSource — источники трафика, ym:s:deviceCategory — устройства), `metrics` задаёт нужные метрики — для конверсий это ym:s:goal<goalId>reaches / ym:s:goal<goalId>conversionRate (идентификаторы целей даёт list_goals). Префиксы не смешиваются: ym:s:* (визиты) и ym:pv:* (просмотры страниц) в одном запросе сочетаются только через filters. Ответ 400 «Incorrectly specified attribute» значит, что такого поля нет: не перебирать варианты имени, а взять поле из списка в `dimensions`. В ответе есть `totals` (итог по ВСЕМ строкам — для вопросов «сколько всего» суммировать не нужно), `total_rows` и `sampled`/`sample_share` (sampled=true означает, что данные приблизительные; для точных цифр нужно сузить период или передать accuracy=full). users — уникальные посетители за весь период: сумма users по дням их не даёт. counterId обязателен: id счётчика даёт list_counters.
| Name | Type | Req | Description |
|---|---|---|---|
| accuracy | – | – | Точность сэмплирования: 'full' — точный расчёт (медленнее) или доля 0..1. По умолчанию — авторежим API. |
| autoPaginate | boolean | – | Забирает все строки, листая страницами максимального для API размера (склеивает data, сохраняет totals). Игнорирует `limit`; ограничен maxPages и лимитами по строкам/байтам (при их достижении выставл… |
| counterId | integer | yes | Идентификатор счётчика из list_counters. |
| date1 | string | – | Дата начала: YYYY-MM-DD или относительная (today, yesterday, NdaysAgo). По умолчанию 7daysAgo. |
| date2 | string | – | Дата конца: YYYY-MM-DD или относительная (today, yesterday, NdaysAgo). По умолчанию yesterday. |
| dimensions | array | – | Измерения для группировки; без них — итог за период. Частые: ym:s:date (по дням), ym:s:startOfWeek / ym:s:startOfMonth (по неделям / месяцам), ym:s:startURL / ym:s:endURL (страница входа / выхода; ym… |
| directClientLogins | array | – | Логины клиентов Яндекс Директа — нужны метрикам расходов Директа (ym:ad:*), без них API отвечает 403 direct_client_logins. |
| filters | string | – | Выражение фильтра Метрики, например ym:s:deviceCategory=='mobile'. |
| limit | integer | – | Максимум строк на странице (игнорируется, если задан autoPaginate). |
| maxPages | integer | – | Лимит страниц для autoPaginate. По умолчанию 100. |
| metrics | array | – | Метрики (не больше 20 — лимит API), например ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:goal<id>reaches. По умолчанию — типовой набор. |
| offset | integer | – | Смещение по строкам для постраничной выдачи, отсчёт с 1. |
| sort | string | – | Поле сортировки; префикс '-' — по убыванию, например -ym:s:visits. |
No output schema declared.
No examples provided.
list_counters Список счётчиков Метрики ~176
Возвращает счётчики Яндекс Метрики, доступные токену (Management API). У каждого счётчика есть id, name и site2 (домен сайта) — id используется в get_statistics и list_goals. Фильтр по подстроке имени или сайта задаётся параметром `search`. На один сайт бывает несколько счётчиков (старый и новый, тестовый, отдельный для поддомена) — у каждого свои данные.
| Name | Type | Req | Description |
|---|---|---|---|
| offset | integer | – | Смещение для постраничной выдачи, отсчёт с 1. |
| perPage | integer | – | Максимум счётчиков в ответе. По умолчанию 100. |
| search | string | – | Подстрока для фильтра счётчиков по имени или сайту, без учёта регистра. |
No output schema declared.
No examples provided.
list_goals Список целей счётчика ~106
Возвращает цели (конверсии), настроенные на счётчике Метрики (Management API). Идентификаторы целей нужны, чтобы запросить метрики конверсий (ym:s:goal<id>reaches / ym:s:goal<id>conversionRate) в get_statistics. counterId обязателен: id счётчика даёт list_counters.
| Name | Type | Req | Description |
|---|---|---|---|
| counterId | integer | yes | Идентификатор счётчика из list_counters. |
No output schema declared.
No examples provided.
logout Отключить Метрику ~85
Удаляет сохранённый токен Метрики с диска. Токен, заданный переменной окружения YANDEX_METRIKA_TOKEN, не трогает — его нужно убирать из конфигурации клиента вручную. Доступ, выданный приложению, остаётся активным на стороне Яндекса: отозвать его можно в Яндекс ID.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
raw_request Произвольный запрос к API Яндекс Метрики ~218
Универсальный запрос: обращается напрямую к любому пути API Яндекс Метрики — например "management/v1/counters", "management/v1/counter/{id}/goals", "stat/v1/data". Нужен для эндпоинтов, у которых нет отдельного инструмента. `query` уходит в строку запроса, `body` отправляется как JSON для POST. GET выполняется свободно; POST и DELETE — это запись, им нужен confirmWrite=true.
| Name | Type | Req | Description |
|---|---|---|---|
| body | object | – | Тело запроса в JSON для POST. |
| confirmWrite | boolean | – | Должен быть true для записи (POST или DELETE). |
| method | string | – | HTTP-метод. По умолчанию GET. |
| path | string | yes | Путь API, например "stat/v1/data" или "management/v1/counter/12345/goals". |
| query | object | – | Параметры строки запроса (ids, metrics, dimensions, date1, date2, ...). |
No output schema declared.
No examples provided.
start_login Начать подключение Метрики ~122
Первый шаг подключения Яндекс Метрики без правки конфигурации и без перезапуска клиента. Возвращает ссылку на страницу Яндекс OAuth. Покажите ссылку пользователю целиком и попросите: открыть её в браузере под аккаунтом, у которого есть доступ к нужным счётчикам, подтвердить доступ и прислать показанный код подтверждения. Полученный код передайте в finish_login. Код действует 10 минут. Сам по себе код бесполезен для постороннего: обменять его может только этот сервер.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
How do I install the Yandex Metrica MCP server?
Yandex Metrica MCP runs locally as an npm package, launched with npx -y mcp-yandex-metrica. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
npm · mcp-yandex-metrica
claude mcp add askads-mcp-yandex-metrica -- npx -y mcp-yandex-metrica
What is the Yandex Metrica MCP server?
Yandex Metrica MCP is listed in the public MCP registry as io.github.askads/mcp-yandex-metrica. MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics. This page covers its npm package (mcp-yandex-metrica).
Is the Yandex Metrica MCP server safe to use?
Yandex Metrica MCP scores 74 out of 100 on VerifyMCP. We recorded 1 known advisory against it as of 5 November 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the Yandex Metrica MCP server expose?
Yandex Metrica MCP exposes 8 tools: auth_status, start_login, finish_login, logout, list_counters, and 3 more. Their descriptions and schemas cost roughly 1,889 tokens of context every time the server is loaded.
Is the Yandex Metrica MCP server still maintained?
Yandex Metrica MCP is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the Yandex Metrica MCP server under?
Yandex Metrica MCP declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.