yandex-metrica-mcp
About
Query Yandex Metrica analytics — reports, trends, metadata and raw log exports — via an AI agent.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
YANDEX_METRIKA_TOKEN YANDEX_METRIKA_COUNTER_ID YANDEX_METRIKA_LOGS_DIRClaude Code
claude mcp add --env YANDEX_METRIKA_TOKEN= --env YANDEX_METRIKA_COUNTER_ID= --env YANDEX_METRIKA_LOGS_DIR= yandex-metrica-mcp -- npx yandex-metrica-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"yandex-metrica-mcp","command":"npx","args":["yandex-metrica-mcp"],"env":{"YANDEX_METRIKA_TOKEN":"","YANDEX_METRIKA_COUNTER_ID":"","YANDEX_METRIKA_LOGS_DIR":""}}'
JSON
{
"mcpServers": {
"yandex-metrica-mcp": {
"command": "npx",
"args": [
"yandex-metrica-mcp"
],
"env": {
"YANDEX_METRIKA_TOKEN": "",
"YANDEX_METRIKA_COUNTER_ID": "",
"YANDEX_METRIKA_LOGS_DIR": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.