Yandex Metrica MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YANDEX_METRIKA_LANG | No | Заголовок Accept-Language. | ru |
| YANDEX_METRIKA_TOKEN | Yes | OAuth-токен Метрики (scope metrika:read). | |
| YANDEX_METRIKA_API_BASE | No | Корень API. | https://api-metrika.yandex.net |
| YANDEX_METRIKA_COUNTER_ID | No | Счётчик по умолчанию, если в вызове не задан counterId. | |
| YANDEX_METRIKA_TIMEOUT_MS | No | Таймаут запроса, мс. | 60000 |
| YANDEX_METRIKA_MAX_RETRIES | No | Повторы при 429/5xx. | 3 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_countersA | Lists the Yandex Metrica counters the token can access (Management API). Each counter has id, name and site2 (site domain) — use the id with get_statistics and list_goals. Filter by a name/site substring with |
| list_goalsA | Lists the goals (conversions) configured on a Metrica counter (Management API). Goal ids are needed to read conversion metrics (ym:s:goalreaches / ym:s:goalconversionRate) in get_statistics. counterId defaults to YANDEX_METRIKA_COUNTER_ID when omitted. |
| get_statisticsA | Queries the Yandex Metrica Reporting API (stat/v1/data) for a counter. By DEFAULT returns one aggregated row over the period (no dimensions) with visits/users/pageviews/bounceRate/avgVisitDuration. Add |
| raw_requestA | Escape hatch to call any Yandex Metrica API path directly — e.g. "management/v1/counters", "management/v1/counter/{id}/goals", "stat/v1/data". Use it for endpoints without a dedicated tool. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/askads/mcp-yandex-metrica'
If you have feedback or need assistance with the MCP directory API, please join our Discord server