MCP Server
MCP
Yandex Metrica MCP
MCP server for Yandex Metrica API: list counters, goals and pull web-analytics statistics.
Install
npx -y [email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"identifier": "mcp-yandex-metrica",
"version": "1.4.1",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Yandex 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).",
"isSecret": true,
"name": "YANDEX_METRIKA_TOKEN"
},
{
"description": "ClientID of your own Yandex OAuth app for the in-chat login. Defaults to the Ask Ads app scoped to metrika:read.",
"name": "YANDEX_METRIKA_OAUTH_CLIENT_ID"
},
{
"description": "Default Metrica counter id, used when a tool call omits counterId.",
"name": "YANDEX_METRIKA_COUNTER_ID"
},
{
"description": "Language for API responses (ru, en, ...).",
"default": "ru",
"name": "YANDEX_METRIKA_LANG"
},
{
"description": "API root host. Override only for a proxy or a non-default endpoint.",
"default": "https://api-metrika.yandex.net",
"name": "YANDEX_METRIKA_API_BASE"
},
{
"description": "Per-request timeout in milliseconds.",
"default": "60000",
"name": "YANDEX_METRIKA_TIMEOUT_MS"
},
{
"description": "Max retries for transient errors (429 rate limit, 5xx on reads).",
"default": "3",
"name": "YANDEX_METRIKA_MAX_RETRIES"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment