mcp-vk-ads is an MCP (Model Context Protocol) server used to connect AI applications to VK Ads advertising accounts. It is developed by askads and hosted on GitHub. Through it, users can query and operate VK Ads in natural language in MCP-supporting AI clients such as Claude, Cursor, and Codex.
Purpose The server is designed to let AI assistants directly access VK Ads advertising data and operational capabilities. Users can compare ad plans, view statistics, and check balance and status in a single conversation, without having to manually switch between the various pages of the ads dashboard. Typical uses include: analyzing which ad plans are consuming budget but not performing, comparing the performance of ad groups and ads, and preparing new ad plans or modifying bids.
Main capabilities The server provides 22 tools, covering the following areas:
- Creation, updating, and status changes for ad plans (ad_plan), ad groups (ad_group), and ads (banner).
- Reading statistical data, including spend, impressions, clicks, CTR, etc.
- Account balance and currency information.
- API limit queries (get_throttling).
- Region queries, used to locate target region IDs.
- Account connection management, including completing the connection in a conversation, viewing connection status, and disconnecting.
- A generic API request tool that can call other endpoints of the VK Ads API.
How to use The server requires Node.js 20 or higher and is started via npx, with no separate package installation needed, and no token is required during installation. Users need to add the server to their AI application, and the specific method varies by client:
- In Claude Desktop, add it via Settings → Plugins → MCP servers, or edit claude_desktop_config.json.
- In Cursor, edit ~/.cursor/mcp.json or the project's .cursor/mcp.json.
- In VS Code, run MCP: Open User Configuration from the command palette and edit mcp.json.
- In Codex and Claude Code, there are corresponding configuration methods as well. The startup command is npx -y mcp-vk-ads@latest, no environment variables required. When connecting an account, the user only needs to say "Connect VK Ads" in the conversation, and the server will guide the user to ads.vk.com's "Settings → API Access" to create an application and provide the client_id and client_secret. The server will automatically obtain the token and check the connected account. The token is valid for about one day and is automatically renewed via refresh_token. The user can also say "Show connection status" or "Disconnect VK Ads".
Use cases
- Analyze ad spend and performance: for example, "Show the spend, impressions, clicks, and CTR for each ad campaign over the past 7 days."
- Troubleshoot why ads are not being shown: for example, "Show the status, delivery, and review status of all ads in this group."
- Prepare ad changes: for example, "Create a text ad campaign with a daily budget of 5,000 rubles."
- Find configuration data: for example, "Show the account balance and currency," "How many API requests are left," "Find the ID for the Moscow region."
Limitations and notes
- The server has no sandbox environment; creation, updates, and status changes directly affect the real ad account.
- An object's status can be modified (active, blocked, deleted), but delivery and moderation_status are read-only and cannot be modified directly.
- After network errors or 5xx, do not blindly retry creation operations, because the operation may already have taken effect; first check the object list.
- List pagination returns at most 250 objects per page; when autoPaginate is enabled, at most 1,000 objects are returned, and _truncated marks the result as incomplete.
- A single request times out after 60 seconds, and the server retries up to three times: on 429 it retries all methods, and for reads it also retries on network errors, timeouts, and 5xx. Retry delays take Retry-After into account, up to 30 seconds.
- The server has no background monitoring and runs only when called by the AI application. If the application supports scheduled tasks, periodic queries for statistics or status can be configured.
- Anonymous telemetry data is sent by default, including a random installation ID, event or tool name, server version, Node.js version, operating system, and AI client version; it does not include tokens, account data, tool parameters, user messages, or environment variable values. It can be disabled with ASKADS_TELEMETRY=0.
- client_id and client_secret Has full access to the ad account, including spending budget. The server stores them in ~/.config/mcp-vk-ads/credentials.json with permissions 0600 (readable and writable only by the owner). No tool returns these credentials.
- VK Ads does not have a browser-based "log in and confirm" flow for third-party servers, so connection is done through the user's own application. Agency client accounts require agency_client_credentials authorization, in which case a ready-made token must be provided to VK_ADS_TOKEN.
- Environment variables are all optional and are used only for conversation-free scenarios such as CI and automated installation.
Technical details The server uses Node.js 20+ and runs via npx. The token is valid for about one day and is not automatically renewed, but the server automatically renews it via refresh_token. A user can have at most 5 active tokens; old tokens can be revoked via POST /api/v2/oauth2/token/delete.json.
For more information, refer to the technical documentation in the GitHub repository, the VK Ads API documentation, and the MCP capability directory.