Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Yandex Direct

by gistrecversion 1.0.5i★ 9iRuns on your computerRepository ↗
Registry nameio.github.gistrec/mcp-yandex-direct

How to install

What it does

MCP server for Yandex Direct API v5: manage PPC campaigns, ads, keywords, and statistics.

  • Connects Runs on your computer
  • Account or key Needs YANDEX_DIRECT_TOKEN
  • Category Marketing & social media

Use together with

Skills that teach the AI this kind of work; they work alongside this one

scroll-world

A skill that turn any brand into a scrollable 3D world landing page

by oso95★ 11,0551 skills

Skill · How-to guide

social-auto-upload

自动化上传视频到社交媒体:抖音、小红书、视频号、tiktok、youtube、bilibili

by dreammis★ 16,657 (whole repo)4 skills

Skill · How-to guide

native-subtitle-quote-image

保留视频内嵌字幕,精确取帧并生成 3:4 社交长图的 Agent Skill

by chengyi-ai★ 2,8881 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity27/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score39/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Yandex Direct. Follow https://mcp.popnx.com/i/gistrec-mcp-yandex-direct.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Yandex Direct for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "yandex-direct": { "command": "npx", "args": [ "-y", "mcp-yandex-direct" ], "env": { "YANDEX_DIRECT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YANDEX_DIRECT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Yandex Direct tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Yandex Direct key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Yandex Direct site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "yandex-direct": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-yandex-direct"
          ],
          "env": {
            "YANDEX_DIRECT_TOKEN": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Yandex Direct and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Yandex Direct or shows a Yandex Direct tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • YANDEX_DIRECT_LOGIN Client login to target a specific account on agency tokens.
  • YANDEX_DIRECT_SANDBOX Set to true to call the Yandex Direct sandbox API instead of production. · default false
  • YANDEX_DIRECT_LANG Language for API responses and error messages (ru, en, ...). · default ru

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Yandex Direct yet

Yandex Direct runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Yandex Direct

  • You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Marketing & social media that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Yandex Direct for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user yandex-direct --env YANDEX_DIRECT_TOKEN=your-value -- npx -y mcp-yandex-direct 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YANDEX_DIRECT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Yandex Direct tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Yandex Direct key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Yandex Direct site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user yandex-direct --env YANDEX_DIRECT_TOKEN=your-value -- npx -y mcp-yandex-direct

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Yandex Direct listed as connected

  6. Try it

    Use Yandex Direct and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Yandex Direct or shows a Yandex Direct tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • YANDEX_DIRECT_LOGIN Client login to target a specific account on agency tokens.
  • YANDEX_DIRECT_SANDBOX Set to true to call the Yandex Direct sandbox API instead of production. · default false
  • YANDEX_DIRECT_LANG Language for API responses and error messages (ru, en, ...). · default ru

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Yandex Direct for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "yandex-direct": { "command": "npx", "args": [ "-y", "mcp-yandex-direct" ], "env": { "YANDEX_DIRECT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YANDEX_DIRECT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Yandex Direct tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Yandex Direct key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Yandex Direct site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Yandex Direct settings, YANDEX_DIRECT_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Yandex Direct and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Yandex Direct or shows a Yandex Direct tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • YANDEX_DIRECT_LOGIN Client login to target a specific account on agency tokens.
  • YANDEX_DIRECT_SANDBOX Set to true to call the Yandex Direct sandbox API instead of production. · default false
  • YANDEX_DIRECT_LANG Language for API responses and error messages (ru, en, ...). · default ru

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Yandex Direct key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Yandex Direct for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "yandex-direct": { "type": "stdio", "command": "npx", "args": [ "-y", "mcp-yandex-direct" ], "env": { "YANDEX_DIRECT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For YANDEX_DIRECT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Yandex Direct tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Yandex Direct key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Yandex Direct site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Yandex Direct settings, YANDEX_DIRECT_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Yandex Direct and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Yandex Direct or shows a Yandex Direct tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • YANDEX_DIRECT_LOGIN Client login to target a specific account on agency tokens.
  • YANDEX_DIRECT_SANDBOX Set to true to call the Yandex Direct sandbox API instead of production. · default false
  • YANDEX_DIRECT_LANG Language for API responses and error messages (ru, en, ...). · default ru

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Yandex Direct💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user yandex-direct --env YANDEX_DIRECT_TOKEN=your-value -- npx -y mcp-yandex-direct

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "yandex-direct": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-direct"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "yandex-direct": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-direct"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "yandex-direct": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-direct"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "your-value"
      }
    }
  }
}

Values you fill in

  • YANDEX_DIRECT_TOKEN secret required env
    Yandex Direct OAuth token — full account access (can spend budget). Treat it as a secret.
  • YANDEX_DIRECT_LOGIN env
    Client login to target a specific account on agency tokens.
  • YANDEX_DIRECT_SANDBOX env
    Set to true to call the Yandex Direct sandbox API instead of production.
  • YANDEX_DIRECT_LANG env
    Language for API responses and error messages (ru, en, ...).

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
1,188/wk
Connection
Runs on your computer
Latest versioni
1.0.5
Published to registryi
Jun 18, 2026
Code last changedi
Nov 12, 2026
Maker
gistrec
Packages
npm: mcp-yandex-direct
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account askads, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 7 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for mcp-yandex-direct@1.0.5

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/gistrec-mcp-yandex-direct.svg)](https://mcp.popnx.com/en/servers/gistrec-mcp-yandex-direct)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Marketing & social mediai

  • More stars than 96% of the other 4190 servers in this category
  • Published to the registry more recently than 10% of the other 4190 servers in this category
  • Basic checks equal to or better than 99% of the other 4190 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Yandex Direct safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: YANDEX_DIRECT_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 7 days ago, and the latest version (1.0.5) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Relaticle, ChatbotX, X (Twitter) MCP Server by Xquik, Betterlytics, BibiGPT YouTube Video Summarizer

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

ChatbotX

Omnichannel customer messaging, CRM contacts, flows, sequences, broadcasts, and AI automation.

by ChatbotXIOGrowing★ 1.1K Stars for the whole repoUpdated 13 days ago

Runs in the cloud✓ service owner · chatbotx.io

Betterlytics

Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.

by betterlyticsGrowing★ 196Updated 4 months ago

Runs in the cloud✓ service owner · betterlytics.io
Compared with similar ones
This one
Yandex Direct
RelaticleChatbotXX (Twitter) MCP Server by XquikBetterlyticsBibiGPT YouTube Video Summarizer
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoYesNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITAGPL-3.0NOASSERTIONMITAGPL-3.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Яндекс Директ MCP

Яндекс Директ MCP подключает AI-приложение к рекламному кабинету Яндекс Директа. Спросите на естественном языке, куда уходит рекламный бюджет, сопоставьте кампании, объявления и ключевые фразы, а затем подготовьте или внесите нужные изменения без переходов между разделами кабинета. Подключение начинается прямо в диалоге: не нужно заранее создавать токен или редактировать конфигурацию.

  • 46 инструментов. Кампании, группы, объявления, ключевые фразы, ставки, корректировки, расширения, статистика, баланс, справочники и подключение аккаунта прямо в диалоге.
  • Два способа подключения. Удалённый сервер по URL не требует вручную получать токен и только читает данные; локальный через npx даёт полный доступ к кабинету.
  • Подключение в чате. Яндекс откроет страницу входа; после кода из чата можно сразу работать с рекламой, а доступ действует около года.
  • Деньги в понятном виде. В удобных инструментах бюджеты, ставки и баланс показываются в валюте аккаунта, а не в микроединицах API.
  • Реальная реклама. Локальные изменения применяются в боевом кабинете и могут повлиять на расход. Для работы в тестовой среде есть песочница Яндекс Директа.

Попробуйте первым сообщением:

Покажи кампании моего аккаунта и расход за прошлую неделю по группам объявлений.

Подключить сервер · Посмотреть сценарии · Открыть техническую документацию


Увидеть работу за минуту

Вы: Подключи Яндекс Директ.

Ассистент: Даёт ссылку на вход в Яндекс. Откройте её под аккаунтом с доступом к нужному рекламному кабинету, подтвердите доступ и пришлите показанный код.

Вы: Отправляет код со страницы Яндекса.

Ассистент: Подключает Директ и показывает кабинет. Перезапускать приложение не нужно.

Вы: Покажи кампании моего аккаунта и расход за прошлую неделю по группам объявлений.

Ассистент: Находит кампании, строит отчёт по группам объявлений и показывает расход в валюте аккаунта.

Содержание

  • Быстрый старт
  • Что можно поручить
  • Как это работает
  • Что может изменить данные
  • Подключение и настройка
  • Данные и телеметрия
  • Ограничения
  • Техническая документация
  • Поддержка

Быстрый старт

  1. Выберите способ подключения и добавьте сервер в AI-приложение по инструкции ниже.
  2. Откройте новый диалог и спросите: «Покажи кампании моего аккаунта и расход за прошлую неделю по группам объявлений».
Анализ без самостоятельного получения токена — по URL

Удалённый сервер https://mcp.askads.ru/mcp подключается через приложение, которое поддерживает MCP по URL. Войдите в Яндекс в браузере и подтвердите доступ: токен не нужно передавать в конфиг. Этот вариант предназначен только для чтения — статистики, аудита и просмотра объектов; он не меняет настройки рекламы.

В Claude Code можно добавить его командой:

claude mcp add --transport http yandex-direct https://mcp.askads.ru/mcp

После подключения откройте /mcp и пройдите авторизацию. В остальных поддерживающих HTTP MCP приложениях добавьте тот же URL через интерфейс приложения.

Полный доступ — локально через npx

Для создания и изменения объектов нужен Node.js 20+. npx скачает сервер при первом запуске — отдельно устанавливать пакет не нужно. Получать токен заранее не требуется — подключение начинается прямо в диалоге:

  1. Добавьте сервер в AI-приложение — ниже открыт пример для Codex, остальные приложения собраны в сворачиваемые инструкции.
  2. Напишите: «Подключи Яндекс Директ» — ассистент проведёт через вход в Яндекс и покажет кабинет.

Для CI и агентских установок — готовый токен и YANDEX_DIRECT_LOGIN, см. Подключение и настройка.

Codex

Через интерфейс приложения:

  1. Откройте Settings → Plugins → MCP servers.
  2. Нажмите Add server.
  3. Добавьте команду запуска npx -y mcp-yandex-direct@latest.

Через командную строку:

codex mcp add yandex-direct -- npx -y mcp-yandex-direct@latest

Проверьте подключение:

codex mcp list

Официальная инструкция Codex

Claude Code

claude mcp add --transport stdio --scope user yandex-direct -- npx -y mcp-yandex-direct@latest

Проверить подключение: claude mcp list.

Claude Desktop

Откройте Settings → Developer → Edit Config и добавьте в claude_desktop_config.json:

{

"mcpServers": { "yandex-direct": { "command": "npx", "args": ["-y", "mcp-yandex-direct@latest"] } } }

Если раздела Developer нет, откройте файл вручную: macOS — ~/Library/Application Support/Claude/claude_desktop_config.json, Windows — %APPDATA%\Claude\claude_desktop_config.json. Перезапустите Claude Desktop.

Cursor

Откройте ~/.cursor/mcp.json, чтобы подключить сервер во всех проектах, или .cursor/mcp.json в конкретном проекте. Добавьте:

{

"mcpServers": { "yandex-direct": { "command": "npx", "args": ["-y", "mcp-yandex-direct@latest"] } } }

VS Code

В палитре команд выполните MCP: Open User Configuration. В открывшемся mcp.json добавьте сервер:

{

"servers": { "yandex-direct": { "type": "stdio", "command": "npx", "args": ["-y", "mcp-yandex-direct@latest"] } } }

После сохранения выполните MCP: List Servers и запустите сервер из списка.

Что можно поручить

Проверить, как расходуется бюджет
  • «Какие кампании за прошлую неделю потратили больше всего?»
  • «Какие объявления получают показы и клики, но не дают конверсий?»
  • «Сравни расход, CTR и среднюю цену клика по кампаниям за месяц».
  • «Покажи баланс счёта и остаток дневной квоты API».
  • «Покажи клиентов агентства» и «Какие кампании идут у клиента shop-msk?» — клиент выбирается прямо в диалоге.
  • «Что у меня по аккаунтам в управлении?», «Сколько вчера потратил каждый клиент?» — сводка по балансу, кампаниям и расходу всех клиентов за один вызов.
Найти точки для улучшения
  • «Какие ключевые фразы тратят бюджет, но не приносят кликов?»
  • «Какие группы и объявления сейчас остановлены или не проходят модерацию?»
  • «Проверь, какие корректировки ставок действуют для мобильных устройств».
  • «Какие быстрые ссылки и уточнения есть у этой кампании?»
Подготовить изменения
  • «Предложи новые ставки для фраз с высоким CTR и покажи изменения до применения».
  • «Проверь, есть ли в кампании минус-слова для этой темы, и подготовь список».
  • «Собери параметры новой текстовой кампании для Москвы: бюджет, группы, ключевые фразы и объявления».
Выполнить явное действие
  • «Добавь эти ключевые фразы в группу 123 и установи ставку 45 ₽».
  • «Приостанови объявление 456».
  • «Отправь страницу с изображением в библиотеку объявлений».

Как это работает

Реклама обычно строится из трёх уровней: кампания → группа объявлений → объявление. В группе находятся ключевые фразы, настройки показа и корректировки ставок. У объявлений могут быть быстрые ссылки, уточнения и изображения.

Сервер помогает смотреть на эти объекты вместе: связать расход кампании со статистикой групп, ключевыми фразами и объявлениями. Он умеет создавать новые кампании и объявления только текстового типа. Кампании других типов можно читать, переименовывать, останавливать, архивировать и удалять по идентификатору. Бюджет у Директа недельный и является частью стратегии: у текстовых кампаний и ЕПК его меняет set_campaign_strategy.

Статистика формируется не мгновенно: get_statistics запускает отчёт в сервисе Reports и ждёт его готовности. Большие списки autoPaginate проходит по страницам выдачи автоматически.

Что может изменить данные

Удалённый сервер по URL только читает данные. Локальный сервер через npx может изменить живой рекламный кабинет:

ДействиеЧто происходитНа что обратить внимание
Читать статистику и объектыСервер получает кампании, объявления, ключевые фразы, баланс и отчёты.Эти вызовы не меняют данные и не двигают деньги.
СоздаватьМожно создать текстовую кампанию, группу, текстовое объявление, ключевые фразы, расширения или загрузить изображение.Новые объекты попадут в боевой кабинет, если не включена песочница.
ОбновлятьМожно менять бюджет, ставки, названия, минус-слова, настройки групп и корректировки ставок.Изменение ставок и бюджетов может повлиять на расход.
Менять статус или удалятьМожно приостановить, возобновить, архивировать или удалить некоторые объекты.Удаление и отдельные действия необратимы.
Прямой запрос APIraw_request открывает любой метод API, для которого нет отдельного инструмента.Любой метод, кроме чтения, требует confirmWrite=true; данные там передаются в микроединицах.

Инструменты передают AI-приложению метки чтения, записи и потенциально необратимого действия. Приложение может показать подтверждение, но его поведение зависит от клиента. Прямой запрос API дополнительно не выполнит запись без confirmWrite=true; для изменения рекламы нужна явная просьба.

Подключение и настройка

Для обычного использования токен заранее не нужен:

  1. В чате попросите подключить Яндекс Директ.
  2. Откройте ссылку на Яндекс OAuth под аккаунтом с доступом к нужному рекламному кабинету.
  3. Подтвердите доступ и пришлите в чат показанный код. Всё, можно работать с рекламой: перезапускать клиент не нужно, конфигурацию править тоже.

Доступ действует около года. Когда он истечёт или будет отозван, сервер попросит подключиться заново тем же способом. Автоматическое продление работает только с собственным OAuth-приложением: задайте YANDEX_DIRECT_OAUTH_CLIENT_ID и YANDEX_DIRECT_OAUTH_CLIENT_SECRET, потому что Яндекс не продлевает токены без секрета приложения. Проверить состояние — попросите «покажи статус подключения», отключить — «отключи Директ». Выданный доступ отзывается в Яндекс ID.

Для CI и автоматических установок, где диалога нет, доступна настройка через переменные окружения:

ПеременнаяНазначение
YANDEX_DIRECT_TOKENГотовый OAuth-токен; имеет приоритет над входом из чата.
YANDEX_DIRECT_LOGINКлиент по умолчанию для агентского аккаунта; иначе API покажет аккаунт агентства. Любой инструмент принимает и client_login — так один сервер работает со всеми клиентами.
YANDEX_DIRECT_CLIENTSЛогины кабинетов в управлении через запятую (вы — представитель, не агентство). API их не перечисляет, поэтому список для list_clients берётся отсюда.
YANDEX_DIRECT_SANDBOXtrue — работа в тестовой среде (песочнице) Яндекс Директа.
YANDEX_DIRECT_OAUTH_CLIENT_IDClient ID собственного OAuth-приложения вместо встроенного.
YANDEX_DIRECT_OAUTH_CLIENT_SECRETСекрет этого приложения. Нужен только для автоматического продления доступа: без секрета Яндекс токен не продлевает.
YANDEX_DIRECT_LANGЯзык ответов API; по умолчанию ru.
YANDEX_DIRECT_TIMEOUT_MSТаймаут запроса; по умолчанию 60 000 мс.

| `YANDEX_DIRECT

Only the beginning is shown; read the rest in the repo