google-ads-mcp
A typed MCP server that wraps the Google Ads API v20, enabling AI agents to manage campaigns, budgets, keywords, conversions, and run GAQL search via structured MCP tools.
README
<div align="center">
<a href="https://openpromo.app"> <img src="https://openpromo.app/logo.svg" width="80" alt="OpenPromo" /> </a>
google-ads-mcp
A typed MCP server for letting AI agents operate Google Ads.
Built by Promobase for OpenPromo, the AI-native workspace for creating, publishing, and managing ads.
</div>
What
google-ads-mcp wraps the official Google Ads Python SDK in a Model Context Protocol server. It exposes Google Ads API v20 services as typed MCP tools, so LLMs and agent runtimes can safely inspect accounts, create campaigns, manage budgets, upload conversions, work with assets, and run GAQL search.
This repo is the Google Ads execution layer behind OpenPromo's agent workflows. For application-facing, multi-platform ad publishing and inbox automation, use the companion SDK:
@promobase/ad-platforms - one TypeScript SDK for Meta, TikTok, and soon Google Ads, with AI SDK tools and production clients for ad platform automation.
Why
Google Ads has a large, typed API surface, but it is hard for agents to use directly. This server keeps the reliability of the official Python SDK while giving agents a structured tool interface:
- Official SDK foundation - built on
google-ads, including its auth, retries, paging, and protobuf types. - Typed service wrappers - implementations use Google Ads API v20 generated service, resource, enum, and operation types.
- Agent-ready MCP tools - FastMCP servers grouped by workflow: core, assets, targeting, bidding, planning, reporting, conversions, account management, and more.
- GAQL access - search and metadata tools for reporting, discovery, and account inspection.
- Production-oriented scope - designed for OpenPromo's ads loop: generate creative, build campaigns, publish, measure, and iterate.
Coverage
Current tracker status:
| Area | Status |
|---|---|
| Google Ads API version | v20 |
| Implemented services | 90 / 103 |
| Coverage model | 1:1 service mapping where implemented |
| Type policy | Generated Google Ads protobuf types |
| Feature parity | docs/FEATURE_PARITY.md |
| Detailed audit | TRACKER.md |
Core campaign, ad group, ad, budget, keyword, conversion, asset, audience, recommendation, account, billing, and reporting workflows are implemented. The scannable parity table lives in docs/FEATURE_PARITY.md; detailed implementation notes live in TRACKER.md.
Install
git clone https://github.com/promobase/google-ads-mcp.git
cd google-ads-mcp
uv sync
Create a .env file or export the required Google Ads credentials:
GOOGLE_ADS_DEVELOPER_TOKEN="your_developer_token"
GOOGLE_ADS_CLIENT_ID="your_client_id"
GOOGLE_ADS_CLIENT_SECRET="your_client_secret"
GOOGLE_ADS_REFRESH_TOKEN="your_refresh_token"
GOOGLE_ADS_LOGIN_CUSTOMER_ID="optional_manager_customer_id"
See .env.example for the full credential template.
Run
Run the default core tool group:
uv run main.py
Run every registered service group:
uv run main.py --groups all
Run a focused subset:
uv run main.py --groups core,assets,targeting,conversion
Available groups:
| Group | Includes |
|---|---|
core |
Customers, campaigns, budgets, ad groups, keywords, ads, conversions, GAQL |
assets |
Assets, asset groups, asset sets, campaign/ad group/customer assets |
targeting |
Criteria, geo targets, audiences, custom interests, user lists |
bidding |
Strategies, bid modifiers, data exclusions, seasonality adjustments |
planning |
Keyword plans, reach planning, brand suggestions |
reporting |
Search, fields, recommendations, invoices, audience insights |
conversion |
Uploads, adjustments, value rules, goals, user data, remarketing |
organization |
Labels, shared sets, shared criteria |
customizers |
Customizer attributes, campaign/ad group/customer customizers, ad parameters |
account |
Access, manager links, billing, payments, identity, product/data links |
other |
Smart campaigns, batch jobs, user data |
MCP Client
Example stdio configuration:
{
"mcpServers": {
"google-ads": {
"command": "uv",
"args": ["run", "main.py", "--groups", "all"],
"cwd": "/path/to/google-ads-mcp",
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "...",
"GOOGLE_ADS_CLIENT_ID": "...",
"GOOGLE_ADS_CLIENT_SECRET": "...",
"GOOGLE_ADS_REFRESH_TOKEN": "..."
}
}
}
}
Use narrower groups for production agents when you want to reduce tool count and keep routing focused.
Development
# Format
uv run ruff format .
# Type check
uv run pyright
# Test
uv run pytest
When adding a service:
- Check the Google Ads API v20 generated service types.
- Implement the service wrapper with generated protobuf request, operation, resource, and enum types.
- Register lightweight MCP tools for the service.
- Add focused tests.
- Update
TRACKER.md. - Run
uv run ruff format .anduv run pyright.
Related
| Project | Description |
|---|---|
| OpenPromo | AI-native workspace for creating, publishing, and managing ads |
@promobase/ad-platforms |
TypeScript ad platform SDK with AI SDK tools for Meta, TikTok, and Google Ads work |
promobase/ad-platform-sdks |
Source repo for Promobase's multi-platform ad SDKs |
License
MIT © Promobase
Disclaimer
This is an unofficial Google Ads API integration. It is not affiliated with, endorsed by, or supported by Google.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.