Yandex Metrika MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yandex Metrika MCPList all my counters"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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 parametersGet the OAuth token:
https://oauth.yandex.ru/authorize?response_type=token&client_id=YOUR_CLIENT_IDCopy the token from the redirect URL (
access_token=...)
Related MCP server: yandex-direct-mcp
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-mcpStreamable HTTP (remote / multi-client)
YANDEX_METRIKA_TOKEN=your_token npx @theyahia/yandex-metrika-mcp --http --port=3000Endpoint: 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 |
| Yes | OAuth 2.0 Bearer token from Yandex OAuth |
Tools (15)
Management — Counters
Tool | Description |
| List all counters. Filter by name/URL with |
| Get full details of a single counter by ID. |
| Create a new counter for a website. |
| Update counter name or site URL. |
| Permanently delete a counter (irreversible). |
Management — Goals
Tool | Description |
| List all goals for a counter. |
| Create a goal (url, number, step, action types). |
| Delete a goal from a counter. |
Management — Logs
Tool | Description |
| Export raw visit/hit logs via the Logs API. |
Reporting API
Tool | Description |
| Flexible reporting — any metrics + dimensions + filters + sort. |
| Compare two date periods (A vs B). |
| Hierarchical drill-down into report dimensions. |
Convenience Wrappers
Tool | Description |
| Quick overview: visits, pageviews, users, bounce rate, avg duration. |
| Traffic sources breakdown by channel. |
| Top pages by pageviews with performance metrics. |
Demo Prompts
Show me all my Yandex.Metrica countersCompare last week's traffic to the previous week for counter 12345678What 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 3000API Reference
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/yandex-metrika-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server