# Yandex Metrica MCP

> Yandex Metrica MCP is an open-source MCP server. Yandex Metrica for AI agents: counters, goals, Reporting API and Logs API export over stdio. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/stufently/yandex-metrica-mcp
- **MCP Registry name:** io.github.stufently/yandex-metrica-mcp
- **Listing updated:** 2026-10-14

## About

Yandex Metrica for AI agents: counters, goals, Reporting API and Logs API export over stdio.

## Install

### Claude Code (Terminal)

```sh
claude mcp add yandex-metrica-mcp --env YANDEX_METRICA_TOKEN='<YANDEX_METRICA_TOKEN>' -- docker run -i --rm -e YANDEX_METRICA_TOKEN ghcr.io/stufently/yandex-metrica-mcp:0.2.3
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "yandex-metrica-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YANDEX_METRICA_TOKEN",
        "ghcr.io/stufently/yandex-metrica-mcp:0.2.3"
      ],
      "env": {
        "YANDEX_METRICA_TOKEN": "<YANDEX_METRICA_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "yandex-metrica-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YANDEX_METRICA_TOKEN",
        "ghcr.io/stufently/yandex-metrica-mcp:0.2.3"
      ],
      "env": {
        "YANDEX_METRICA_TOKEN": "<YANDEX_METRICA_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "yandex-metrica-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YANDEX_METRICA_TOKEN",
        "ghcr.io/stufently/yandex-metrica-mcp:0.2.3"
      ],
      "env": {
        "YANDEX_METRICA_TOKEN": "<YANDEX_METRICA_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "yandex-metrica-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YANDEX_METRICA_TOKEN",
        "ghcr.io/stufently/yandex-metrica-mcp:0.2.3"
      ],
      "env": {
        "YANDEX_METRICA_TOKEN": "<YANDEX_METRICA_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "yandex-metrica-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "YANDEX_METRICA_TOKEN",
        "ghcr.io/stufently/yandex-metrica-mcp:0.2.3"
      ],
      "env": {
        "YANDEX_METRICA_TOKEN": "<YANDEX_METRICA_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Yandex Metrica MCP free?

Yes. Yandex Metrica MCP is open source, so you can use and self-host it for free.

### How do I add Yandex Metrica MCP to Claude Code?

Run this command in your terminal: claude mcp add yandex-metrica-mcp --env YANDEX_METRICA_TOKEN='<YANDEX_METRICA_TOKEN>' -- docker run -i --rm -e YANDEX_METRICA_TOKEN ghcr.io/stufently/yandex-metrica-mcp:0.2.3

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/yandex-metrica-mcp-2
