yandex-metrika-mcp MCP Server
MCP server for Yandex Metrika — web analytics, counters, goals, traffic (Russia)
yandex-metrika-mcp scores 65 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 15 tools. Filed under AI and memory. GitHub shows 1 stars. Package registries report about 97 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
65 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short README, short summary.
How quality is graded
Where the 65 comes from
22 + 15 + 4 + 10 + 4 + 10 = 65. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "theyahia-yandex-metrika-mcp": { "command": "npx", "args": [ "-y", "@theyahia/yandex-metrika-mcp@2.1.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools15Tool docs quality grade C
All capabilitiescreate_countertoolCreate a new counter for a website.
create_goaltoolCreate a goal (url, number, step, action types).
delete_countertoolPermanently delete a counter (irreversible).
delete_goaltoolDelete a goal from a counter.
export_logstoolExport raw visit/hit logs via the Logs API.
get_countertoolGet full details of a single counter by ID.
get_reporttoolFlexible reporting — any metrics + dimensions + filters + sort.
Compare two date periods (A vs B).
Hierarchical drill-down into report dimensions.
get_top_pagestoolTop pages by pageviews with performance metrics.
Traffic sources breakdown by channel.
Quick overview: visits, pageviews, users, bounce rate, avg duration.
About
@theyahia/yandex-metrika-mcp
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.
Getting a Token
- Go to oauth.yandex.ru
- Create an app (or use an existing one)
- Under Platforms, select "Web services"
- Under Access, add:
Yandex.Metrica->Read statistics and counter parameters - Get the OAuth token:
https://oauth.yandex.ru/authorize?response_type=token&client_id=YOUR_CLIENT_ID - Copy the token from the redirect URL (
access_token=...)
Installation
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"yandex-metrika": {
"command": "npx",
"args": ["-y", "@theyahia/yandex-metrika-mcp"],
"env": {
"YANDEX_METRIKA_TOKEN": "your_token"
}
}
}
}
Claude Code
claude mcp add yandex-metrika -e YANDEX_METRIKA_TOKEN=your_token -- npx -y @theyahia/yandex-metrika-mcp
Streamable HTTP (remote / multi-client)
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
Smithery
Use smithery.yaml from the repository. Requires YANDEX_METRIKA_TOKEN.
Environment Variables
| Variable | Required | Description |
|---|---|---|
YANDEX_METRIKA_TOKEN | Yes | OAuth 2.0 Bearer token from Yandex OAuth |
Tools (15)
Management — Counters
| 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). |
Management — Goals
| 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. |
Management — Logs
| Tool | Description |
|---|---|
export_logs | Export raw visit/hit logs via the Logs API. |
Reporting 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. |
Convenience Wrappers
| 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. |
Demo Prompts
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?
Development
npm install
npm run build
npm test
npm run dev # stdio mode
npm run start:http # HTTP mode on port 3000
API Reference
License
MIT
Frequently asked questions
What is yandex-metrika-mcp MCP Server?
MCP server for Yandex Metrika — web analytics, counters, goals, traffic (Russia)
How do I install yandex-metrika-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. yandex-metrika-mcp MCP Server runs locally from the npm package @theyahia/yandex-metrika-mcp with the command npx -y @theyahia/yandex-metrika-mcp@2.1.1.
Is yandex-metrika-mcp MCP Server free and open source?
Yes. yandex-metrika-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does yandex-metrika-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for yandex-metrika-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does yandex-metrika-mcp MCP Server provide?
yandex-metrika-mcp MCP Server provides 15 tools, including create_counter, create_goal, delete_counter, and delete_goal. See the full tool list for descriptions and parameters.
How is yandex-metrika-mcp MCP Server's trust score calculated?
yandex-metrika-mcp MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.