MCP server for Yandex.Metrika API — counters, reports, visitors, traffic sources. Bearer token auth
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"yandex-metrika": {
"env": {
"YANDEX_METRIKA_TOKEN": "your_token"
},
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server for Yandex.Metrica API — counters, goals, reports, logs, traffic sources, top pages. 15 tools, OAuth Bearer token auth.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y '@theyahia/yandex-metrika-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked @theyahia/yandex-metrika-mcp against OSV.dev.
Click any tool to inspect its schema.
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
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
MCP server for InsightSentry financial data API - market data, options, screeners, and more
MCP server for Google Lighthouse performance metrics
MCP Security Weekly
Get CVE alerts and security updates for io.github.theYahia/yandex-metrika-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 Yandex.Metrica API — counters, goals, reports, logs, traffic sources, top pages. 15 tools, OAuth Bearer token auth.
Part of the Russian API MCP series by @theYahia.
Yandex.Metrica -> Read statistics and counter parametershttps://oauth.yandex.ru/authorize?response_type=token&client_id=YOUR_CLIENT_ID
access_token=...)Add to claude_desktop_config.json:
{
"mcpServers": {
"yandex-metrika": {
"command": "npx",
"args": ["-y", "@theyahia/yandex-metrika-mcp"],
"env": {
"YANDEX_METRIKA_TOKEN": "your_token"
}
}
}
}
claude mcp add yandex-metrika -e YANDEX_METRIKA_TOKEN=your_token -- npx -y @theyahia/yandex-metrika-mcp
YANDEX_METRIKA_TOKEN=your_token npx @theyahia/yandex-metrika-mcp --http --port=3000
Endpoint: POST http://localhost:3000/mcp
Health check: GET http://localhost:3000/health
Use smithery.yaml from the repository. Requires YANDEX_METRIKA_TOKEN.
| Variable | Required | Description |
|---|---|---|
YANDEX_METRIKA_TOKEN | Yes | OAuth 2.0 Bearer token from Yandex OAuth |
| Tool | Description |
|---|---|
list_counters | List all counters. Filter by name/URL with search_string. |
get_counter | Get full details of a single counter by ID. |
create_counter | Create a new counter for a website. |
update_counter | Update counter name or site URL. |
delete_counter | Permanently delete a counter (irreversible). |
| Tool | Description |
|---|---|
list_goals | List all goals for a counter. |
create_goal | Create a goal (url, number, step, action types). |
delete_goal | Delete a goal from a counter. |
| Tool | Description |
|---|---|
export_logs | Export raw visit/hit logs via the Logs API. |
| Tool | Description |
|---|---|
get_report | Flexible reporting — any metrics + dimensions + filters + sort. |
get_report_comparison | Compare two date periods (A vs B). |
get_report_drilldown | Hierarchical drill-down into report dimensions. |
| Tool | Description |
|---|---|
get_traffic_summary | Quick overview: visits, pageviews, users, bounce rate, avg duration. |
get_traffic_sources | Traffic sources breakdown by channel. |
get_top_pages | Top pages by pageviews with performance metrics. |
Show me all my Yandex.Metrica counters
Compare last week's traffic to the previous week for counter 12345678
What are the top 10 pages on my site this month, sorted by pageviews?
npm install
npm run build
npm test
npm run dev # stdio mode
npm run start:http # HTTP mode on port 3000
MIT