Koskamo

Yandex Direct API MCP

An open-source MCP server and CLI tool that wraps the Yandex Direct API v5, exposing 113 methods derived from the machine-readable schema. It allows AI agents to interact with Yandex advertising data, covering campaigns, ads, targeting, bids, reports, and client management. The server defaults to read-only operations for safety but can be configured to allow modifications. It handles API nuances like currency micro-units automatically.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Yandex Direct API MCP logo, by artgas1Community listingLocal stdioSource reviewed; not executedPublished by artgas1
You need:Нужен OAuth-токен Яндекса со scope direct:api
Vendor documentation

What you can do with it

  • Retrieve campaign and ad group details
  • Fetch keyword targeting data
  • Get bid modifiers and keyword bids
  • Generate reports and access dictionaries

Source and maintenance

Community listingRegistry 1.1.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

yandex-direct-api-mcp 1.1.1

npmnpx
yandex-direct-api-mcp package definition
{
  "version": "1.1.1",
  "transport": "stdio",
  "identifier": "yandex-direct-api-mcp",
  "runtimeHint": "npx",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "YANDEX_DIRECT_TOKEN",
      "format": "string",
      "isRequired": true,
      "description": "OAuth-токен Яндекса со scope direct:api (https://oauth.yandex.ru/)"
    },
    {
      "name": "YANDEX_DIRECT_LOGIN",
      "format": "string",
      "description": "Логин кабинета для заголовка Client-Login. Нужен агентствам и представителям; для собственного кабинета не задаётся"
    },
    {
      "name": "DIRECT_PROFILE",
      "format": "string",
      "choices": [
        "core",
        "read",
        "all"
      ],
      "default": "core",
      "description": "Набор объявляемых инструментов: core — узкий набор по умолчанию, read — все читающие, all — вся поверхность"
    },
    {
      "name": "DIRECT_TOOLS",
      "format": "string",
      "description": "Явный список инструментов или служб через запятую. Побеждает DIRECT_PROFILE"
    },
    {
      "name": "DIRECT_ALLOW_WRITES",
      "format": "string",
      "default": "0",
      "description": "Разрешить изменяющие методы (add/update/delete). Пока выключено, они не объявляются вовсе. Значения: 1, true, yes"
    },
    {
      "name": "DIRECT_API_VERSION",
      "format": "string",
      "choices": [
        "v501",
        "v5"
      ],
      "default": "v501",
      "description": "Версия пути API. Разные версии отдают разные наборы полей одной и той же кампании"
    },
    {
      "name": "DIRECT_SANDBOX",
      "format": "string",
      "default": "0",
      "description": "Отправлять запросы в песочницу Директа вместо боевого кабинета. Значения: 1, true, yes"
    },
    {
      "name": "DIRECT_MAX_OUTPUT_CHARS",
      "format": "number",
      "default": "60000",
      "description": "Потолок размера ответа инструмента в символах; сверх него ответ усекается с пометкой"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "yandex-direct-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yandex-direct-api-mcp@1.1.1"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YOUR_YANDEX_DIRECT_TOKEN>",
        "YANDEX_DIRECT_LOGIN": "<YOUR_YANDEX_DIRECT_LOGIN>",
        "DIRECT_PROFILE": "<YOUR_DIRECT_PROFILE>",
        "DIRECT_TOOLS": "<YOUR_DIRECT_TOOLS>",
        "DIRECT_ALLOW_WRITES": "<YOUR_DIRECT_ALLOW_WRITES>",
        "DIRECT_API_VERSION": "<YOUR_DIRECT_API_VERSION>",
        "DIRECT_SANDBOX": "<YOUR_DIRECT_SANDBOX>",
        "DIRECT_MAX_OUTPUT_CHARS": "<YOUR_DIRECT_MAX_OUTPUT_CHARS>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "yandex-direct-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yandex-direct-api-mcp@1.1.1"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YOUR_YANDEX_DIRECT_TOKEN>",
        "YANDEX_DIRECT_LOGIN": "<YOUR_YANDEX_DIRECT_LOGIN>",
        "DIRECT_PROFILE": "<YOUR_DIRECT_PROFILE>",
        "DIRECT_TOOLS": "<YOUR_DIRECT_TOOLS>",
        "DIRECT_ALLOW_WRITES": "<YOUR_DIRECT_ALLOW_WRITES>",
        "DIRECT_API_VERSION": "<YOUR_DIRECT_API_VERSION>",
        "DIRECT_SANDBOX": "<YOUR_DIRECT_SANDBOX>",
        "DIRECT_MAX_OUTPUT_CHARS": "<YOUR_DIRECT_MAX_OUTPUT_CHARS>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "yandex-direct-api-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "yandex-direct-api-mcp@1.1.1"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YOUR_YANDEX_DIRECT_TOKEN>",
        "YANDEX_DIRECT_LOGIN": "<YOUR_YANDEX_DIRECT_LOGIN>",
        "DIRECT_PROFILE": "<YOUR_DIRECT_PROFILE>",
        "DIRECT_TOOLS": "<YOUR_DIRECT_TOOLS>",
        "DIRECT_ALLOW_WRITES": "<YOUR_DIRECT_ALLOW_WRITES>",
        "DIRECT_API_VERSION": "<YOUR_DIRECT_API_VERSION>",
        "DIRECT_SANDBOX": "<YOUR_DIRECT_SANDBOX>",
        "DIRECT_MAX_OUTPUT_CHARS": "<YOUR_DIRECT_MAX_OUTPUT_CHARS>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "yandex-direct-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "yandex-direct-api-mcp@1.1.1"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YOUR_YANDEX_DIRECT_TOKEN>",
        "YANDEX_DIRECT_LOGIN": "<YOUR_YANDEX_DIRECT_LOGIN>",
        "DIRECT_PROFILE": "<YOUR_DIRECT_PROFILE>",
        "DIRECT_TOOLS": "<YOUR_DIRECT_TOOLS>",
        "DIRECT_ALLOW_WRITES": "<YOUR_DIRECT_ALLOW_WRITES>",
        "DIRECT_API_VERSION": "<YOUR_DIRECT_API_VERSION>",
        "DIRECT_SANDBOX": "<YOUR_DIRECT_SANDBOX>",
        "DIRECT_MAX_OUTPUT_CHARS": "<YOUR_DIRECT_MAX_OUTPUT_CHARS>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Yandex Direct API MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.