Skip to content
MCP server
Registry

Yandex Metrika MCP Server

Read-only Yandex Metrika (Яндекс Метрика) analytics: verifiable reports, comparisons and exports.

Yandex Metrika scores 73 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 130 stars. Package registries report about 109 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by devcrabs-incMITTypeScript130 stars
Trust score
73Good
Trust score 73 of 100, Good

Good trust

73 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 73 comes from

22 + 20 + 7 + 10 + 4 + 10 = 73. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity7 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 7 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "devcrabs-inc-yandex-metrika-mcp": {      "command": "npx",      "args": [        "-y",        "@dev-crabs/yandex-metrika-mcp@1.0.0"      ],      "env": {        "YM_MCP_CLIENT_ID": "",        "YANDEX_METRIKA_TOKEN": "YOUR_YANDEX_METRIKA_TOKEN"      }    }  }}

Environment variables

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

Tools5Tool docs quality grade F

All capabilities

About

Yandex Metrika MCP

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.

Документация на русском: README.ru.md и docs/ru.

Status: 1.0.0, the first stable release; tool names, arguments and outputs follow semantic versioning. Covered by tests against synthetic data and a simulated API, and checked with a live Yandex sign-in and reports on macOS. Other clients and platforms are tracked in docs/release-checklist.md.

Website and guides

Why this server

  • Sign in through the browser. No token pasting, no OAuth app of your own; the token never enters the chat.
  • Numbers you can verify. Calendar periods in the counter time zone, complete days by default, strict accuracy that refuses sampled data instead of calling it exact, API totals instead of sums of visible rows.
  • Several accounts and clients. Isolated connections with their own counters; nothing is shared between them.
  • Full exports. Background CSV/JSON export of every row with checksums, a manifest and resume after a restart.
  • Small, predictable surface. 13 tools, 3 prompts. Read-only: no write endpoints, no raw HTTP tool.

Install

Requires Node.js 22.13 or later. No API key and no OAuth app of your own: after installing, ask the assistant to connect Yandex Metrika and sign in through the browser.

One command (writes the client config and keeps a backup):

npx -y @dev-crabs/yandex-metrika-mcp setup --client claude-desktop   # or claude-code, cursor, vscode, windsurf, codex

One click:

Install in Cursor Install in VS Code

Claude Code:

claude mcp add --scope user yandex-metrika -- npx -y @dev-crabs/yandex-metrika-mcp

Any MCP client (mcpServers format; VS Code uses servers with "type": "stdio"):

{
  "mcpServers": {
    "yandex-metrika": { "command": "npx", "args": ["-y", "@dev-crabs/yandex-metrika-mcp"] }
  }
}

On Windows some clients cannot start npx directly; use "command": "cmd", "args": ["/c", "npx", "-y", "@dev-crabs/yandex-metrika-mcp"], which is what setup writes there. Claude Desktop users can also install the .mcpb bundle from the GitHub release. AI agents installing the server should follow llms-install.md.

Restart the client and ask: "Connect Yandex Metrika and compare the last two weeks by traffic source." The assistant calls metrika_connect and gives you a local sign-in link. Try it without an account: the synthetic conn_demo connection is always available.

Example questions

  • "Compare the last two complete weeks by visits and target visits of goal 3001."
  • "Which landing pages brought the most leads for goal X last month?"
  • "Show weekly visits since the start of the quarter."
  • "Export all traffic sources for October to CSV for Excel."

Tools

ToolPurpose
metrika_statusConnections, exports and the next step. Works before sign-in.
metrika_connect / metrika_disconnectBrowser sign-in; local removal of a connection and its token.
metrika_list_counters / metrika_describe_counterSites, time zones and goals with IDs.
metrika_catalogPresets, metrics (with aggregation rules), dimensions, period presets.
metrika_run_reportOne period: presets or explicit fields, filters, sorting, paging.
metrika_compare_periodsTwo periods under identical conditions: absolute, % and p.p. changes.
metrika_run_timeseriesDay, week or month buckets with exact calendar boundaries.
metrika_export_report / metrika_get_job / metrika_cancel_job / metrika_read_artifactFull CSV/JSON exports as resumable background jobs.

Prompts: weekly_review, traffic_drop, landing_conversion.

Data and privacy

Report data you request is sent to your AI client and its model provider; tokens never are. Tokens live in the OS credential store (macOS Keychain, Windows Credential Manager, Linux Secret Service). Without one, the server refuses to store tokens unless you explicitly choose an unencrypted user-only file. URL query strings are removed from labels by default. No telemetry. Details: docs/ru/privacy-security.md.

Development

pnpm install
pnpm check        # Biome, tsc, vitest
pnpm build        # dist/cli.js
pnpm mcpb         # build/yandex-metrika-mcp-<version>.mcpb

See CONTRIBUTING.md and AGENTS.md. Security reports: SECURITY.md.

License

MIT © DevCrabs

Frequently asked questions

What is Yandex Metrika MCP Server?

Read-only Yandex Metrika (Яндекс Метрика) analytics: verifiable reports, comparisons and exports.

How do I install Yandex Metrika MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Yandex Metrika MCP Server runs locally from the npm package @dev-crabs/yandex-metrika-mcp with the command npx -y @dev-crabs/yandex-metrika-mcp@1.0.0.

Is Yandex Metrika MCP Server free and open source?

Yes. Yandex Metrika MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Yandex Metrika MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Yandex Metrika MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Yandex Metrika MCP Server provide?

Yandex Metrika MCP Server provides 5 tools, including metrika_catalog, metrika_compare_periods, metrika_run_report, and metrika_run_timeseries. See the full tool list for descriptions and parameters.

How is Yandex Metrika MCP Server's trust score calculated?

Yandex Metrika MCP Server scores 73 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server