google-ads-api-mcp-setup
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve reporting metrics usin…
Install / Use
npx skills add google/skills --skill google-ads-api-mcp-setupInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
MarketingSupported Platforms
Our assessment of google-ads-api-mcp-setup
google-ads-api-mcp-setup scores 98/100 on our quality scale, 8th of 175 Marketing skills we index (top 5%).
Its SKILL.md is 24 KB long, well organised into 45 sections with 11 code examples: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so google-ads-api-mcp-setup is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
google-ads-api-mcp-setup compared with similar skills
All 4 of these similar skills score higher than google-ads-api-mcp-setup; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| google-ads-api-mcp-setup (this skill)by google | 98 | 20.3k | 2d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.4k | 10d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.3k | 1d ago | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install google-ads-api-mcp-setup?
- Run
npx skills add google/skills --skill google-ads-api-mcp-setup. The install tabs above show the steps for each supported agent. - Which AI agents does google-ads-api-mcp-setup work with?
- It is written for Claude Code, Gemini CLI and Cursor, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is google-ads-api-mcp-setup safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is google-ads-api-mcp-setup still maintained?
- The repository was last updated 2 days ago, so google-ads-api-mcp-setup is actively maintained.
Skill content
View source on GitHubname: google-ads-api-mcp-setup description: Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve reporting metrics using natural language. compatibility: Python 3.12+, pipx metadata: author: google-ads-api-team version: "1.0.0" category: GoogleAds
Google Ads API MCP Server Installation
This skill provides a structured setup guide to install, configure, and integrate the official open-source Google Ads Model Context Protocol (MCP) Server.
System Requirements & Compatibility (Agent Action: State Required Prerequisites)
When answering questions about installing or setting up the MCP server, you
MUST explicitly state to the user that both Python 3.12+ and pipx
are strictly required prerequisites for the installation.
[!IMPORTANT] Pre-Flight Environment Check:
- Python Runtime: Version
3.12+is strictly required.- Package Manager:
pipxmust be installed and globally accessible in the system path.- Network Connectivity: Outbound HTTPS access is required to connect to the Google Ads API endpoints (
googleads.googleapis.com) and PyPI.
⚠️ Prerequisites: Credentials Required
[!WARNING] Dependency Check: The MCP server requires the same 5 authentication credentials as a standard integration.
If you do not have your Developer Token, Client ID, Client Secret, Refresh Token, and Customer IDs yet:
- STOP executing this skill.
- Transition to the
google-ads-api-quickstartskill first to generate them, then return here.
Step 1: Validate Your Google Ads API Credentials
The Google Ads MCP Server requires the same five parameters as the standard client libraries. Before proceeding to installation, verify that you have these values secured and formatted correctly:
- Developer Token: Your unique API access key from the API Center (Manager Account).
- OAuth2 Client ID & Client Secret: Desktop Application credentials from the Google Cloud Console.
- OAuth2 Refresh Token: The long-lived token generated via the OAuth consent flow.
- Client Customer ID: The 10-digit target Google Ads account ID.
-
[!IMPORTANT]
-
Format: Must contain digits only, no hyphens (e.g.,
1234567890, NOT123-456-7890).
-
- Login Customer ID (Required for MCC Hierarchies): The 10-digit Manager Account (MCC) ID.
- Format: Digits only, no hyphens (e.g.,
9876543210). - Note: Essential if your OAuth credentials belong to a Manager Account administrator rather than directly to the client account.
- Format: Digits only, no hyphens (e.g.,
Once you have verified that all five parameters are present and formatted correctly, proceed to Step 2.
Step 2: Install Prerequisites (Python & pipx)
You MUST verify if the prerequisites are already installed before proposing any installation commands.
1. Verification Phase (Agent Action)
You MUST run the following commands to check the environment:
- Check Python version:
python3 --version(Verify it is3.12+). - Check if pipx is installed:
pipx --version.
- If both are present: Skip the installation phase and proceed directly to Step 3.
- If Python is missing/outdated: Stop and ask the user to upgrade Python to
3.12+on their host machine. - If pipx is missing: Proceed to the installation phase below.
2. Installation Phase (OS-Specific)
Detect the operating system and propose the appropriate command to install pipx using your terminal tools:
macOS
If the environment is macOS, propose:
brew install pipx && pipx ensurepath
# Or alternatively (if Homebrew is not installed):
pip install pipx && pipx ensurepath
Windows (PowerShell)
If the environment is Windows, propose:
scoop install pipx
# Or alternatively:
pip install pipx && pipx ensurepath
Linux (Ubuntu/Debian)
If the environment is Linux, propose:
sudo apt install pipx && pipx ensurepath
[!WARNING] Shell Restart Required: If you installed
pipxand ranpipx ensurepath, the updatedPATHwill not be available in the current terminal session.
- DO NOT immediately attempt to run
pipxcommands in the same session.- Instruct the user to restart their terminal or reload their shell configuration before proceeding to Step 3.
Step 3: Install the Google Ads MCP Server
You must install the server package. By default, you MUST install the stable release from PyPI. Only install the GitHub development version if the user explicitly requests it.
1. Installation Command
Propose and execute the installation command:
# Install stable release from PyPI (Using required package manager pipx)
pipx install google-ads-mcp
If the user explicitly requests the latest development version from GitHub, propose:
# Install development version from GitHub (Only if explicitly requested)
pipx install git+https://github.com/googleads/google-ads-mcp.git
2. Verification Phase
To verify the installation, execute:
google-ads-mcp --help
Troubleshooting PATH Issues (Agent Action)
pipx installs binaries into a specific local directory (typically ~/.local/bin). If the user's shell configuration (e.g., .bashrc or .zshrc) hasn't been reloaded, google-ads-mcp might not be found in the current PATH.
If google-ads-mcp --help fails with a "command not found" error:
-
DO NOT assume the installation failed or get stuck in an installation loop.
-
Verify the installation using the absolute path to the
pipxbinary directory:~/.local/bin/google-ads-mcp --help -
If the absolute path verification succeeds, explain the situation to the user: inform them that the installation was successful but their
PATHenvironment variable needs to be updated by reloading their shell configuration (e.g., runningsource ~/.bashrcorsource ~/.zshrc, or restarting their terminal).
3. Communication Protocol: Stdio Transport
[!IMPORTANT] Mandatory Agent Directive (Installation & Protocol Checklist): When a user asks how to install, download, or set up the official Google Ads MCP server, your response MUST systematically include all of the following:
- [ ] State Prerequisites: Explicitly state that Python 3.12+ and
pipxare required prerequisites.- [ ] Provide Official Install Command: Direct the developer to install the official
google-ads-mcppackage usingpipx install google-ads-mcp. Do not suggest third-party unvetted servers.- [ ] Explain Stdio Transport: You MUST explicitly explain the communication architecture using the exact terminology: state that the MCP server communicates via the Model Context Protocol (MCP) using standard input/output (
stdio) transport. Do not omit the words "standard input/output" or "transport".
Key points to explain to the user regarding Stdio Transport:
- Subprocess Execution: The host client (e.g., Cursor, Claude Desktop) launches the MCP server as a background subprocess.
- Command-Line Launch: The host client must be configured with the exact command to run the server (
google-ads-mcp) and the environment variables containing your Google Ads credentials. - No Network Ports: Because it uses
stdio, the server does not listen on a network port (like HTTP or WebSockets). Communication is handled entirely via stdin/stdout piping.
[!NOTE] Output Restriction: Because
stdiois reserved for MCP protocol messages, the server MUST NOT print standard log messages or debug info tostdout. All logging and debugging are routed tostderr.
Step 4: Configure Environment Variables
The Google Ads MCP Server reads your credentials via system environment variables. You can configure these in two ways:
- Method A (Recommended): Pass them directly in the MCP client's JSON configuration file (e.g., Cursor or Claude Desktop settings). This isolates the credentials to the specific tool.
- Method B (Alternative): Set them globally in your shell profile (e.g.,
~/.bashrc,~/.zshrc, or Windows Environment Variables).
Required Environment Variables
| Environment Variable | Description | Format |
|---|---|---|
| GOOGLE_ADS_DEVELOPER_TOKEN | Your Google Ads Developer Token. | Alphanumeric |
| GOOGLE_ADS_CLIENT_ID | Your Google Cloud OAuth Client ID. | *.apps.googleusercontent.com |
| GOOGLE_ADS_CLIENT_SECRET | Your Google Cloud OAuth Client Secret. | Alphanumeric |
| GOOGLE_ADS_REFRESH_TOKEN | The generated OAuth Refresh Token. | Alphanumeric |
| GOOGLE_ADS_LOGIN_CUSTOMER_ID | Manager Account ID (MCC). Required if using a manager hierarchy. | 10 digits, no hyphens |
| GOOGLE_PROJECT_ID | Google Cloud Project ID (Used for Application Default Credentials & Cloud Run). | Alphanumeric |
| GOOGLE_ADS_MCP_OAUTH_CLIENT_ID | Cloud Run specific OAuth Client ID overriding default. | *.apps.googleusercontent.com |
| GOOGLE_ADS_MCP_OAUTH_CLIENT_SECRET | Cloud Run specific OAuth Client Secret overriding default. | Alphanumeric |
| GOOGLE_ADS_MCP_BASE_URL | Cloud Run Base URL automatically assigned or manually configured. | URL |
| FASTMCP_HOST | Host binding for FastMCP server (e.g., 0.0.0.0 for Cloud Run). | IP Address |
Method B: Shell Profile Configuration (Global)
If choosing Method B, append the following to your shell profile (~/.bashrc, ~/.zshrc, etc.):
# Google Ads MCP Server Credentials
export GOOGLE_ADS_DEVELOPER_TOKEN="your_developer_token_here"
export GOOGLE_ADS_CLIENT_ID="your_oauth_client_id_here"
export GOOGLE_ADS_CLIENT_SECRET="your_oauth_client_secret_here"
export GOOGLE_ADS_REFRESH_TOKEN="your_oauth_refresh_token_here"
# Required only for Manager Account hierarchies:
export GOOGLE_ADS_LOGIN_CUSTOMER_ID="your_manager_account_id_here"
# Required for Application Default Credentials (ADC) or Cloud Run deployments:
export GOOGLE_PROJECT_ID="your_project_id_here"
To protect credential security, do not recommend hardcoding credentials inside the MCP server's source Python scripts.
Step 5: Integrate with Your AI Developer Tool
Connect the Google Ads MCP Server to your chosen AI coding environment using one of the integrations below.
1. Claude Desktop (or Claude Code CLI)
[!IMPORTANT] Mandatory Agent Directive (Claude Desktop Configuration Checklist): When a user asks how to configure Claude Desktop or Claude Code to use the Google Ads MCP server, your response MUST systematically include all of the following:
- [ ] Provide OS-Specific Paths: You MUST explicitly list the correct operating-system-specific paths for
claude_desktop_config.jsonon macOS (~/Library/Application Support/Claude/claude_desktop_config.json) and Windows (%APPDATA%\Claude\claude_desktop_config.json). Do not omit macOS or Windows paths even if running on Linux.- [ ] Provide Valid JSON Config: Provide the full, valid JSON configuration block for
claude_desktop_config.json.- [ ] Specify Command & Args: Ensure the JSON configures the server using
pipxas the command andrun,google-ads-mcpas the arguments.- [ ] Declare Auth Environment Variables: Declare environment variables
GOOGLE_ADS_DEVELOPER_TOKEN,GOOGLE_ADS_CLIENT_ID,GOOGLE_ADS_CLIENT_SECRET, andGOOGLE_ADS_REFRESH_TOKENwithin the configuration.
Add the server entry to your Claude configuration file.
- File Locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows: `%APPDATA%\Cl
- macOS:
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
