Home › Other › yandex-metrica-mcp

yandex-metrica-mcp

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

TypeScript
★ 14 stars Last pushed 2026-09-21 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 0.3.0)

npx -y [email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "yandex-metrica-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "<YOUR_VALUE>",
        "YANDEX_METRIKA_COUNTER_ID": "<YOUR_VALUE>",
        "YANDEX_METRIKA_LOGS_DIR": "<YOUR_VALUE>"
      }
    }
  }
}
  • YANDEX_METRIKA_TOKEN secret — Yandex Metrica OAuth token (metrika:read). Optional if you run the `auth` login.
  • YANDEX_METRIKA_COUNTER_ID — Default counter id, so tools may omit counterId.
  • YANDEX_METRIKA_LOGS_DIR — Directory for Logs API file exports (logs_download in file mode). Defaults to a folder under the OS temp directory.

Related servers

Data from the Official MCP Registry