Yandex Metrica MCP

yandex-metrica-mcp

Read-only MCP server for Yandex Metrica: reports, period comparison, goals and raw log export with browser login

  • 15 ★ on the repository
  • Last commit
  • MIT
MCP server

Extended access

Why this level

  • Stores a Yandex OAuth token on disk
  • Reads site analytics and raw visit logs
All reasons and checks
Russian stack

boxlab-ltd/yandex-metrica-mcp

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add mcp/yandex-metrica-mcp

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Stores a Yandex OAuth token on disk
  • Reads site analytics and raw visit logs

This is third-party code. Review the repository files before installing.

What it does

The server answers the agent's questions about Yandex Metrica traffic: sources, landing pages, conversions, geography, devices and trends. Tools cover flexible reports, two-period comparison with percentage deltas, dimension drill-down and time series. The agent can read counter settings including goals and segments, and export raw visits or hits via the Logs API to a file without dumping rows into context. Login is one command using OAuth with PKCE, no app registration needed.

Who it is for. For marketers, SEO specialists and analysts who work with Yandex Metrica counters.

Good fit when

  • You need traffic by source for the past week
  • You need to compare goal conversions across two periods
  • You need raw session export for analysis outside Metrica

Not a fit when

  • You need to change goals, filters or counter settings
  • Your Yandex account lacks access to the counter

Example request

Compare organic conversions for the Lead goal this week versus last week

MCP

Transport
stdio
Authentication
key is optional

Environment variables

YANDEX_METRIKA_COUNTER_ID
Default counter ID
YANDEX_METRIKA_TOKEN secret
Static OAuth token with metrika:read for non-interactive use
YANDEX_OAUTH_CLIENT_ID
Your own OAuth app ID instead of the built-in one

Limitations

Early-stage project with no write access to Metrica. The account needs counter access and the metrika:read scope. The token is cached in ~/.config/yandex-metrica-mcp/token.json for about a year, then login must be repeated. Metrica reports may be sampled, and the server reports that to the model.

How to disable. Uninstall the plugin via /plugin or delete the yandex-metrica block from the MCP config. The cached token lives in ~/.config/yandex-metrica-mcp/token.json and can be deleted by hand.

FAQ

Do I need to register a Yandex OAuth app?

No, the server uses a built-in public PKCE client. You can plug in your own app via YANDEX_OAUTH_CLIENT_ID.

How do I log in from Claude Desktop without a terminal?

Ask the agent to call the login tool: it opens the browser or returns a link and accepts the code via submit_code.

Discussion

No questions or reviews yet.

Yandex Metrika MCP

Yandex Metrika MCP Server

Russian stack

MCP server for Yandex Metrika reports: traffic, sources, search phrases, goals, geography, devices and content analytics

MCP serverExtended access23Repository stars

MCP Yandex Metrica with counter management

@theyahia/yandex-metrika-mcp

Russian stack

Yandex Metrica MCP server with 15 tools: reports and traffic plus creating, editing, and deleting counters and goals

MCP serverBroad access1Repository stars
Russian stack

An MCP server, CLI and Pydantic models for the Yandex Metrika API: reports, counters, goals, filters, segments, logs and offline conversion uploads

MCP serverBroad access2Repository stars
Russian stack

A minimalist Python MCP with 12 read-only tools using the correct OAuth header, paired with a skill that carries the period-comparison methodology

MCP serverExtended access4Repository stars
Editors’ pick

A Yandex Metrika MCP server generated from the API spec: 108 methods, 10 tools declared by default, transparent filters and response metadata

MCP serverExtended access2Repository stars
Russian stack

A read-only Yandex Metrika MCP server with 31 tools for traffic, content, demographics, geography, conversions and e-commerce, metrika:read only

MCP serverExtended access2Repository stars

README in short

The README explains setup in three steps: an MCP config with npx, login with the auth command, and asking the agent. Besides the config, it installs as a Claude Code plugin or a .mcpb extension for Claude Desktop. It lists the reporting, metadata and Logs API tools and covers auth options: interactive login, static token and your own OAuth app. Example questions show which tools the agent will call. MIT licensed.

README badge

Report a problem

Foxx AIYandex Metrica MCP
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.