MCP.Market

Yandex Metrica MCP server

by BoxLab-Ltd·io.github.BoxLab-Ltd/yandex-metrica-mcp·v0.3.0·14 stars

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

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
Growing

14 stars81 downloads/wk

Reviews

Write one

Nobody has reviewed Yandex Metrica yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Yandex Metrica tools (10, 5 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • describe_counter

    Read a single counter's configuration — settings, goals, segments, filters, operations and

  • get_metadata

    Discovery tool. Lists the counters available to your token plus a curated catalog of common

  • logs_clean

    Free the counter storage quota by cleaning a finished (processed) log request, or cancel one

  • logs_download

    Download prepared log data for a request_id (must be status="processed"; check logs_status).

  • logs_requestwrite action

    Create a Yandex Metrica Logs API request for RAW, un-sampled rows (source="visits" sessions or

  • logs_status

    Inspect a Logs API request by request_id (status, parts, size, next step), or omit request_id

  • run_comparisonwrite action

    Compare two segments/periods (A vs B) for the same metrics and dimensions

  • run_drilldownwrite action

    Return one level of a hierarchical (tree) report (/stat/v1/data/drilldown). Each row has

  • run_reportwrite action

    Query a Yandex Metrica table report (/stat/v1/data): one or more metrics grouped by

  • run_timeserieswrite action

    Return metrics split into a time series (/stat/v1/data/bytime): each metric comes back

Public scan report

scanner v0.1.9 · 2026-09-25 · same rubric, same numbers if you re-run it

no findings
  • Code scan45 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 4 days ago15/15
  • Maintainer identityregistry namespace matches repository owner7/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Yandex Metrica compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 65% of 4,460 AI and agents servers
Tools
10
the typical AI and agents server has 6
Tools that change things
50%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
14
more than 86% of 2,711 AI and agents servers
Downloads a week
81
more than 59% of 1,538 AI and agents servers with a package

What its tools let an agent do: 5 read · 1 change · 4 run or deploy

Install Yandex Metrica in Claude Code, Cursor or VS Code

Runs npx -y yandex-metrica-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add yandex-metrica-mcp -- npx -y yandex-metrica-mcp
Add to Cursor

What the publisher says

From the Yandex Metrica repository's README, as published. We do not edit it. Read it on GitHub

yandex-metrica-mcp

Ask your Yandex Metrica analytics in plain language — from Claude, Cursor, or any MCP client.

A Model Context Protocol (MCP) server for Yandex Metrica. It lets an AI agent query your web-analytics data — traffic, sources, landing pages, conversions, geography, devices and trends — through a small set of flexible, read-only tools.

Read-only by design, no secrets stored in the package: interactive login uses

a built-in public OAuth client with PKCE, and the server talks only to Yandex.

Status: early development (v0.1, work in progress). General-purpose: SEO is

one of many use cases, not the focus.

Demo

Point an AI agent at your counter and ask about your traffic — the server queries Yandex Metrica and hands back real, read-only data, no dashboards. Here the run_report tool answers a “traffic sources, last 7 days” question against a live counter:

Quickstart

1. Add the server to your MCP client (e.g. Claude Desktop) — no token required up front; you log in interactively in step 2:

{
    "mcpServers": {
        "yandex-metrica": {
            "command": "npx",
            "args": ["-y", "yandex-metrica-mcp"],
            "env": { "YANDEX_METRIKA_COUNTER_ID": "12345678" }
        }
    }
}

2. Log in once — one command, no app registration, no secret stored:

npx yandex-metrica-mcp auth

Approve access in the browser and you're done — the code is handed back automatically over a local redirect, no copy-paste. The login uses authorization-code + PKCE, so no client secret ever touches your machine; the token is cached (mode 0600) and valid for ~1 year.

3. Ask your agent about traffic, sources, conversions, geography, devices, or trends — see Examples for prompts.

Prefer a static token (CI / non-interactive) or your own OAuth app? See Authentication.

Or install as a Claude Code plugin

The repo doubles as a plugin marketplace, so you can install the server through Claude Code's plugin system instead of the config above:

/plugin marketplace add BoxLab-Ltd/yandex-metrica-mcp
/plugin install yandex-metrica-mcp@boxlab

Then run npx yandex-metrica-mcp auth once to log in.

Or install as a Claude Desktop extension (.mcpb)

For a one-click install with no JSON, download the .mcpb from the latest release and open it with Claude Desktop (or drag it into Settings → Extensions). It asks for an optional default counter id; then sign in from the chat with the login tool (or run npx yandex-metrica-mcp auth).

Why

There is no official Yandex Metrica MCP server, and existing community ones are mostly thin, unmaintained, or dump raw data straight into the model's context. This server aims to be the well-engineered, well-maintained, open option: flexible report tools, strict token/context discipline, read-only by default.

Features (v0.1)

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Yandex Metrica: common questions

Is Yandex Metrica MCP server safe?
Mostly: it is graded B (82/100). Read the Yandex Metrica safety report
How do I install Yandex Metrica?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Yandex Metrica need an API key?
Yes. The registry entry asks for YANDEX_METRIKA_TOKEN.
Is Yandex Metrica maintained?
The last commit was 44 days ago (2026-09-21). The latest release is v0.3.0.
What can I use instead of Yandex Metrica?
Servers from other publishers that do the same job: Agent-Native Analytics MCP server, Spotifyscraper MCP server and Robin: AI-Powered Dark Web OSINT MCP server.
How does Yandex Metrica compare with other AI and agents MCP servers?
safety score 82/100 (higher than 65% of 4,460 AI and agents servers); tools 10 (the typical AI and agents server has 6); tools that change things 50% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Yandex Metrica

Same job from other publishers: the closest match first, then the best rated.

  • Agent-Native Analytics
    Agent-Native Amplitude/Mixpanel - connect data sources, prompt for charts
    A
  • Spotifyscraper
    Public Spotify metadata, lyrics and podcasts for LLM agents. No API key, read-only.
    B
  • Robin: AI-Powered Dark Web OSINT
    Dark web OSINT over Tor: search onion engines, scrape pages, report with your own model.
    A
  • DataSinking
    Full-text financial reports (US, China, Japan, Korea, Taiwan, UK) as clean Markdown for RAG agents.
    A
  • three.ws Provenance
    Append-only, signed, on-chain-verifiable agent action log — record and audit what agents did.
    B