Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nikolaymokh-dev/yandex-direct-mcp --skill yandex-directgit clone --depth 1 https://github.com/nikolaymokh-dev/yandex-direct-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nikolaymokh-dev/yandex-direct-mcp/yandex-direct)<a href="https://agentmods.dev/skills/nikolaymokh-dev/yandex-direct-mcp/yandex-direct"><img src="https://agentmods.dev/badge/skills/nikolaymokh-dev/yandex-direct-mcp/yandex-direct/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nikolaymokh-dev/yandex-direct-mcp/yandex-direct"><img src="https://agentmods.dev/badge/skills/nikolaymokh-dev/yandex-direct-mcp/yandex-direct.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.04068 |
| Opus 5 | $0.00028 | $0.02034 |
| Sonnet 5 | $0.00011 | $0.00814 |
| Haiku 4.5 | $0.00006 | $0.00407 |
Grade A, and why
yandex-direct scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
97% identical to yandex-direct — 28 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Яндекс.Директ — управление через MCP tools
Управление рекламными кампаниями в Яндекс.Директ через MCP-инструменты плагина.
Первое действие — проверь авторизацию
Всегда начинай с auth_status(). Если valid: false:
- Вызови
auth_login()— он покажет ссылку для авторизации и запросит код через форму - Пользователю не нужно ничего знать заранее — flow полностью интерактивный
- После авторизации токен сохраняется на диск, повторный логин не требуется
Не пытайся вызывать другие tools пока авторизация не пройдена — они вернут ошибку.
Доступный MCP-контракт (146 tools)
Контракт теперь следует иерархии:
MCP -> direct (package: direct-cli) -> tapi-yandex-direct -> Yandex.Direct API
- Используй только публичные MCP tools.
- Не опирайся на старые alias-имена (
*_list,agency_clients_*,keyword_bids_*,smart_targets_*и т.д.). - Для Direct-операций используй канонические имена
service_method. - v4 Live методы вызывай только через публичные MCP tools; shell-группы без CLI-команд не используются.
Правила именования
*_list→*_get:campaigns_get,ads_get,keywords_get- Имена сервисов совпадают с
direct:agencyclients_*,audiencetargets_*,keywordbids_*,smartadtargets_*,dynamicads_*,negativekeywordsharedsets_*,turbopages_get - CLI методы с дефисом становятся snake_case:
changes_check_campaignschanges_check_dictionarieskeywordsresearch_has_search_volumebids_set_autokeywordbids_set_autoaudiencetargets_set_bidsdynamicads_set_bidssmartadtargets_set_bids
Direct API tools — основные семейства
| Семейство | Канонические tools |
|---|---|
| Кампании | campaigns_get/add/update/delete/archive/unarchive/suspend/resume |
| Группы / объявления / ключи | adgroups_get/add/update/delete, ads_get/add/update/delete/moderate/suspend/resume/archive/unarchive, keywords_get/add/update/delete/suspend/resume/archive/unarchive |
| Ставки | keywordbids_get/set/set_auto, bids_get/set/set_auto, bidmodifiers_get/add/set/delete |
| Таргетинг | audiencetargets_get/add/delete/suspend/resume/set_bids, retargeting_get/add/update/delete, dynamicads_get/add/delete/suspend/resume/set_bids, dynamicfeedadtargets_get/add/delete/suspend/resume/set_bids, smartadtargets_get/add/update/delete/suspend/resume/set_bids |
| Стратегии | strategies_get/add/update/archive/unarchive |
| Медиа и расширения | adimages_get/add/delete, advideos_get/add, adextensions_get/add/delete, sitelinks_get/add/delete, vcards_get/add/delete, creatives_get/add |
| Справочники / изменения / отчёты | dictionaries_get, dictionaries_get_geo_regions, changes_check, changes_check_campaigns, changes_check_dictionaries, reports_get |
| v4 Live | balance_get, v4account_get_accounts, v4account_update_account, v4account_deposit, v4account_invoice, v4account_transfer_money, v4account_enable_shared_account, v4events_get_events_log, v4goals_get_stat_goals, v4goals_get_retargeting_goals, v4tags_get_campaigns, v4tags_get_banners, v4tags_update_campaigns, v4tags_update_banners, v4forecast_create, v4forecast_list, v4forecast_get, v4forecast_delete, v4wordstat_create_report, v4wordstat_list_reports, v4wordstat_get_report, v4wordstat_delete_report |
| Прочее | clients_get/update, agencyclients_get/add/update/add_passport_organization/add_passport_organization_member, businesses_get, feeds_get/add/update/delete, leads_get, negativekeywordsharedsets_get/add/update/delete, keywordsresearch_has_search_volume, keywordsresearch_deduplicate, turbopages_get |
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 217 lines · 55 tokens per session scan A aede60d52900
yandex-direct is a skill published in the GitHub repository nikolaymokh-dev/yandex-direct-mcp (0 stars, last pushed 10d ago), licensed MIT. It adds 55 tokens to every session and 4,068 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to yandex-direct, differing in 28 lines, and is treated as a copy.
Other skills, from other repositories
ga4-reporting
A reporting tool for Google Analytics 4, Google's service for measuring website visits and user actions. It reports traffic, sources, pages, events, conversions, locations, devices, and changes over time.
serp-rank-tracking
A search-position checker for Google and Yandex. It compares a website with competitors and records the search results for a list of phrases.
yandex-webmaster-metrika
A connection to Yandex Webmaster and Yandex Metrica, two services for understanding search visibility and visitor behaviour. It examines search queries, rankings, indexing, site problems, and what visitors do after arriving.
keyword-research-ru
A keyword-research tool for Yandex, the search engine widely used in Russia and nearby markets. It measures search demand, seasonality, regional interest, and related phrases.
aparser-operations
A read-only bridge to a self-hosted A-Parser server, a tool that runs search-result and other web-parsing jobs. The server, licence, and proxy services belong to the user.
gsc-search-analytics
A guide for analysing Google search performance with Search Console, Google's service for showing how a site appears in search results. It covers clicks, impressions, rankings, search queries, pages, URL indexing, and sitemaps.