Yandex Metrica MCP MCP Server
io.github.askads/mcp-yandex-metrica
What this kind of tool is for
- Query, inspect, or seed a database without writing a one-off script.
- Let your agent look up schema details before it writes migration code.
- Move a small dataset between tools without leaving the terminal.
How to compare servers like this
- Engine match:
- Confirm it speaks your exact database and version, not just the family.
- Access scope:
- Read-only connections are the safe default — start there before granting writes.
- Safety rails:
- Check whether destructive statements need an explicit confirmation before they run.
- Maintenance signal:
- Database drivers change; a recently updated tool is less likely to break mid-query.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the Yandex Metrica MCP MCP server?
MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.
How to install Yandex Metrica MCP
Copy-paste configuration for popular MCP clients.
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_OAUTH_CLIENT_IDClientID of your own Yandex OAuth app for the in-chat login. Defaults to the Ask Ads app scoped to metrika:read.
YANDEX_METRIKA_COUNTER_IDDefault Metrica counter id, used when a tool call omits counterId.
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).
{
"mcpServers": {
"mcp-yandex-metrica": {
"command": "npx",
"args": [
"-y",
"mcp-yandex-metrica"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<YOUR_YANDEX_METRIKA_TOKEN>",
"YANDEX_METRIKA_OAUTH_CLIENT_ID": "<YOUR_YANDEX_METRIKA_OAUTH_CLIENT_ID>",
"YANDEX_METRIKA_COUNTER_ID": "<YOUR_YANDEX_METRIKA_COUNTER_ID>",
"YANDEX_METRIKA_LANG": "<YOUR_YANDEX_METRIKA_LANG>",
"YANDEX_METRIKA_API_BASE": "<YOUR_YANDEX_METRIKA_API_BASE>",
"YANDEX_METRIKA_TIMEOUT_MS": "<YOUR_YANDEX_METRIKA_TIMEOUT_MS>",
"YANDEX_METRIKA_MAX_RETRIES": "<YOUR_YANDEX_METRIKA_MAX_RETRIES>"
}
}
}
}Related MCP servers

Yandex Webmaster MCP
MCP server for Yandex Webmaster API: indexing, search queries, sitemaps, diagnostics, links.

Yandex Wordstat MCP
MCP server for Yandex Wordstat API: top & related queries, demand dynamics and regions.

VK Ads MCP
MCP server for VK Ads (VK Реклама) API: manage ad plans, ad groups, banners, and statistics.

Yandex Direct MCP
MCP server for Yandex Direct API v5: manage PPC campaigns, ads, keywords, and statistics.
MCP State Sidecar: durable state persistence for multi-agent AI workflows

