SuperAPIAI Directory

mcp-avito-ads

github.com · AI developer platforms

mcp-avito-ads is an MCP server for the Avito advertising platform (Avito Реклама) ads API, used to connect AI applications to Avito advertising accounts. It provides 25 tools covering operations on ad campaigns, ad groups, creatives, statistics, balance, sub-accounts, users, and ORD contracts, and supports querying ad campaigns and statistics in natural language, adjusting ad group budgets and bids, and managing user permissions and ORD contracts. This server applies only to display and performance ad campaigns in Avito advertising accounts and does not involve the Avito seller API's products, messages, orders, or product promotion features. Use requires Node.js 20+, a Client Key, a Client Secret, and an advertising account ID, and it can be connected via npx over stdio to MCP-capable AI applications such as Claude Desktop, Cursor, and VS Code.

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

About this tool

Purpose

mcp-avito-ads is an MCP (Model Context Protocol) server used to connect AI applications to advertising accounts on the Avito advertising platform (Avito Реклама). Users can use natural language to check ad campaigns and statistics, manage ad group budgets and bids, handle agency balances, access permissions, and ORD contracts.

It should be clear that this is not the Avito seller API and does not handle products, on-site messages, orders, or seller product promotion; it is intended only for display (медийные) and performance ad campaigns in Avito advertising accounts.

Main capabilities

The server provides a total of 25 tools, covering ad campaigns, ad groups, creatives, statistics, balance, sub-accounts, users, and ORD documents.

Operations that can be performed include:

  • Viewing ad campaigns, ad groups, creatives, statuses, and statistics for a specified time period;
  • Comparing spend, CTR, CPM, CPC, or VTR by ad group and creative;
  • Checking the balance and the agency's sub-accounts;
  • Preparing to modify the budget or bid of a single ad group;
  • Creating advertisers and ORD contracts (first displaying the qualification information to be submitted);
  • Adding users, changing their roles, or revoking access permissions after confirmation.

Modification scope is limited: the API only allows changing ad group budgets and bids; ad campaigns, ad groups, and creatives cannot be created, edited, paused, archived, or deleted through this API, and creatives and targeting are also not writable.

Irreversible operations are marked: transfers (funds or bonuses), deleting users, and API technical requests are marked as destructive.

Usage

Prerequisites: Node.js 20+, a Client Key, a Client Secret, and an Avito advertising account ID; to assign access permissions, the account administrator role is required.

Steps to obtain access permissions:

  1. Log in to the Avito advertising backend with the administrator role;
  2. Create an API application and copy the Client Key and Client Secret;
  3. Copy the advertising account ID;
  4. Pass them as AVITO_ADS_CLIENT_ID, AVITO_ADS_CLIENT_SECRET, and AVITO_ADS_ACCOUNT_ID respectively.

The server uses OAuth2 client_credentials to obtain a Bearer token. The Client Secret should be kept like a password. The account ID is fixed by the configuration, and the tool will not accidentally switch to another account.

Connecting an AI application (using Claude Desktop as an example): In Settings → MCP servers, click Add server, select STDIO, enter npx -y mcp-avito-ads@latest as the command, and set the three environment variables above, then save and restart.

The official Claude Desktop path is Settings → Extensions. For desktop extensions, you can open Advanced settings → Extension Developer → Install Extension…, select the .mcpb file and follow the prompts. This repository currently publishes an npm package for stdio and does not yet include a .mcpb, so in Claude Desktop versions that still support local configuration, you can use the following JSON stdio configuration as a fallback:

{"mcpServers":{"avito-ads":{"type":"stdio","command":"npx","args":["-y","mcp-avito-ads@latest"],"env":{"AVITO_ADS_CLIENT_ID":"your_client_key","AVITO_ADS_CLIENT_SECRET":"your_client_secret","AVITO_ADS_ACCOUNT_ID":"your_account_id"}}}}

On macOS, save it to ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, save it to %APPDATA%\Claude\claude_desktop_config.json.

Cursor: Add the above JSON to ~/.cursor/mcp.json on macOS/Linux or %USERPROFILE%.cursor\mcp.json on Windows.

VS Code: Run MCP: Open User Configuration and add the configuration, then use MCP: List Servers to check the server.

Use cases

  • Query campaigns, ad groups, creatives, statuses, and period statistics in natural language;
  • Compare spend, CTR, CPM, CPC, and VTR across different ad groups and creatives;
  • Check balances and agency sub-accounts;
  • Prepare to modify the budget or bid of a single ad group, and execute after confirmation;
  • Create advertisers and ORD contracts, showing the qualification information to be submitted first;
  • Add users, change roles, or revoke access after confirmation.

Limitations and notes

  • Only display and performance campaigns of Avito advertising accounts are supported; it does not involve the seller API's items, messages, orders, or item promotion;
  • Only ad group budgets and bids can be modified; campaigns, ad groups, and creatives cannot be created, edited, paused, archived, or deleted, and creatives and targeting are not writable;
  • Weekly API point budget: each call consumes points, and points are replenished at 00:00 UTC on Monday; the server returns apiPointBalance in results; one long report of up to 100 days is usually more economical than multiple short reports;
  • Temporary errors: on 429, the error returns Retry-After and the remaining points; write operations are not retried after network or 5xx errors, to avoid duplicate transfers;
  • No continuous monitoring: the server runs only when called; if the AI application supports scheduled tasks, statistics and remaining points can be collected periodically;
  • Sandbox: AVITO_ADS_ENVIRONMENT=sandbox can be set for write drills, but the sandbox is not a complete copy of the production environment; for example, balances are unavailable in the sandbox;
  • Anonymous telemetry: does not include secrets, account data, parameters, or prompts; when a tool is called, its result is sent, and on error an error text snippet is sent (emails, addresses, tokens, numbers with 4 or more digits, and text in quotes are replaced with "#"); if the error text contains values from the request, they may also enter the snippet; this can be disabled with ASKADS_TELEMETRY=0.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools