yandex-metrica-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YANDEX_CLIENT_LOGIN | No | Yandex account login sent in `Client-Login`. | |
| YANDEX_METRICA_TOKEN | Yes | Yandex Metrica OAuth token. | |
| YANDEX_METRICA_API_URL | No | Base 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
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.
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.
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.
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.