Yandex Metrica MCP Server
by boxlab-ltdio.github.BoxLab-Ltd/yandex-metrica-mcpv0.3.0
Query Yandex Metrica analytics — reports, trends, metadata and raw log exports — via an AI agent.
context tax
queued
security
queued
cold start
queued
freshness
Active5d ago
Install Yandex Metrica MCP server
Install in Claude Code
claude mcp add yandex-metrica-boxlab-ltd -e YANDEX_METRIKA_TOKEN='<yandex-metrika-token>' -- npx -y yandex-metrica-mcpInstall in Cursor
{
"mcpServers": {
"yandex-metrica-boxlab-ltd": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<yandex-metrika-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"yandex-metrica-boxlab-ltd": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<yandex-metrika-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"yandex-metrica-boxlab-ltd": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<yandex-metrika-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"yandex-metrica-boxlab-ltd": {
"command": "npx",
"args": [
"-y",
"yandex-metrica-mcp"
],
"env": {
"YANDEX_METRIKA_TOKEN": "<yandex-metrika-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| YANDEX_METRIKA_TOKEN | — | yes | Yandex Metrica OAuth token (metrika:read). Optional if you run the `auth` login. |
| YANDEX_METRIKA_COUNTER_ID | — | — | Default counter id, so tools may omit counterId. |
| YANDEX_METRIKA_LOGS_DIR | — | — | Directory for Logs API file exports (logs_download in file mode). Defaults to a folder under the OS temp directory. |
Freshness
Active — last maintenance signal 5d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 5d ago · GitHub
Latest release
2026-07-21 · 3mo ago · GitHub · v0.3.0
Package published
no data · npm/PyPI
Registry entry updated
2026-07-21 · 3mo ago · official registry · v0.3.0
FAQ
›How do I install the Yandex Metrica MCP server in Claude Code?
Run: claude mcp add yandex-metrica-boxlab-ltd -e YANDEX_METRIKA_TOKEN='<yandex-metrika-token>' -- npx -y yandex-metrica-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Yandex Metrica require an API key?
Yes. It expects YANDEX_METRIKA_TOKEN, of which 1 is a secret.
›Can I use Yandex Metrica as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Yandex Metrica in the official MCP registry?
Yes, as io.github.BoxLab-Ltd/yandex-metrica-mcp.
Alternatives to Yandex Metrica
Other data & analytics MCP servers.