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.
Description from the maker (original English)
MCP server for Yandex Metrika API — counters, goals, reports, segments, logs
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
YANDEX_METRIKA_TOKENValues marked secret are keys to your account. Never share them or paste them into a chat.
You need
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-metrikaFill in the empty values before running it.
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.
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.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
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
The registry name was verified with the GitHub account dontsovcmc, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
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.
You need to fill in: YANDEX_METRIKA_TOKEN
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).
The GitHub repo last changed –, and the latest version (0.2.4) reached the registry 6 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: GitHub, Desktop Commander, Cloudflare MCP
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’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.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
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-сервер, CLI-утилита и библиотека Pydantic-моделей для API Яндекс Метрики.
Все данные остаются на вашем компьютере — токен никуда не передаётся.
| Инструмент | CLI | Описание |
|---|---|---|
ym_stat_data | stat-data | Табличный отчёт по метрикам и измерениям |
ym_stat_data_bytime | stat-bytime | Отчёт по времени (группировка: час/день/неделя/месяц) |
ym_stat_data_drilldown | stat-drilldown | Drill down отчёт с раскрытием уровней |
ym_stat_data_comparison | stat-comparison | Сравнение сегментов/периодов |
ym_stat_data_comparison_drilldown | — | Сравнение с drill down |
| Инструмент | CLI | Описание |
|---|---|---|
ym_counters | counters | Список счётчиков (поиск, фильтрация) |
ym_counter | counter | Информация о счётчике |
ym_counter_create | counter-create | Создать счётчик |
ym_counter_update | counter-update | Изменить счётчик |
ym_counter_delete | counter-delete | Удалить счётчик |
ym_counter_undelete | counter-undelete | Восстановить удалённый |
| Инструмент | CLI | Описание |
|---|---|---|
ym_goals | goals | Список целей счётчика |
ym_goal | goal | Информация о цели |
ym_goal_create | goal-create | Создать цель (url/number/step/action/...) |
ym_goal_update | — | Изменить цель |
ym_goal_delete | goal-delete | Удалить цель |
| Инструмент | CLI | Описание |
|---|---|---|
ym_filters | filters | Список фильтров |
ym_filter | — | Информация о фильтре |
ym_filter_create | filter-create | Создать фильтр (IP, URL, реферер) |
ym_filter_update | — | Изменить фильтр |
ym_filter_delete | filter-delete | Удалить фильтр |
| Инструмент | CLI | Описание |
|---|---|---|
ym_grants | grants | Список разрешений |
ym_grant_create | grant-create | Выдать разрешение |
ym_grant_update | — | Изменить разрешение |
ym_grant_delete | grant-delete | Удалить разрешение |
| Инструмент | CLI | Описание |
|---|---|---|
ym_operations | operations | Список операций |
ym_operation | — | Информация об операции |
ym_operation_create | operation-create | Создать операцию (cut_parameter, to_lower, ...) |
ym_operation_update | — | Изменить операцию |
ym_operation_delete | operation-delete | Удалить операцию |
| Инструмент | CLI | Описание |
|---|---|---|
ym_segments | segments | Список сегментов |
ym_segment | — | Информация о сегменте |
ym_segment_create | segment-create | Создать сегмент |
ym_segment_update | — | Изменить сегмент |
ym_segment_delete | segment-delete | Удалить сегмент |
| Инструмент | CLI | Описание |
|---|---|---|
ym_labels | labels | Список меток |
ym_label_create | label-create | Создать метку |
ym_label_update | — | Изменить метку |
ym_label_delete | label-delete | Удалить метку |
ym_counter_label_set | — | Привязать метку к счётчику |
ym_counter_label_unset | — | Отвязать метку |
| Инструмент | CLI | Описание |
|---|---|---|
ym_accounts | accounts | Список аккаунтов |
ym_account_delete | — | Удалить аккаунт |
ym_delegates | delegates | Список представителей |
ym_delegate_add | delegate-add | Добавить представителя |
ym_delegate_delete | delegate-delete | Удалить представителя |
| Инструмент | CLI | Описание |
|---|---|---|
ym_chart_annotations | chart-annotations | Список примечаний |
ym_chart_annotation_create | chart-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 | — | Удалить фильтр доступа |
| Инструмент | CLI | Описание |
|---|---|---|
ym_log_requests | log-requests | Список запросов логов |
ym_log_request | — | Информация о запросе |
ym_log_request_create | log-request-create | Создать запрос (hits/visits) |
ym_log_request_evaluate | log-request-evaluate | Оценить возможность запроса |
ym_log_request_clean | — | Очистить обработанные логи |
ym_log_request_cancel | — | Отменить запрос |
ym_log_request_download | log-download | Скачать часть лога (TSV) |
| Инструмент | CLI | Описание |
|---|---|---|
ym_offline_conversions_upload | upload-conversions | Загрузить оффлайн-конверсии |
ym_offline_conversions_uploads | — | Список загрузок конверсий |
ym_offline_conversion_upload_info | — | Инфо о загрузке |
ym_calls_upload | upload-calls | Загрузить звонки |
ym_calls_uploads | — | Список загрузок звонков |
ym_calls_upload_info | — | Инфо о загрузке звонков |
ym_expenses_upload | upload-expenses | Загрузить расходы |
ym_user_params_upload | — | Загрузить параметры пользователей |
metrika:read, metrika:writehttps://oauth.yandex.com/authorize?response_type=token&client_id=<ваш_client_id>Способ 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 Code | все | ~/.claude/settings.json (секция mcpServers) |
| Claude Desktop | macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop | Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Desktop | Linux | ~/.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": "ваш_токен" } } } }
Подключает сервер только на время одной сессии 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=ваш_токен
Попросите Claude: *«Покажи список моих счётчиков Яндекс Метрики»* — он вызовет ym_counters.
ym_stat_dataym_goal_createym_log_request_createpip install mcp-server-yandex-metrika
Переменная окружения YANDEX_METRIKA_TOKEN должна быть установлена:
export YANDEX_METRIKA_TOKEN=ваш_токен
Или через файл:
mcp-server-yandex-metrika --env /path/to/.env counters
Формат файла — KEY=VALUE, по одной переменной на строку, #-комментарии.
Без аргументов запускается 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-модели всех объектов API. Модели можно использовать в своих Python-программах для валидации данных и автодополнения в IDE.
pip install mcp-server-yandex-metrika
from mcp_server_yandex_metrika.models import CounterBrief, Goal
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