Yandex Direct MCP

v2.3.0
io.github.stufently/yandex-direct-mcp Checked 15 hours ago Published 22 days ago

MCP server for Yandex Direct API v5 — campaigns, ads, keywords, reports

Values you need

VariableWhat it is
YANDEX_DIRECT_TOKENrequired secret OAuth token for Yandex Direct API v5
YANDEX_DIRECT_CLIENT_LOGINoptional Client login, only for agency accounts
YANDEX_DIRECT_SANDBOXoptional Set to true to use the Direct sandbox

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add yandex-direct-mcp -e 'YANDEX_DIRECT_TOKEN=<YANDEX_DIRECT_TOKEN>' -- npx -y @stufently/yandex-direct-mcp@2.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "yandex-direct-mcp": {
      "args": [
        "-y",
        "@stufently/yandex-direct-mcp@2.3.0"
      ],
      "command": "npx",
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "yandex-direct-mcp": {
      "args": [
        "-y",
        "@stufently/yandex-direct-mcp@2.3.0"
      ],
      "command": "npx",
      "env": {
        "YANDEX_DIRECT_TOKEN": "<YANDEX_DIRECT_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "YANDEX_DIRECT_TOKEN",
      "id": "yandex-direct-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "yandex-direct-mcp": {
      "args": [
        "-y",
        "@stufently/yandex-direct-mcp@2.3.0"
      ],
      "command": "npx",
      "env": {
        "YANDEX_DIRECT_TOKEN": "${input:yandex-direct-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.yandex-direct-mcp]
command = "npx"
args = ["-y", "@stufently/yandex-direct-mcp@2.3.0"]
env = { "YANDEX_DIRECT_TOKEN" = "<YANDEX_DIRECT_TOKEN>" }

For AI agents

  1. Ask the user for: YANDEX_DIRECT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_campaigns, add_campaigns, update_campaigns, delete_campaigns, archive_campaigns, unarchive_campaigns, suspend_campaigns, resume_campaigns, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json