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
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
- 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 33 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
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
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
{
"mcpServers": {
"askads-mcp-yandex-metrica": {
"command": "npx",
"args": [
"-y",
"mcp-yandex-metrica"
]
}
}
} {
"servers": {
"askads-mcp-yandex-metrica": {
"command": "npx",
"args": [
"-y",
"mcp-yandex-metrica"
]
}
}
} codex mcp add askads-mcp-yandex-metrica -- npx -y mcp-yandex-metrica
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"askads-mcp-yandex-metrica": {
"type": "local",
"command": [
"npx",
"-y",
"mcp-yandex-metrica"
],
"enabled": true
}
}
} openclaw mcp add askads-mcp-yandex-metrica --command npx --arg -y --arg mcp-yandex-metrica
mcp_servers:
askads-mcp-yandex-metrica:
command: "npx"
args: ["-y", "mcp-yandex-metrica"] {
"McpServers": {
"askads-mcp-yandex-metrica": {
"Transport": "stdio",
"Command": "npx",
"Arguments": [
"-y",
"mcp-yandex-metrica"
]
}
}
} assistant mcp add askads-mcp-yandex-metrica -t stdio -c npx -a -y mcp-yandex-metrica
{
"mcpServers": {
"askads-mcp-yandex-metrica": {
"command": "npx",
"args": [
"-y",
"mcp-yandex-metrica"
]
}
}
} 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
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 →
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 Статистика ~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.
| Name | Type | Req | Description |
|---|---|---|---|
| accuracy | – | – | Точность сэмплирования: 'full' — точный расчёт (медленнее) или доля 0..1. По умолчанию — авторежим API. |
| autoPaginate | boolean | – | Забирает все строки, листая страницами максимального для API размера (склеивает data, сохраняет totals). Игнорирует `limit`; ограничен maxPages и лимитами по строкам/байтам (при их достижении выставл… |
| counterId | integer | – | Идентификатор счётчика. По умолчанию YANDEX_METRIKA_COUNTER_ID. |
| 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:lastTrafficSource, ym:s:deviceCategory. Без них — итог за период. |
| filters | string | – | Выражение фильтра Метрики, например ym:s:deviceCategory=='mobile'. |
| limit | integer | – | Максимум строк на странице (игнорируется, если задан autoPaginate). |
| maxPages | integer | – | Лимит страниц для autoPaginate. По умолчанию 100. |
| metrics | array | – | Метрики, например 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 Список счётчиков Метрики ~146
Возвращает счётчики Яндекс Метрики, доступные токену (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 Список целей счётчика ~117
Возвращает цели (конверсии), настроенные на счётчике Метрики (Management API). Идентификаторы целей нужны, чтобы запросить метрики конверсий (ym:s:goal<id>reaches / ym:s:goal<id>conversionRate) в get_statistics. Если counterId не передан, берётся YANDEX_METRIKA_COUNTER_ID.
| Name | Type | Req | Description |
|---|---|---|---|
| counterId | integer | – | Идентификатор счётчика. По умолчанию 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 Произвольный запрос к 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.
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.