Query Yandex Metrica web analytics — reports, trends and metadata — via an AI agent.
Query Yandex Metrica web analytics — reports, trends and metadata — via an AI agent. Exposed over MCP by the yandex mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
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.
The server ships on npm as yandex-metrica-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Everything the assistant can do here goes through one of these:
run_report — flexible wrapper over the Reporting API (/stat/v1/data)run_comparison — compare two periods with absolute and percentage deltasrun_drilldown — drill down through a dimension treerun_timeseries — metrics split into a time series (/bytime) for trendsget_metadata — discover the counters on your account and a catalog of commondescribe_counter — read one counter's configuration (goals, segments,Built — in context control: field selection on by default, low default rowYou will need 4 environment variables: YANDEX_METRIKA_COUNTER_ID, YANDEX_METRIKA_TOKEN, YANDEX_OAUTH_CLIENT_ID, YANDEX_OAUTH_CLIENT_SECRET. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
metrika:read scope (see Authentication). Whoever the credentials belong to must have access to the counters you query.This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Yandex's toolset — run_report, run_comparison, run_drilldown and 4 more — is a fair guide to whether it matches your workflow. It is maintained by BoxLab-Ltd; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| run_report | flexible wrapper over the Reporting API (/stat/v1/data). |
| run_comparison | compare two periods with absolute and percentage deltas. |
| run_drilldown | drill down through a dimension tree. |
| run_timeseries | metrics split into a time series (/bytime) for trends. |
| get_metadata | discover the counters on your account and a catalog of common |
| describe_counter | read one counter's configuration (goals, segments, |
| Built | in context control: field selection on by default, low default row |
{
"mcpServers": {
"yandex-metrica": {
"command": "npx",
"args": ["-y", "yandex-metrica-mcp"],
"env": { "YANDEX_METRIKA_COUNTER_ID": "12345678" }
}
}
}Configuration as documented by the project. Restart the client after saving.
metrika:read scope (see Authentication). Whoever the credentials belong to must have access to the counters you query.| Variable | Description | Required |
|---|---|---|
| YANDEX_METRIKA_COUNTER_ID | Configuration value read at startup. | Optional |
| YANDEX_METRIKA_TOKEN | Credential the server authenticates with. | Yes |
| YANDEX_OAUTH_CLIENT_ID | Configuration value read at startup. | Optional |
| YANDEX_OAUTH_CLIENT_SECRET | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.