Skip to main content

Yandex Metrica MCP

io.github.BoxLab-Ltd/yandex-metrica-mcp

v1.0.1Updated Nov 5, 2026stdio · npm

Query Yandex Metrica analytics — reports, trends, metadata and raw log exports — via an AI agent.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add yandex-metrica-mcp -- npx -y [email protected]

Configuration

4 settings.

  • YANDEX_METRIKA_TOKEN
    Env var· optional· secret
    Yandex Metrica OAuth token (metrika:read). Optional if you run the `auth` login.
  • YANDEX_METRIKA_COUNTER_ID
    Env var· optional
    Default counter id, so tools may omit counterId.
  • YANDEX_METRIKA_ENABLE_WRITE
    Env var· optional
    Set to 1 to add the write tools (chart annotations, expense upload). Sign-in then also asks for metrika:write; every change is confirmed.
  • YANDEX_METRIKA_LOGS_DIR
    Env var· optional
    Directory for Logs API file exports (logs_download in file mode). Defaults to a folder under the OS temp directory.

Listed in the official MCP Registry since Nov 5, 2026. Mirrored daily; last checked Nov 26, 2026.