Skip to content
appsgit

Yandex Metrika

Yandex Metrika is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Read-only Yandex Metrika (Яндекс Метрика) analytics: verifiable reports, comparisons and exports. It has 130 GitHub stars, is released under the MIT license and runs locally with npx -y @dev-crabs/yandex-metrika-mcp.

github.com/DevCrabs-Inc/yandex-metrika-mcp (opens in a new tab)

Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error

Install Yandex Metrika

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "yandex-metrika": {
      "command": "npx",
      "args": [
        "-y",
        "@dev-crabs/yandex-metrika-mcp"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env YANDEX_METRIKA_TOKEN=your-value --transport stdio yandex-metrika -- npx -y @dev-crabs/yandex-metrika-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "yandex-metrika": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dev-crabs/yandex-metrika-mcp"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "yandex_metrika_token",
      "description": "YANDEX_METRIKA_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "yandex-metrika": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dev-crabs/yandex-metrika-mcp"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "${input:yandex_metrika_token}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
YM_MCP_CLIENT_IDNoOptional: your own Yandex OAuth app client ID (public PKCE client, no secret).
YANDEX_METRIKA_TOKENsecretNoOptional: an existing OAuth token with metrika:read, for headless setups.

Tools (5)

Parsed from the Tools section of the README; check the repository for the current list.

  • metrika_status

    Connections, exports and the next step. Works before sign-in.

  • metrika_catalog

    Presets, metrics (with aggregation rules), dimensions, period presets.

  • metrika_run_report

    One period: presets or explicit fields, filters, sorting, paging.

  • metrika_compare_periods

    Two periods under identical conditions: absolute, % and p.p. changes.

  • metrika_run_timeseries

    Day, week or month buckets with exact calendar boundaries.

About Yandex Metrika

Read-only MCP server for Yandex Metrika (Yandex Metrica, Яндекс Метрика). Connect it to Claude, Cursor, VS Code, Codex or any MCP client and ask about traffic, sources, landing pages and goals. Every answer comes with exact dates, the counter time zone, sampling status, filters and provenance, so the numbers can be checked.

  • ai-agents
  • analytics
  • claude
  • claude-code
  • claude-desktop
  • codex
  • cursor
  • mcp
  • mcp-server
  • mcpb

FAQ

Yandex Metrika FAQ

Still curious? Email info@appsgit.com.

How do I install the Yandex Metrika MCP server?

Add the command npx -y @dev-crabs/yandex-metrika-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Yandex Metrika free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is Yandex Metrika actively maintained?

The most recent commit was on Nov 10, 2026. The latest release is v1.0.0, published Nov 9, 2026. appsgit only lists MCP servers with a commit in the last six months.