npm @theyahia/yandex-metrika-mcpstdioMITupdated 21d ago
## 🗄 Репозиторий заархивирован Разработка переехала в theYahia/YaAll — сборку, где весь яндексовский слой лежит в одном месте: официальные MCP-серверы Яндекса, MCP под Директ и Метрику, скилл YaGEO и Wordstat-гейт. Актуальная версия того, что лежало здесь: mcp/yandex-metrika-mcp/ Здесь больше ничего не обновляется. Задачи и pull request'ы — в YaAll. Archived — development moved to theYahia/YaAll, a single repository bundling the whole Yandex stack. The current version of this package now lives at mcp/yandex-metrika-mcp/. Please open issues and pull requests there.
このリポジトリは所有者によってアーカイブされました。動作はしますが、更新はされません。
yandex metrika mcp で何ができる?
🗄 Репозиторий заархивирован
Разработка переехала в theYahia/YaAll — сборку, где весь яндексовский слой лежит в одном месте: официальные MCP-серверы Яндекса, MCP под Директ и Метрику, скилл YaGEO и Wordstat-гейт.
Актуальная версия того, что лежало здесь:
mcp/yandex-metrika-mcp/Здесь больше ничего не обновляется. Задачи и pull request'ы — в YaAll.
Archived — development moved to theYahia/YaAll, a single repository bundling the whole Yandex stack. The current version of this package now lives at
mcp/yandex-metrika-mcp/. Please open issues and pull requests there.
@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
インストール
yandex metrika mcp をクライアントに追加します。お使いのものを選んでください。
claude mcp add yandex-metrika-mcp -- npx -y @theyahia/yandex-metrika-mcpcodex mcp add yandex-metrika-mcp -- npx -y @theyahia/yandex-metrika-mcpamp mcp add yandex-metrika-mcp -- npx -y @theyahia/yandex-metrika-mcp{
"mcpServers": {
"yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"yandex-metrika-mcp","command":"npx","args":["-y","@theyahia/yandex-metrika-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"yandex-metrika-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"yandex-metrika-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"yandex-metrika-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@theyahia/yandex-metrika-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @theyahia/yandex-metrika-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
スコア
39 / 100
情報不足
- ドキュメント25/25
- メンテナンス14/25
- 信頼性13/20
- 機能0/15
- 導入のしやすさ12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 14 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
バージョン履歴
| バージョン | 公開日 |
|---|---|
| 2.1.1最新 | 2026年5月1日 |
| 1.0.1 | 2026年3月31日 |