MCP directory
YM

Yandex Metrica MCP

by github.com/askads · v1.5.6 · updated Nov 13, 2026

MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • YANDEX_METRIKA_TOKENsecret

    Yandex Metrica OAuth token (scope metrika:read) — read access to analytics data. Treat it as a secret. Optional: without it the server starts anyway and connects through the in-chat login (start_login / finish_login).

  • YANDEX_METRIKA_OAUTH_CLIENT_ID

    ClientID of your own Yandex OAuth app for the in-chat login. Defaults to the Ask Ads app scoped to metrika:read.

  • YANDEX_METRIKA_COUNTER_ID

    Default Metrica counter id, used when a tool call omits counterId.

  • YANDEX_METRIKA_LANG

    Language for API responses (ru, en, ...).

  • YANDEX_METRIKA_API_BASE

    API root host. Override only for a proxy or a non-default endpoint.

  • YANDEX_METRIKA_TIMEOUT_MS

    Per-request timeout in milliseconds.

  • YANDEX_METRIKA_MAX_RETRIES

    Max retries for transient errors (429 rate limit, 5xx on reads).

More from github.com/askads

More MCP servers