Yandex Metrica for AI agents: counters, goals, Reporting API and Logs API export over stdio.
MCPpedia last refreshed this data
io.github.stufently/yandex-metrica-mcp is an MCP server that yandex Metrica for AI agents: counters, goals, Reporting API and Logs API export over stdio. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 87/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"yandex-metrica": {
"env": {
"YANDEX_METRICA_TOKEN": "your_oauth_token_here"
},
"args": [
"run",
"-i",
"--rm",
"-e",
"YANDEX_METRICA_TOKEN",
"ghcr.io/stufently/yandex-metrica-mcp:latest"
],
"command": "docker"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Yandex Metrica for AI agents: counters, goals, Reporting API and Logs API export over stdio.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @stufently/yandex-metrica-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in analytics / ai-ml
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
MCP Security Weekly
Get CVE alerts and security updates for io.github.stufently/yandex-metrica-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server for the Yandex Metrica Reporting API, Logs API and counter management, designed for use with Claude Code and Codex CLI. Eight of its 13 tools only read; five change your Metrica account — create and delete a counter, and create, cancel and clean a Logs API export. Each tool says which it is in its MCP annotations (readOnlyHint, destructiveHint).
Runs locally over stdio. No web server, no persistent storage, no background daemons.
Yandex Metrica has two distinct APIs that serve different purposes:
/stat/v1/data) — aggregated, sampled statistics. Use this to build reports, query traffic sources, behavior metrics, goal conversions, etc./management/v1/counter/{id}/logrequests) — raw, non-aggregated event export. Use this when you need row-level session or hit data for custom analytics pipelines.This MCP server exposes both APIs as named tools that an LLM can call directly.
| Tool | Description |
|---|---|
yandex_metrica_list_counters | List accessible counters (tags) |
yandex_metrica_get_counter | Get counter details by ID |
yandex_metrica_list_goals | List goals for a counter |
yandex_metrica_create_counter | Create a new counter (add a site) |
yandex_metrica_delete_counter | Delete a counter permanently |
| Tool | Description |
|---|---|
yandex_metrica_get_report | Run a Reporting API query |
For period comparison, pass
date1_b/date2_btoyandex_metrica_get_report. The tool automatically routes to/stat/v1/data/comparison;date1/date2become segment A,date1_b/date2_bbecome segment B. Each result row returnsmetrics: { a, b }.
| Tool | Description |
|---|---|
yandex_metrica_evaluate_logs_request | Check if export is possible |
yandex_metrica_create_logs_request | Create an async export request |
yandex_metrica_list_logs_requests | List all requests for a counter |
yandex_metrica_get_logs_request | Poll status of a request |
yandex_metrica_download_logs_part | Download a processed part (TSV) |
yandex_metrica_cancel_logs_request | Cancel a pending request |
yandex_metrica_clean_logs_request | Clean processed files to free quota |
evaluate → create → [poll get until status=processed] → download parts → clean
The Logs API is asynchronous. After creating a request, poll yandex_metrica_get_logs_request until status = "processed", then download each part listed in log_request.parts (by its part_number).
Raw log parts can be hundreds of MB. By default yandex_metrica_download_logs_part returns:
{
"mode": "preview",
"truncated": true,
"original_byte_size": 52428800,
"preview_byte_size": 49980,
"content": "ym:s:visitID\tym:s:date\t...\n..."
}
Set `mode: "