Yandex Metrica MCP

io.github.askads/mcp-yandex-metrica

MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-yandex-metrica": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-metrica@1.5.5"
      ],
      "env": {
        "YANDEX_METRIKA_TOKEN": "<your YANDEX_METRIKA_TOKEN>",
        "YANDEX_METRIKA_LANG": "ru",
        "YANDEX_METRIKA_API_BASE": "https://api-metrika.yandex.net",
        "YANDEX_METRIKA_TIMEOUT_MS": "60000",
        "YANDEX_METRIKA_MAX_RETRIES": "3"
      }
    }
  }
}
Environment variables
  • YANDEX_METRIKA_TOKENsecretYandex Metrica OAuth token (scope metrika:read) — read access to analytics data. Treat it as a secret. Optional: without it the server starts anyway and connects through the in-chat login (start_login / finish_login).
  • YANDEX_METRIKA_LANGLanguage for API responses (ru, en, ...).
  • YANDEX_METRIKA_API_BASEAPI root host. Override only for a proxy or a non-default endpoint.
  • YANDEX_METRIKA_TIMEOUT_MSPer-request timeout in milliseconds.
  • YANDEX_METRIKA_MAX_RETRIESMax retries for transient errors (429 rate limit, 5xx on reads).

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
1.5.5
Registry
active
Published
11/1/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that Yandex Metrica MCP is listed here — it’s also the link we check for a free listing.

Yandex Metrica MCP — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-askads-mcp-yandex-metrica?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Yandex Metrica MCP — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Yandex Metrica MCP — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-askads-mcp-yandex-metrica?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.