Skip to content
VS Code

Avito Ads MCP for VS Code

io.github.a1-x-tech/mcp-avito-ads

MCP server for the Avito Ads API: campaigns, ad groups, creatives, statistics and balances.

client:VS Code transport:stdio runtime:npm

Install Avito Ads MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "avito-ads-client-id",
      "description": "AVITO_ADS_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-client-secret",
      "description": "AVITO_ADS_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-account-id",
      "description": "AVITO_ADS_ACCOUNT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-environment",
      "description": "AVITO_ADS_ENVIRONMENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-api-base",
      "description": "AVITO_ADS_API_BASE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-timeout-ms",
      "description": "AVITO_ADS_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-max-retries",
      "description": "AVITO_ADS_MAX_RETRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "avito-ads-token-leeway-seconds",
      "description": "AVITO_ADS_TOKEN_LEEWAY_SECONDS",
      "password": true
    }
  ],
  "servers": {
    "mcp-avito-ads": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-avito-ads"
      ],
      "env": {
        "AVITO_ADS_CLIENT_ID": "${input:avito-ads-client-id}",
        "AVITO_ADS_CLIENT_SECRET": "${input:avito-ads-client-secret}",
        "AVITO_ADS_ACCOUNT_ID": "${input:avito-ads-account-id}",
        "AVITO_ADS_ENVIRONMENT": "${input:avito-ads-environment}",
        "AVITO_ADS_API_BASE": "${input:avito-ads-api-base}",
        "AVITO_ADS_TIMEOUT_MS": "${input:avito-ads-timeout-ms}",
        "AVITO_ADS_MAX_RETRIES": "${input:avito-ads-max-retries}",
        "AVITO_ADS_TOKEN_LEEWAY_SECONDS": "${input:avito-ads-token-leeway-seconds}"
      }
    }
  }
}

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

Avito Ads MCP in other clients