Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

Yandex Metrica MCP

NPM · MCP-YANDEX-METRICA · SCANNED SEP 21

MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.

Available components

0 this week 81 Trust /100
Trust breakdown (7 categories)

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 Security98
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • 31 of 96 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability70
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 1980 tokens (~247/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 Management87
  • Stability observed for 26 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
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
Install

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

# add to Claude Code
claude mcp add askads-mcp-yandex-metrica -- npx -y mcp-yandex-metrica
// .cursor/mcp.json
{
  "mcpServers": {
    "askads-mcp-yandex-metrica": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-metrica"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "askads-mcp-yandex-metrica": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-metrica"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add askads-mcp-yandex-metrica -- npx -y mcp-yandex-metrica
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "askads-mcp-yandex-metrica": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "mcp-yandex-metrica"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add askads-mcp-yandex-metrica --command npx --arg -y --arg mcp-yandex-metrica
# ~/.hermes/config.yaml
mcp_servers:
  askads-mcp-yandex-metrica:
    command: "npx"
    args: ["-y", "mcp-yandex-metrica"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "askads-mcp-yandex-metrica": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "mcp-yandex-metrica"
      ]
    }
  }
}
# add to Vellum
assistant mcp add askads-mcp-yandex-metrica -t stdio -c npx -a -y mcp-yandex-metrica
// mcp.json
{
  "mcpServers": {
    "askads-mcp-yandex-metrica": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-metrica"
      ]
    }
  }
}
Changelog

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.

  • 20 Sept 26 +1
    • Security disclosure: unverified → fail functional
  • 19 Sept 26 −3
    • Security disclosure: fail → unverified functional
    • Stability: pass → 0.80 functional
  • 18 Sept 26 0
    • Stability: 0.97 → pass security
  • 17 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

  • 16 Sept 26 0
    • Package version: 1.3.1 → 1.4.1 functional
  • 15 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 87 to 90. That category is still filling its 30-day observation window: 26 days of observed history at the previous scan, 27 at this one. The score rises as the window fills, whether or not the server changes.

  • 14 Sept 26 −2
    • Stability: pass → 0.87 functional
  • 13 Sept 26 0
    • Stability: 0.97 → pass security
Diagnostics

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 21 Sept 2026 · Analysed npm/mcp-yandex-metrica@1.4.1

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 →

Dependencies 96 packages
Packages resolved 96
Stale 31
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 8 exposed · ~1,570 tokens

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 →

Tool Tokens
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 заново и попросите свежий.

NameTypeReqDescription
codestringyesКод подтверждения, который Яндекс показал пользователю после входа.

No output schema declared.

No examples provided.

get_statistics ~658

Запрашивает 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). В ответе есть `totals` (итог по ВСЕМ строкам — для вопросов «сколько всего» суммировать не нужно), `total_rows` и `sampled`/`sample_share` (sampled=true означает, что данные приблизительные; для точных цифр нужно сузить период или передать accuracy=full). Если counterId не передан, берётся YANDEX_METRIKA_COUNTER_ID.

NameTypeReqDescription
accuracyТочность сэмплирования: 'full' — точный расчёт (медленнее) или доля 0..1. По умолчанию — авторежим API.
autoPaginatebooleanЗабирает все строки, листая страницами максимального для API размера (склеивает data, сохраняет totals). Игнорирует `limit`; ограничен maxPages и лимитами по строкам/байтам (при их достижении выставл…
counterIdintegerИдентификатор счётчика. По умолчанию YANDEX_METRIKA_COUNTER_ID.
date1stringДата начала: YYYY-MM-DD или относительная (today, yesterday, NdaysAgo). По умолчанию 7daysAgo.
date2stringДата конца: YYYY-MM-DD или относительная (today, yesterday, NdaysAgo). По умолчанию yesterday.
dimensionsarrayИзмерения для группировки, например ym:s:date, ym:s:lastTrafficSource, ym:s:deviceCategory. Без них — итог за период.
filtersstringВыражение фильтра Метрики, например ym:s:deviceCategory=='mobile'.
limitintegerМаксимум строк на странице (игнорируется, если задан autoPaginate).
maxPagesintegerЛимит страниц для autoPaginate. По умолчанию 100.
metricsarrayМетрики, например ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:goal<id>reaches. По умолчанию — типовой набор.
offsetintegerСмещение по строкам для постраничной выдачи, отсчёт с 1.
sortstringПоле сортировки; префикс '-' — по убыванию, например -ym:s:visits.

No output schema declared.

No examples provided.

list_counters ~146

Возвращает счётчики Яндекс Метрики, доступные токену (Management API). У каждого счётчика есть id, name и site2 (домен сайта) — id используется в get_statistics и list_goals. Фильтр по подстроке имени или сайта задаётся параметром `search`.

NameTypeReqDescription
offsetintegerСмещение для постраничной выдачи, отсчёт с 1.
perPageintegerМаксимум счётчиков в ответе. По умолчанию 100.
searchstringПодстрока для фильтра счётчиков по имени или сайту, без учёта регистра.

No output schema declared.

No examples provided.

list_goals ~117

Возвращает цели (конверсии), настроенные на счётчике Метрики (Management API). Идентификаторы целей нужны, чтобы запросить метрики конверсий (ym:s:goal<id>reaches / ym:s:goal<id>conversionRate) в get_statistics. Если counterId не передан, берётся YANDEX_METRIKA_COUNTER_ID.

NameTypeReqDescription
counterIdintegerИдентификатор счётчика. По умолчанию YANDEX_METRIKA_COUNTER_ID.

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 ~218

Универсальный запрос: обращается напрямую к любому пути API Яндекс Метрики — например "management/v1/counters", "management/v1/counter/{id}/goals", "stat/v1/data". Нужен для эндпоинтов, у которых нет отдельного инструмента. `query` уходит в строку запроса, `body` отправляется как JSON для POST. GET выполняется свободно; POST и DELETE — это запись, им нужен confirmWrite=true.

NameTypeReqDescription
bodyobjectТело запроса в JSON для POST.
confirmWritebooleanДолжен быть true для записи (POST или DELETE).
methodstringHTTP-метод. По умолчанию GET.
pathstringyesПуть API, например "stat/v1/data" или "management/v1/counter/12345/goals".
queryobjectПараметры строки запроса (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.

Common questions

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 81 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 21 September 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,570 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 21 September 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.