Skip to main content
Glama
Rezlazy

yandex-metrika-mcp

by Rezlazy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
METRIKA_TOKENYesOAuth token with metrika:read and/or metrika:write permissions
METRIKA_API_URLNoAPI base URL (default: https://api-metrika.yandex.net)https://api-metrika.yandex.net

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
stat_dataC

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Table report — GET /stat/v1/data. Returns rows with dimensions and metrics.

stat_bytimeB

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Time series report — GET /stat/v1/data/bytime. Use for charts and trends.

stat_drilldownC

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Drill-down tree report — GET /stat/v1/data/drilldown. One tree level per request; use parent_id for nested levels.

stat_comparisonC

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Segment comparison table — GET /stat/v1/data/comparison. Compare segments A and B with separate date ranges and filters.

stat_comparison_drilldownB

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Segment comparison drill-down — GET /stat/v1/data/comparison/drilldown. Tree report comparing segments A and B.

stat_pivotB

Yandex Metrika Reports API. Docs: https://yandex.ru/dev/metrika/ru/stat/ Pivot table — GET /stat/v1/data/pivot. Rows by dimensions, columns by pivot_dimensions.

mgmt_labels_listC
mgmt_label_getC
mgmt_label_createB

https://yandex.ru/dev/metrika/ru/management/ Create label. Body: {"label": {"name": "..."}}

mgmt_label_updateB

https://yandex.ru/dev/metrika/ru/management/ Update label. Body: {"label": {"name": "..."}}

mgmt_label_deleteC
mgmt_counters_listB
mgmt_counter_getB
mgmt_counter_createB

https://yandex.ru/dev/metrika/ru/management/ Create counter. Body: {"counter": {"site": "example.com", "name": "..."}}

mgmt_counter_updateC

https://yandex.ru/dev/metrika/ru/management/ Update counter. Body: {"counter": {...}}

mgmt_counter_deleteC
mgmt_counter_undeleteB
mgmt_counter_label_setC
mgmt_counter_label_unsetC
mgmt_goals_listC
mgmt_goal_getB
mgmt_goal_createC

https://yandex.ru/dev/metrika/ru/management/ Create goal. Body: {"goal": {...}}

mgmt_goal_updateC

https://yandex.ru/dev/metrika/ru/management/ Update goal. Body: {"goal": {...}}

mgmt_goal_deleteC
mgmt_social_networks_listB

https://yandex.ru/dev/metrika/ru/management/ List social networks for social goal type

mgmt_messengers_listC

https://yandex.ru/dev/metrika/ru/management/ List messengers for messenger goal type

mgmt_filters_listC
mgmt_filter_getC
mgmt_filter_createC

https://yandex.ru/dev/metrika/ru/management/ Create filter. Body: {"filter": {...}}

mgmt_filter_updateC

https://yandex.ru/dev/metrika/ru/management/ Update filter. Body: {"filter": {...}}

mgmt_filter_deleteC
mgmt_operations_listC
mgmt_operation_getC
mgmt_operation_createC

https://yandex.ru/dev/metrika/ru/management/ Create operation. Body: {"operation": {...}}

mgmt_operation_updateB

https://yandex.ru/dev/metrika/ru/management/ Update operation. Body: {"operation": {...}}

mgmt_operation_deleteC
mgmt_grants_listC
mgmt_grant_getC
mgmt_my_grant_getC

https://yandex.ru/dev/metrika/ru/management/ Get current user grant for counter

mgmt_public_grant_createC

https://yandex.ru/dev/metrika/ru/management/ Create public grant (no body)

mgmt_public_grant_deleteC
mgmt_grant_createB

https://yandex.ru/dev/metrika/ru/management/ Create grant. Body: {"grant": {"user_login": "...", "perm": "view"}}

mgmt_grant_updateB

https://yandex.ru/dev/metrika/ru/management/ Update grant. Body: {"grant": {...}}

mgmt_grant_deleteD
mgmt_access_filters_listC

https://yandex.ru/dev/metrika/ru/management/ List access filters for counter

mgmt_access_filter_getC
mgmt_access_filter_createC

https://yandex.ru/dev/metrika/ru/management/ Create access filter. Body: {"access_filter": {...}}

mgmt_access_filter_updateC

https://yandex.ru/dev/metrika/ru/management/ Update access filter. Body: {"access_filter": {...}}

mgmt_access_filter_deleteC
mgmt_segments_listC
mgmt_segment_getD
mgmt_segment_createC

https://yandex.ru/dev/metrika/ru/management/ Create segment. Body: {"segment": {...}}

mgmt_segment_updateB

https://yandex.ru/dev/metrika/ru/management/ Update segment. Body: {"segment": {...}}

mgmt_segment_deleteC
mgmt_chart_annotations_listC
mgmt_chart_annotation_getC
mgmt_chart_annotation_createC

https://yandex.ru/dev/metrika/ru/management/ Create chart annotation. Body: {"chart_annotation": {...}}

mgmt_chart_annotation_updateB

https://yandex.ru/dev/metrika/ru/management/ Update chart annotation. Body: {"chart_annotation": {...}}

mgmt_chart_annotation_deleteC
mgmt_accounts_listC
mgmt_accounts_updateB

https://yandex.ru/dev/metrika/ru/management/ Update accounts list. Body: {"accounts": [{"user_login": "..."}]}

mgmt_account_deleteD
mgmt_delegates_listB
mgmt_delegate_createB

https://yandex.ru/dev/metrika/ru/management/ Add delegate. Body: {"delegate": {"user_login": "..."}}

mgmt_delegate_deleteC
mgmt_clients_listB

https://yandex.ru/dev/metrika/ru/management/ List available Direct clients

mgmt_cloud_exports_listB

https://yandex.ru/dev/metrika/ru/management/ List Yandex Cloud export objects for counter

mgmt_cloud_export_removeB

https://yandex.ru/dev/metrika/ru/management/ Disable cloud export on counter

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.7/5.0

Scored across 68 tools

Disambiguation4/5

The tools are mostly distinguishable by resource/action naming (counters, goals, filters, segments, etc.), and the stat_* report variants target distinct report types. However, with 68 tools, an agent may hesitate between similar pairs such as stat_data vs stat_bytime or filter vs access_filter, so it is not a perfect 5.

Naming Consistency4/5

The mgmt_<resource>_<action> pattern is used consistently across the management tools, and stat_* prefixes all report endpoints. Minor deviations like mgmt_counter_undelete, mgmt_cloud_export_remove, mgmt_accounts_update, and stat_data (noun-only) keep it from being fully uniform.

Tool Count2/5

68 tools is far beyond the recommended 3-15 range and will make tool selection difficult for an agent, even though the underlying Yandex Metrika API is broad. This is too many for a coherent MCP surface.

Completeness4/5

The set covers the six main report variants and provides full CRUD-style coverage for most management resources, including counters, goals, filters, operations, grants, segments, and annotations. Minor gaps exist (e.g., no create/update for public grants or cloud exports, and no Logs API tools), but the main workflows are supported.

Maintenance

ActivityMaintained
ResponsivenessNo issues