yandex-metrica-mcp
An MCP server for Yandex Metrica that enables AI agents to query web analytics data such as traffic, sources, conversions, and trends in plain language. It features a secretless PKCE login flow and is designed to be read-only, ensuring no secrets are stored in the package.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Query web analytics in plain language
- Check traffic sources and trends
- Analyze conversions and geography
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
yandex-metrica-mcp 0.3.0
{
"version": "0.3.0",
"transport": "stdio",
"identifier": "yandex-metrica-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "YANDEX_METRIKA_TOKEN",
"description": "Yandex Metrica OAuth token (metrika:read). Optional if you run the `auth` login."
},
{
"name": "YANDEX_METRIKA_COUNTER_ID",
"description": "Default counter id, so tools may omit counterId."
},
{
"name": "YANDEX_METRIKA_LOGS_DIR",
"description": "Directory for Logs API file exports (logs_download in file mode). Defaults to a folder under the OS temp directory."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"yandex-metrica-mcp": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp@0.3.0"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<YOUR_YANDEX_METRIKA_TOKEN>",
"YANDEX_METRIKA_COUNTER_ID": "<YOUR_YANDEX_METRIKA_COUNTER_ID>",
"YANDEX_METRIKA_LOGS_DIR": "<YOUR_YANDEX_METRIKA_LOGS_DIR>"
}
}
}
}Cline
{
"mcpServers": {
"yandex-metrica-mcp": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp@0.3.0"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<YOUR_YANDEX_METRIKA_TOKEN>",
"YANDEX_METRIKA_COUNTER_ID": "<YOUR_YANDEX_METRIKA_COUNTER_ID>",
"YANDEX_METRIKA_LOGS_DIR": "<YOUR_YANDEX_METRIKA_LOGS_DIR>"
}
}
}
}VS Code
{
"servers": {
"yandex-metrica-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp@0.3.0"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<YOUR_YANDEX_METRIKA_TOKEN>",
"YANDEX_METRIKA_COUNTER_ID": "<YOUR_YANDEX_METRIKA_COUNTER_ID>",
"YANDEX_METRIKA_LOGS_DIR": "<YOUR_YANDEX_METRIKA_LOGS_DIR>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"yandex-metrica-mcp": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp@0.3.0"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<YOUR_YANDEX_METRIKA_TOKEN>",
"YANDEX_METRIKA_COUNTER_ID": "<YOUR_YANDEX_METRIKA_COUNTER_ID>",
"YANDEX_METRIKA_LOGS_DIR": "<YOUR_YANDEX_METRIKA_LOGS_DIR>"
}
}
}
}Let your agent find its tools
Find servers like yandex-metrica-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.