yandex-direct-mcp
This server provides tools to manage Yandex.Direct advertising campaigns from any MCP client (e.g., Claude, Cursor), covering campaigns, ad groups, ads, keywords, bids, negative keywords, statistics, and account balance.
Campaign Management
List campaigns with filtering by status and type
Get detailed info about a specific campaign (budget, status, dates, stats)
Create new campaigns (name, type, start date, daily budget)
Update campaigns (name, budget, or status: SUSPEND/RESUME/ARCHIVE/UNARCHIVE)
Ad Group Management
List ad groups for selected campaigns (names, regions, statuses)
Create ad groups within a campaign with regional targeting
Delete ad groups and set negative keywords (minus-phrases)
Ad Management
List ads within ad groups (titles, texts, links, statuses)
Create text ads (headline, body, second headline, URL)
Update ads and manage statuses (pause, archive, moderation, delete)
Keyword Management
List keywords in ad groups (phrases, bids, statuses)
Add keywords to an ad group
Set bids for search and ad networks
Set campaign-level negative keywords
Statistics & Account
Retrieve campaign performance reports for a date range (impressions, clicks, cost, CTR, CPC)
Check account balance
Access the regions directory
Additional Notes
Budgets and bids are in rubles; the server converts to API micro-units automatically
Supports sandbox mode (
YANDEX_DIRECT_SANDBOX=1) for safe testingSupports agency mode via
Client-Loginheader for managing client accounts
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-direct-mcpList all active campaigns"
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-direct-mcp
MCP-сервер для API Яндекс.Директ — управление контекстной рекламой из любого MCP-клиента (Claude, Cursor и др.): кампании, группы, объявления, ключевые слова, ставки, минус-фразы, статистика, баланс. 20 инструментов.
Деньги — в рублях (бюджеты, ставки на вводе и выводе); сервер сам конвертирует в микроединицы API. Поддержаны песочница для безопасного теста и агентский режим (Client-Login).
Установка
Claude Desktop
{
"mcpServers": {
"yandex-direct": {
"command": "npx",
"args": ["-y", "@theyahia/yandex-direct-mcp"],
"env": {
"YANDEX_DIRECT_TOKEN": "ваш_токен"
}
}
}
}Claude Code
claude mcp add yandex-direct -e YANDEX_DIRECT_TOKEN=ваш_токен -- npx -y @theyahia/yandex-direct-mcpRelated MCP server: yandex-marketing-mcp
Конфигурация (переменные окружения)
Переменная | Обязательна | Назначение |
| да | OAuth-токен Яндекс.Директ |
| нет |
|
| нет | Логин клиента для агентских токенов (заголовок |
Как получить токен
OAuth-токен выпускается для приложения, зарегистрированного в Яндекс OAuth, с доступом к API Директа. Подробности — регистрация приложения и получение токена. Доступ к API нужно запросить в интерфейсе Директа.
⚠️ Внимание: реальные траты
Инструменты create_campaign, create_text_ad, add_keywords, set_keyword_bids и др. меняют боевой рекламный аккаунт и могут расходовать деньги. Для отладки сценариев включайте песочницу (YANDEX_DIRECT_SANDBOX=1).
Инструменты (20)
Кампании
Инструмент | Описание |
| Список кампаний (фильтр по статусу/типу, пагинация) |
| Детальная информация о кампании по ID |
| Создать кампанию (бюджет в рублях, выбор стратегии) |
| Обновить название/бюджет и/или статус (SUSPEND/RESUME/ARCHIVE/UNARCHIVE) |
Группы объявлений
Инструмент | Описание |
| Группы объявлений выбранных кампаний |
| Создать группу с таргетингом по регионам |
| Удалить группы по ID |
| Задать минус-фразы группы |
Объявления
Инструмент | Описание |
| Объявления в группах |
| Создать текстовое объявление (≤56/≤30/≤81) |
| Обновить заголовок/текст/ссылку |
| suspend/resume/archive/unarchive/moderate/delete |
Ключевые слова и ставки
Инструмент | Описание |
| Ключевые фразы в группах (ставки в рублях) |
| Добавить ключевые фразы |
| Установить ставки (поиск/сети, рубли) на фразах/группах/кампаниях |
| suspend/resume/delete |
| Задать минус-фразы кампании |
Статистика, аккаунт, справочники
Инструмент | Описание |
| Статистика за период (показы, клики, расход, CTR, CPC) |
| Баланс аккаунта (Live API v4) |
| Справочник кодов регионов (225 = Россия) |
Примеры запросов
Покажи все активные рекламные кампании
Создай кампанию "Летняя распродажа" с бюджетом 5000 ₽/день, старт 2026-05-01
Установи ставку 25 ₽ на ключевые фразы 111 и 222
Добавь минус-фразы "бесплатно", "скачать" в кампанию 12345
Какая статистика у кампаний 12345 и 67890 за последнюю неделю?
Найди код региона для Новосибирска
Покажи баланс аккаунтаРазработка
npm install
npm run build # tsc → dist/
npm test # vitest (моки fetch)
npm run dev # tsx src/index.tsЛицензия
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server for VK Ads API enabling management of campaigns, ads, statistics, targeting, and budgets through natural language.Last updated88314MIT
- AlicenseBqualityBmaintenanceMCP server for managing Yandex Direct advertising, Yandex Metrica analytics, Wordstat keyword research, and Yandex Webmaster SEO tools, with self-configuring OAuth; provides 153 tools for complete ad and search workflows from AI assistants.Last updated100166MIT
- AlicenseBqualityBmaintenanceA hardened MCP server for managing Yandex.Direct advertising campaigns with read-only defaults, write and finance capabilities optional, using OAuth authentication.Last updated26MIT
- Alicense-qualityDmaintenanceMCP server for Yandex Direct, Metrika, Wordstat, and Webmaster APIs, providing 132 tools to manage advertising campaigns, analytics, keyword research, and reporting through any MCP-compatible client.Last updated56MIT
Related MCP Connectors
MCP for Yandex Direct: manage ad campaigns & analytics from Claude or ChatGPT
Read-only Yandex Metrika MCP. Query visits, sources, geo, devices and more in plain language.
MCP server for Appcircle mobile CI/CD platform.
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-direct-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server