Yandex Direct MCP

yandex-direct-mcp

A Claude Code and Codex plugin for Yandex Direct: a 147-tool MCP server, OAuth, and skills for ad copy and stats analysis

PluginHigh riskRussian stack

axisrow/yandex-direct-mcp-plugin

Install

/plugin marketplace add etopro/plugin-marketplace
/plugin install yandex-direct@plugin-marketplace

Then call auth_login() in chat. Create a Yandex OAuth app once beforehand.

This is third-party code. Review the repository files before installing.

What it does

The plugin installs a local MCP server built on direct-cli that covers most of the Direct API: campaigns, ad groups, ads, keywords and negative keywords, bids and modifiers, strategies, retargeting, feeds, reports, Metrica goals, Wordstat and budget forecasts. Finance operations are included: balance, top-ups, invoices and transfers between accounts. Three skills help manage campaigns, write ads within character limits and run exploratory stats analysis. The tool set can be narrowed with a profile such as analytics only, and Campaign Masters are read through a Playwright-driven browser.

Who it is for. For PPC specialists and business owners who run Yandex Direct campaigns.

Good fit when

  • You need campaign stats and to find expensive ads
  • You need to change bids or pause weak ads by a rule
  • You need ad variants within Direct character limits
  • You need a breakdown by device, region and search query

Not a fit when

  • A high-budget account where every change needs sign-off
  • You only need stats and do not want to grant write access

Example request

Show campaigns for the last week and find ads where a lead costs more than 1500 rubles

Limitations

Before first login you must create a Yandex OAuth app with direct:api access and get your API application approved in Direct, otherwise requests return incomplete_registration. Python 3.11 is required. Campaign Masters need Playwright, Chromium and a manual terminal login. Unofficial plugin.

How to disable. Uninstall the yandex-direct plugin via /plugin. Saved auth lives in ~/.direct-cli/, and the Masters profile is removed with direct masters logout.

Security check

  • Changes bids, budgets and campaign states in an ad account
  • Includes finance operations: top-ups, invoices and transfers between accounts
  • Stores a Yandex OAuth token and a live session

README in short

The Russian README starts with plugin marketplace install and Yandex login. It lists capability groups, sample prompts and ways to connect Claude Code, Codex and other MCP clients. It details creating the OAuth app and API application, profiles that limit tools, and separate browser auth for Campaign Masters. It ends with a skills table and development commands. MIT licensed.

SKILL.md

---
name: direct-ads
description: "Написание рекламных объявлений для Яндекс.Директ. Используется когда пользователь просит написать, улучшить или проверить текст объявления, заголовки, или тексты для контекстной рекламы."
user-invocable: true
argument-hint: "[тема или описание рекламируемого продукта/услуги]"
---

# Написание объявлений Яндекс.Директ

Скилл для создания эффективных рекламных объявлений в Яндекс.Директ.

## Лимиты символов

| Элемент | Максимум символов |
|---|---|
| Title (Заголовок) | 35 |
| Title2 (Второй заголовок) | 30 |
| Text (Текст объявления) | 81 |

## Правила написания

### Заголовок (Title)
- Начинайте с главного предложения или УТП
- Используйте цифры и конкретику: "Скидка 30%", "Доставка за 30 мин"
- Включите гео если релевантно: "Пицца Москва"

### Второй заголовок (Title2)
- Дополняйте первый заголовок
- Добавьте призыв к действию: "Закажите сейчас"
- Укажите дополнительные преимущества

### Текст объявления
- Подробности о предложении
- Условия доставки/оплаты
- Гарантии и преимущества
- Не повторяйте то, что уже в заголовках

FAQ

How do I limit the agent to reading stats?

Set YANDEX_DIRECT_TOOL_PROFILE=analytics or disable groups via YANDEX_DIRECT_DISABLED_GROUPS.

Why do requests return incomplete_registration?

Your API access application for the app's Client ID has not been approved in the Direct interface.

Does it work with Codex?

Yes, the repo has a marketplace manifest at .agents/plugins/marketplace.json and a Codex plugin bundle.

Marketing Skills for AI agents

Marketing Skills for AI Agents

Editors’ pick

About fifty skills for CRO, copywriting, SEO, analytics, ads and launches, built for coding agents

SkillLow risk50.2K
Editors’ pick

A skill that strips AI writing tells from text using Wikipedia's list, without adding invented facts

SkillLow risk48.1K

Content skills: article illustrations, covers, infographics, comics, translation, URL to Markdown and social posting

SkillHigh risk25.9K

The Chinese version of Humanizer: finds and removes signs of AI writing in Chinese text

SkillLow risk17.3K