Yandex Metrica MCP server
io.github.BoxLab-Ltd/yandex-metrica-mcp·v0.3.0·14 starsQuery Yandex Metrica analytics — reports, trends, metadata and raw log exports — via an AI agent.
14 stars81 downloads/wk
Reviews
Write oneNobody 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 postsRead from the package source without running it. The installed server may list more.
describe_counterRead a single counter's configuration — settings, goals, segments, filters, operations and
get_metadataDiscovery tool. Lists the counters available to your token plus a curated catalog of common
logs_cleanFree the counter storage quota by cleaning a finished (processed) log request, or cancel one
logs_downloadDownload prepared log data for a request_id (must be status="processed"; check logs_status).
logs_requestwrite actionCreate a Yandex Metrica Logs API request for RAW, un-sampled rows (source="visits" sessions or
logs_statusInspect a Logs API request by request_id (status, parts, size, next step), or omit request_id
run_comparisonwrite actionCompare two segments/periods (A vs B) for the same metrics and dimensions
run_drilldownwrite actionReturn one level of a hierarchical (tree) report (/stat/v1/data/drilldown). Each row has
run_reportwrite actionQuery a Yandex Metrica table report (/stat/v1/data): one or more metrics grouped by
run_timeserieswrite actionReturn 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
- 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
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
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 authApprove 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@boxlabThen 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 AnalyticsAgent-Native Amplitude/Mixpanel - connect data sources, prompt for chartsnot reviewedEstablishedA
- SpotifyscraperPublic Spotify metadata, lyrics and podcasts for LLM agents. No API key, read-only.not reviewedEstablishedB
- Robin: AI-Powered Dark Web OSINTDark web OSINT over Tor: search onion engines, scrape pages, report with your own model.not reviewedEstablishedA
- DataSinkingFull-text financial reports (US, China, Japan, Korea, Taiwan, UK) as clean Markdown for RAG agents.not reviewedEstablishedA
- three.ws ProvenanceAppend-only, signed, on-chain-verifiable agent action log — record and audit what agents did.not reviewedEstablishedB