Skip to content
VS Code

Yandex Direct MCP for VS Code

io.github.askads/mcp-yandex-direct

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

client:VS Code transport:stdio runtime:npm

Install Yandex Direct MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "yandex-direct-token",
      "description": "YANDEX_DIRECT_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "yandex-direct-login",
      "description": "YANDEX_DIRECT_LOGIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "yandex-direct-sandbox",
      "description": "YANDEX_DIRECT_SANDBOX",
      "password": true
    },
    {
      "type": "promptString",
      "id": "yandex-direct-lang",
      "description": "YANDEX_DIRECT_LANG",
      "password": true
    }
  ],
  "servers": {
    "mcp-yandex-direct": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-yandex-direct"
      ],
      "env": {
        "YANDEX_DIRECT_TOKEN": "${input:yandex-direct-token}",
        "YANDEX_DIRECT_LOGIN": "${input:yandex-direct-login}",
        "YANDEX_DIRECT_SANDBOX": "${input:yandex-direct-sandbox}",
        "YANDEX_DIRECT_LANG": "${input:yandex-direct-lang}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Yandex Direct MCP in other clients