Skip to main content
Glama
yandex-metrica-mcp

yandex-metrica-mcp

by s3rezhkaa

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
YANDEX_CLIENT_LOGINNoYandex account login sent in `Client-Login`.
YANDEX_METRICA_TOKENYesYandex Metrica OAuth token.
YANDEX_METRICA_API_URLNoBase URL for the Metrica API, defaults to `https://api-metrika.yandex.net`. Set this when pointing to a local mock server (for example `http://localhost:8092`).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": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_countersA

List Yandex Metrica counters available for the configured OAuth token.

get_goalsC

List conversion goals configured for a Yandex Metrica counter.

Args: counter_id: Yandex Metrica counter ID.

get_daily_statsB

Load daily visits, users, average visit duration, and goal reaches for a counter.

Args: counter_id: Yandex Metrica counter ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. goal_ids: Optional list of Metrica goal IDs to include reach counts.

get_sources_reportC

Load traffic and engagement stats grouped by traffic source and UTM tags.

Args: counter_id: Yandex Metrica counter ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. goal_ids: Optional list of Metrica goal IDs to include reach counts. limit: Maximum number of rows to return (1 to 100000).

get_pages_reportB

Load traffic and engagement stats grouped by landing page URL.

Args: counter_id: Yandex Metrica counter ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. goal_ids: Optional list of Metrica goal IDs to include reach counts. limit: Maximum number of rows to return (1 to 100000).

get_tech_reportA

Load traffic and engagement stats grouped by device category.

Args: counter_id: Yandex Metrica counter ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. goal_ids: Optional list of Metrica goal IDs to include reach counts. limit: Maximum number of rows to return (1 to 100000).

get_goal_visitsA

Load individual visits that reached a specific goal (with visit time and UTM content).

Args: counter_id: Yandex Metrica counter ID. goal_id: Yandex Metrica goal ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. limit: Maximum number of rows to return (1 to 100000).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: counter/goal listing, daily aggregate stats, grouped reports by source/page/device, and goal-level visits. The three grouped report tools are similar in shape but explicitly separated by grouping dimension, so an agent can select correctly.

Naming Consistency5/5

All tools follow the same get_<resource> pattern with snake_case and concise noun phrases. There are no naming style deviations or ambiguous verb choices.

Tool Count5/5

Seven tools is well-scoped for a focused Yandex Metrica analytics server. Each tool covers a distinct reporting or lookup need without excessive surface area.

Completeness4/5

The surface covers core analytics workflows: counters, goals, daily stats, traffic source/page/device breakdowns, and goal-reaching visits. Some common Metrica report dimensions (e.g., geography, search engines, demographics, events) are absent, but the main reporting path is covered.

Maintenance

ActivityMaintained
ResponsivenessOutdated data