
yandex-metrika-mcp
io.github.theYahiaPublished by GitHub account theYahiav2.1.1Updated Oct 24, 2026
MCP server for Yandex Metrika — web analytics, counters, goals, traffic (Russia)
Overview
Lets an assistant read and manage Yandex.Metrica web analytics: counters, goals, reports, logs, and traffic data.
- What you can do
- Wraps the Yandex.Metrica Management, Reporting, and Logs APIs in 15 tools. It can list, create, update, and delete counters and goals, export raw visit and hit logs, and run flexible reports with custom metrics, dimensions, filters, and sorting. Convenience tools give traffic summaries, traffic-source breakdowns, and top pages, plus period-over-period comparison and drill-down reports.
- When to use it
- Useful when a site's analytics live in Yandex.Metrica and you want an assistant to pull traffic numbers, compare periods, inspect top pages, or manage counters and goals without opening the web interface.
- Requirements
- Runs locally over stdio, typically via npx from the npm package @theyahia/yandex-metrika-mcp, so Node.js is needed. An OAuth 2.0 Bearer token from Yandex OAuth is required in the environment variable YANDEX_METRIKA_TOKEN. An optional HTTP mode serves a local endpoint on port 3000. Network access to Yandex APIs is required.
Installation
In SourceWeft
- Open yandex-metrika-mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
@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:
- Copy the token from the redirect URL (
access_token=...)
Installation
Claude Desktop
Add to claude_desktop_config.json:
Claude Code
Streamable HTTP (remote / multi-client)
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
Tools (15)
Management — Counters
Management — Goals
Management — Logs
Reporting API
Convenience Wrappers
Demo Prompts
Development
API Reference
License
MIT
Source: README.md at commit 2c736e0
Tools
0Version history
1- v2.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts