SuperAPIAI Directory

mcp-yandex-direct

github.com · AI marketing

Yandex Direct API: manage PPC campaigns, ad groups, ads, keywords, bid modifiers, sitelinks, callouts and vCards, and pull statistics.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

Purpose

mcp-yandex-direct is an MCP server for connecting AI applications to Yandex Direct advertising accounts. Users can ask in natural language where their advertising budget is going, link ad campaigns, ads, and keywords, and prepare or implement the necessary changes without switching between sections of the advertising backend. The connection starts directly in the conversation, with no need to create a token in advance or edit configuration.

Main capabilities

The server provides 44 tools covering ad campaigns, ad groups, ads, keywords, bids, bid adjustments, extensions, statistics, balance, reference data, and in-conversation account connection.

Advertising is usually structured in three levels: ad campaign → ad group → ad. Ad groups contain keywords, display settings, and bid adjustments. Ads can have sitelinks, descriptions, a business card, and images. The server helps view these objects together: linking an ad campaign's spend with statistics for ad groups, keywords, and ads. It can only create new ad campaigns and ads of the text type. Other types of ad campaigns can be read, renamed, have their budget changed, paused, archived, and deleted by identifier.

Statistics are not generated instantly: get_statistics starts a report in the Reports service and waits for it to be ready. For large lists, autoPaginate automatically pages through them.

How to use

Connection methods

There are two connection methods:

  • Remote server: connect via the URL https://mcp.askads.ru/mcp , suitable for applications that support using MCP via URL. Log in to Yandex in the browser and confirm access permissions; there is no need to pass a token into the configuration. This method is read-only—statistics, audits, and viewing objects; it does not change advertising settings. In Claude Code, it can be added via a command; after connecting, open /mcp to complete authorization. Other applications that support HTTP MCP can add the same URL through the application interface.
  • Local server: connect via npx, providing full access to the advertising account. Requires Node.js 20+. npx downloads the server on first launch, so there is no need to install a package separately. There is no need to obtain a token in advance; the connection starts directly in the conversation.

In-conversation connection

Request a connection to Yandex Direct in the chat. Yandex will open a login page; open the link under an account that has access to the target advertising account, confirm access, and send the code shown in the chat. After that, you can manage advertising without restarting the client or modifying the configuration. The connection renews automatically and will not expire after a year. You can check the status via "show connection status" and disconnect via "disconnect Direct". Granted access permissions can be revoked in Yandex ID.

Adding the server in an AI application

  • Claude Code: add via the command line; check the connection using claude mcp list.
  • Claude Desktop: open Settings → Developer → Edit Config and add it in claude_desktop_config.json. If there is no Developer section, you can open the file manually: on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%\Claude\claude_desktop_config.json. Restart Claude Desktop.
  • Cursor: open ~/.cursor/mcp.json to connect the server in all projects, or open .cursor/mcp.json in a specific project.
  • VS Code: run MCP: Open User Configuration in the command palette, and in the opened mcp.jsoAdd a server in n. After saving, run MCP: List Servers and start the server from the list.
  • Codex: Open Settings → Plugins → MCP servers through the application interface, click Add server, and add the startup command npx -y mcp-yandex-direct@latest.

For CI and agent installation

For CI and automated installation scenarios without a conversation, configure via environment variables, using a prepared token and YANDEX_DIRECT_LOGIN. When obtaining a token for YANDEX_DIRECT_TOKEN, log in under an account that has access to the target account. Do not expose the token in chats, repositories, or screenshots: it provides access to the advertising account, including operations that may affect the budget.

When to use

  • Understand where the budget goes: "Which campaigns spent the most last week?" "Which ads received impressions and clicks but no conversions?" "Compare spend, CTR, and average CPC across campaigns over a month." "Show the account balance and the remaining daily API quota."
  • Find improvement opportunities: "Which keywords consume budget but bring no clicks?" "Which ad groups and ads are currently paused or failed moderation?" "Check which bid adjustments apply for mobile devices." "What sitelinks and descriptions does this campaign have?"
  • Prepare changes: "Suggest new bids for high-CTR keywords and show the changes before applying them." "Check whether the campaign has negative keywords for this topic and prepare a list." "Collect parameters for a new text campaign for Moscow: budget, ad groups, keywords, and ads."
  • Perform explicit actions: "Add these keywords to ad group 123 and set the bid to 45 ₽." "Pause ad 456." "Send the page with images to the ad library."

Limitations

  • The remote server reads data only via URL. The local server via npx can change a real advertising account.
  • Tools pass markers for read, write, and potentially irreversible operations to the AI application. The application may show a confirmation, but its behavior depends on the client. Direct API requests do not perform writes unless confirmWrite=true is set; changing ads requires an explicit request.
  • Daily API quota: each call consumes Units. The get_quota tool shows how many have been consumed today, how many remain, and how many are available.
  • Report limitations: Yandex reports have their own limits on datavolume and daily quantity, and you must wait for the report to be ready in the Reports service.
  • Large lists: if automatic pagination reaches an internal limit, the server explicitly marks the result as incomplete rather than hiding this.
  • Transient errors: the server retries up to three times when encountering rate limits. Network and server errors are automatically retried only for read operations to avoid duplicate changes.
  • Real advertising account: local changes are applied to a real advertising account and may affect spend. Use the sandbox for testing (YANDEX_DIRECT_SANDBOX=true).
  • No continuous monitoring: the server runs during calls from the AI application. If the application supports scheduled tasks, you can configure periodic requests to check the required metrics.

Data and telemetry

By default, the server sends anonymous technical events: a random installation identifier, the names of the tools called, the server version, the AI application version, the Node.js version, and the operating system version. This is used to understand which parts of the server are used and whether problems occur at startup. Yandex tokens, advertising account data, tool parameters, request texts, environment variable values and names are not sent. To disable telemetry for the Ask Ads MCP server, you can set an environment variable.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools