Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Yandex Metrika

by dontsovcmcversion 0.2.4i★ –iRuns on your computer
Registry nameio.github.dontsovcmc/yandex-metrika

Install

Overview

Description from the maker (original English)

MCP server for Yandex Metrika API — counters, goals, reports, segments, logs

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Developer tools
  • You need to fill in: YANDEX_METRIKA_TOKEN

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: YANDEX_METRIKA_TOKEN

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • PyPIPython’s uv installed (for the uvx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "yandex-metrika": {
      "command": "uvx",
      "args": [
        "mcp-server-yandex-metrika"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add yandex-metrika --env YANDEX_METRIKA_TOKEN=your-value -- uvx mcp-server-yandex-metrika

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "yandex-metrika": {
      "command": "uvx",
      "args": [
        "mcp-server-yandex-metrika"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "yandex-metrika": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-yandex-metrika"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • YANDEX_METRIKA_TOKEN secret required env

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account dontsovcmc, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Developer toolsi

  • More stars than 0% of the other 4912 servers in this category
  • Published to the registry more recently than 14% of the other 4912 servers in this category
  • Basic checks equal to or better than 100% of the other 4912 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Yandex Metrika safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: YANDEX_METRIKA_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (0.2.4) reached the registry 6 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: GitHub, Desktop Commander, Cloudflare MCP

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHub

by github

GitHub’s official server lets AI read and manage code, issues and pull requests in your account. Use GitHub’s hosted version or run it locally with Docker.

Computer or cloud★ 34,245MITUpdated 4 days ago
Install

Desktop Commander

by wonderwhy-er

MCP server for terminal commands, file operations, and process management

Runs on your computer★ 10,225MITUpdated 16 days ago
Install

Cloudflare MCP

by cloudflare

Cloudflare MCP servers

Runs in the cloud★ 4,446Apache-2.0Updated 14 months ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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-модели
  • Установка
  • Использование в своих программах
  • Переменные окружения
  • Лимиты API
  • Разработка
  • Лицензия

Возможности

Отчёты (Reporting API)
ИнструментCLIОписание
ym_stat_datastat-dataТабличный отчёт по метрикам и измерениям
ym_stat_data_bytimestat-bytimeОтчёт по времени (группировка: час/день/неделя/месяц)
ym_stat_data_drilldownstat-drilldownDrill down отчёт с раскрытием уровней
ym_stat_data_comparisonstat-comparisonСравнение сегментов/периодов
ym_stat_data_comparison_drilldown—Сравнение с drill down
Счётчики
ИнструментCLIОписание
ym_counterscountersСписок счётчиков (поиск, фильтрация)
ym_countercounterИнформация о счётчике
ym_counter_createcounter-createСоздать счётчик
ym_counter_updatecounter-updateИзменить счётчик
ym_counter_deletecounter-deleteУдалить счётчик
ym_counter_undeletecounter-undeleteВосстановить удалённый
Цели
ИнструментCLIОписание
ym_goalsgoalsСписок целей счётчика
ym_goalgoalИнформация о цели
ym_goal_creategoal-createСоздать цель (url/number/step/action/...)
ym_goal_update—Изменить цель
ym_goal_deletegoal-deleteУдалить цель
Фильтры
ИнструментCLIОписание
ym_filtersfiltersСписок фильтров
ym_filter—Информация о фильтре
ym_filter_createfilter-createСоздать фильтр (IP, URL, реферер)
ym_filter_update—Изменить фильтр
ym_filter_deletefilter-deleteУдалить фильтр
Доступ (Grants)
ИнструментCLIОписание
ym_grantsgrantsСписок разрешений
ym_grant_creategrant-createВыдать разрешение
ym_grant_update—Изменить разрешение
ym_grant_deletegrant-deleteУдалить разрешение
Операции
ИнструментCLIОписание
ym_operationsoperationsСписок операций
ym_operation—Информация об операции
ym_operation_createoperation-createСоздать операцию (cut_parameter, to_lower, ...)
ym_operation_update—Изменить операцию
ym_operation_deleteoperation-deleteУдалить операцию
Сегменты
ИнструментCLIОписание
ym_segmentssegmentsСписок сегментов
ym_segment—Информация о сегменте
ym_segment_createsegment-createСоздать сегмент
ym_segment_update—Изменить сегмент
ym_segment_deletesegment-deleteУдалить сегмент
Метки
ИнструментCLIОписание
ym_labelslabelsСписок меток
ym_label_createlabel-createСоздать метку
ym_label_update—Изменить метку
ym_label_deletelabel-deleteУдалить метку
ym_counter_label_set—Привязать метку к счётчику
ym_counter_label_unset—Отвязать метку
Аккаунты и представители
ИнструментCLIОписание
ym_accountsaccountsСписок аккаунтов
ym_account_delete—Удалить аккаунт
ym_delegatesdelegatesСписок представителей
ym_delegate_adddelegate-addДобавить представителя
ym_delegate_deletedelegate-deleteУдалить представителя
Примечания на графике
ИнструментCLIОписание
ym_chart_annotationschart-annotationsСписок примечаний
ym_chart_annotation_createchart-annotation-createСоздать примечание
ym_chart_annotation_update—Изменить примечание
ym_chart_annotation_delete—Удалить примечание
Фильтры доступа
ИнструментCLIОписание
ym_access_filters—Список фильтров доступа
ym_access_filter_create—Создать фильтр доступа
ym_access_filter_update—Изменить фильтр доступа
ym_access_filter_delete—Удалить фильтр доступа
Logs API
ИнструментCLIОписание
ym_log_requestslog-requestsСписок запросов логов
ym_log_request—Информация о запросе
ym_log_request_createlog-request-createСоздать запрос (hits/visits)
ym_log_request_evaluatelog-request-evaluateОценить возможность запроса
ym_log_request_clean—Очистить обработанные логи
ym_log_request_cancel—Отменить запрос
ym_log_request_downloadlog-downloadСкачать часть лога (TSV)
Импорт данных
ИнструментCLIОписание
ym_offline_conversions_uploadupload-conversionsЗагрузить оффлайн-конверсии
ym_offline_conversions_uploads—Список загрузок конверсий
ym_offline_conversion_upload_info—Инфо о загрузке
ym_calls_uploadupload-callsЗагрузить звонки
ym_calls_uploads—Список загрузок звонков
ym_calls_upload_info—Инфо о загрузке звонков
ym_expenses_uploadupload-expensesЗагрузить расходы
ym_user_params_upload—Загрузить параметры пользователей

MCP-сервер

Установка
Шаг 1. Получить OAuth-токен Яндекс Метрики
  1. Зарегистрируйте приложение на oauth.yandex.com
  2. Укажите права: metrika:read, metrika:write
  3. Получите токен: https://oauth.yandex.com/authorize?response_type=token&client_id=<ваш_client_id>
Шаг 2. Подключить MCP-сервер
Подключение к Claude Code

Способ 1: через uvx (не требует установки пакета)

Требуется uv — если не установлен:

`bash

curl -LsSf https://astral.sh/uv/install.sh | sh

`

claude mcp add yandex-metrika \

-e YANDEX_METRIKA_TOKEN=ваш_токен \ -- uvx mcp-server-yandex-metrika

Способ 2: через pip

pip install mcp-server-yandex-metrika

claude mcp add yandex-metrika \ -e YANDEX_METRIKA_TOKEN=ваш_токен \ -- mcp-server-yandex-metrika

Для удаления:

claude mcp remove yandex-metrika
Подключение к Claude Desktop

Добавьте в конфигурационный файл:

КлиентОСПуть к файлу
Claude Codeвсе~/.claude/settings.json (секция mcpServers)
Claude DesktopmacOS~/Library/Application Support/Claude/claude_desktop_config.json
Claude DesktopWindows%APPDATA%\Claude\claude_desktop_config.json
Claude DesktopLinux~/.config/Claude/claude_desktop_config.json

Через uvx:

{

"mcpServers": { "yandex-metrika": { "command": "uvx", "args": ["mcp-server-yandex-metrika"], "env": { "YANDEX_METRIKA_TOKEN": "ваш_токен" } } } }

Через pip (после pip install mcp-server-yandex-metrika):

{

"mcpServers": { "yandex-metrika": { "command": "python", "args": ["-m", "mcp_server_yandex_metrika"], "env": { "YANDEX_METRIKA_TOKEN": "ваш_токен" } } } }

Подключение через --mcp-config

Подключает сервер только на время одной сессии Claude, не сохраняя в настройки. Токен хранится в отдельном .env.mcp файле, а не в конфиге Claude.

Из JSON-строки:

claude --mcp-config '{"yandex-metrika":{"command":"bash","args":["-c","source ~/.env.mcp && exec uvx mcp-server-yandex-metrika"]}}'

Из файла:

claude --mcp-config ~/mcp-servers.json

Пример ~/mcp-servers.json:

{

"yandex-metrika": { "command": "bash", "args": ["-c", "source ~/.env.mcp && exec uvx mcp-server-yandex-metrika"] } }

Пример ~/.env.mcp:

YANDEX_METRIKA_TOKEN=ваш_токен
Шаг 3. Проверить

Попросите Claude: *«Покажи список моих счётчиков Яндекс Метрики»* — он вызовет ym_counters.

Примеры (MCP)
  • «Покажи статистику по визитам за последнюю неделю для счётчика 12345678» → ym_stat_data
  • «Создай цель "Покупка" типа url с условием contain "/thank-you"» → ym_goal_create
  • «Выгрузи логи визитов за январь 2024» → ym_log_request_create

CLI-утилита

Установка (CLI)
pip install mcp-server-yandex-metrika

Переменная окружения YANDEX_METRIKA_TOKEN должна быть установлена:

export YANDEX_METRIKA_TOKEN=ваш_токен

Или через файл:

mcp-server-yandex-metrika --env /path/to/.env counters

Формат файла — KEY=VALUE, по одной переменной на строку, #-комментарии.

Использование (CLI)

Без аргументов запускается MCP-сервер, с командой — CLI. Все команды выводят JSON.

# Версия

mcp-server-yandex-metrika --version

Справка

mcp-server-yandex-metrika --help mcp-server-yandex-metrika --help

Примеры команд
# Статистика визитов

mcp-server-yandex-metrika stat-data --ids 12345678 --metrics ym:s:visits,ym:s:users

Список счётчиков

mcp-server-yandex-metrika counters --search "мой сайт"

Цели счётчика

mcp-server-yandex-metrika goals 12345678

Создать запрос логов

mcp-server-yandex-metrika log-request-create 12345678 \ --date1 2024-01-01 --date2 2024-01-31 \ --fields "ym:s:date,ym:s:visitID" --source visits


Pydantic-модели

Пакет содержит типизированные Pydantic-модели всех объектов API. Модели можно использовать в своих Python-программах для валидации данных и автодополнения в IDE.

Установка (библиотеки)
pip install mcp-server-yandex-metrika
Использование в своих программах
from mcp_server_yandex_metrika.models import CounterBrief, Goal

Валидация данных из API

data = {"id": 12345678, "name": "Мой сайт", "status": "Active"} counter = CounterBrief.model_validate(data) print(counter.name) # type-safe доступ к полям

Создание объекта

goal = Goal(name="Покупка", type="url") print(goal.model_dump_json())

Все модели используют extra="allow" для forward compatibility — неизвестные поля API не вызывают ошибок.

Полный список моделей: models.py


Переменные окружения

ПеременнаяОбязательнаяПо умолчаниюОписание
YANDEX_METRIKA_TOKENда—OAuth-токен Яндекс Метрики
METRIKA_TIMEOUTнет30Таймаут HTTP-запросов к API (секунды)
METRIKA_FILE_TIMEOUTнет60Таймаут скачивания файлов (секунды)
Загрузка из файла

Вместо передачи переменных через -e можно указать файл:

mcp-server-yandex-metrika --env /path/to/.env

Формат фай

Only the beginning is shown; read the rest in the repo

Ask PopNx