Yandex Metrika MCP
v2.3.0MCP server for Yandex Metrika API — web analytics, traffic, audience data
Values you need
| Variable | What it is | |
|---|---|---|
YANDEX_METRIKA_TOKEN | required secret | OAuth token for Yandex Metrika (metrika:read; metrika:write for counter tools) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add yandex-metrika-mcp -e 'YANDEX_METRIKA_TOKEN=<YANDEX_METRIKA_TOKEN>' -- npx -y @stufently/yandex-metrika-mcp@2.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"yandex-metrika-mcp": {
"args": [
"-y",
"@stufently/yandex-metrika-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_METRIKA_TOKEN": "<YANDEX_METRIKA_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"yandex-metrika-mcp": {
"args": [
"-y",
"@stufently/yandex-metrika-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_METRIKA_TOKEN": "<YANDEX_METRIKA_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "YANDEX_METRIKA_TOKEN",
"id": "yandex-metrika-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"yandex-metrika-mcp": {
"args": [
"-y",
"@stufently/yandex-metrika-mcp@2.3.0"
],
"command": "npx",
"env": {
"YANDEX_METRIKA_TOKEN": "${input:yandex-metrika-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.yandex-metrika-mcp]
command = "npx"
args = ["-y", "@stufently/yandex-metrika-mcp@2.3.0"]
env = { "YANDEX_METRIKA_TOKEN" = "<YANDEX_METRIKA_TOKEN>" }For AI agents
- Ask the user for: YANDEX_METRIKA_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get-counters, get-counter, get-goals, create-counter, delete-counter, get-traffic-summary, get-traffic-sources, get-geography, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json