Yandex Metrika MCP server
MCP server for Yandex Metrika API — counters, goals, reports, segments, logs
2 stars32 downloads/wk
Reviews
Write oneNobody has reviewed Yandex Metrika yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Yandex Metrika tools (12, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
ym_counterGet counter details. field: goals,mirrors,grants,filters,operation.
ym_countersList counters. Optional filters: search_string, permission (own/view/edit), status (Active/Deleted), per_page, offset.
ym_executewrite actionExecute action by ID. params_json validated against action schema. Use ym_search to discover actions and their schemas first.
ym_execute_filewrite actionExecute action that reads or writes a file (uploads/downloads). file_path must be under ~/... or /tmp/... Use ym_search to discover file actions (is_file=true).
ym_goalsList goals for a counter.
ym_grantsList access grants for a counter.
ym_labelsList all labels.
ym_log_requestsList log API requests for a counter.
ym_searchFind available actions by intent. Optional domain filter: reporting, counters, goals, filters, grants, operations, segments, labels, accounts, delegates, annotations, access_filters, logs, uploads. Returns action ID, description, and JSON Schema of parameters.
ym_segmentsList segments for a counter.
ym_stat_dataTable report (GET /stat/v1/data). ids and metrics are comma-separated. Example: ids='12345', metrics='ym:s:visits,ym:s:users', dimensions='ym:s:browser', date1='7daysAgo', date2='today'.
ym_stat_data_bytimeTime-series report (GET /stat/v1/data/bytime). group: all/auto/minutes/hour/day/week/month/quarter/year.
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan9 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 141 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Yandex Metrika compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 72/100
- higher than 38% of 48,255 servers
- Tools
- 12
- the typical server has 7
- Tools that change things
- 17%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 32
- more than 20% of 12,191 servers with a package
What its tools let an agent do: 10 read · 2 change
Install Yandex Metrika in Claude Code, Cursor or VS Code
claude mcp add yandex-metrika -- uvx mcp-server-yandex-metrika
What the publisher says
From the Yandex Metrika repository's README, as published. We do not edit it. Read it on GitHub
<!-- mcp-name: io.github.dontsovcmc/yandex-metrika -->
mcp-server-yandex-metrika
MCP-сервер, CLI-утилита и библиотека Pydantic-моделей для API Яндекс Метрики.
- MCP-сервер — интеграция с Claude Code, Claude Desktop и другими MCP-клиентами
- CLI-утилита — работа с API из терминала, скрипты и автоматизация
- Pydantic-модели — типизированные модели API для использования в своих Python-программах
Все данные остаются на вашем компьютере — токен никуда не передаётся.
Оглавление
- Возможности
- MCP-сервер
- Установка
- Подключение к Claude Code
- Подключение к Claude Desktop
- Подключение через --mcp-config
- Примеры
- CLI-утилита
- Установка
- Использование
- Примеры команд
- Pydantic-модели
Возможности
Отчёты (Reporting API)
Счётчики
Цели
Фильтры
Доступ (Grants)
Операции
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Yandex Metrika: common questions
- Is Yandex Metrika MCP server safe?
- Mostly: it is graded B (72/100). Read the Yandex Metrika safety report
- How do I install Yandex Metrika?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Yandex Metrika need an API key?
- Yes. The registry entry asks for
YANDEX_METRIKA_TOKEN. - Is Yandex Metrika maintained?
- The last commit was 179 days ago (2026-05-09). The latest release is v0.2.4.
- How does Yandex Metrika compare with other MCP servers?
- safety score 72/100 (higher than 38% of 48,255 servers); tools 12 (the typical server has 7); tools that change things 17% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.