Google Ads MCP Server
Connects Claude Desktop to your Google Ads account, allowing you to analyze and manage campaigns, ad groups, and keywords using natural language.
README
🚀 Google Ads MCP Server for Claude Desktop
This project provides a Model Context Protocol (MCP) server that connects Claude Desktop directly to your Google Ads Account, allowing you to analyze and manage your advertising campaigns using natural language.
🛠️ Features
Exposes seven powerful tools directly to Claude Desktop:
- Campaign Management:
get_campaigns: Lists all active/paused campaigns, budget allocation, and performance metrics (Impressions, Clicks, Conversions, Spend).update_campaign_status: Toggles campaign status (ENABLEDorPAUSED) by Campaign ID.set_campaign_budget: Modifies the daily budget of any campaign (in USD).
- Ad Group Management:
get_ad_groups: Lists all ad groups with their names, IDs, status, and target campaign.
- Keyword Management & PPC Bidding:
get_keywords: Pulls keywords with performance metrics (clicks, impressions, conversions, current bids). Optionally filter by Ad Group ID.- **
add_keyword**: Adds a new keyword (Broad/Phrase/Exact match) under a specific ad group with a manual CPC bid limit. update_keyword_bid: Modifies the Max CPC bid limit (in USD) for a specific keyword in an ad group.
📂 Project Structure
server.py: The MCP server. Runs in Mock (Simulation) Mode if no credentials are found, allowing you to test it instantly without API access.auth_helper.py: Interactive script to authenticate and generate OAuthrefresh_token.requirements.txt: Python package dependencies.
⚡ Quick Start & Setup (Windows Auto Setup)
If you are on Windows, we have provided an automated setup script to configure everything for you:
- Double-click the
setup.batfile in this project folder. - The script will automatically install dependencies, guide you through the OAuth login browser flow, and open the Claude Desktop config folder.
- Paste the configuration JSON block (shown below) into your
claude_desktop_config.jsonand restart Claude Desktop.
🛠️ Manual Configuration (Alternative)
If you prefer to configure the environment manually:
1. Create a Python Virtual Environment
Open your terminal (PowerShell or Bash) and run:
# Navigate to this folder
cd /path/to/this/folder
# Create virtual environment
python -m venv .venv
# Activate it (Windows PowerShell)
.venv\Scripts\Activate.ps1
# Activate it (macOS/Linux)
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
2. Configure Claude Desktop
Open your Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add this configuration (make sure to replace the paths with absolute paths to your Python executable and project folder):
{
"mcpServers": {
"google-ads-manager": {
"command": "C:\\path\\to\\project\\.venv\\Scripts\\python.exe",
"args": [
"-u",
"C:\\path\\to\\project\\server.py"
],
"env": {
"MOCK_MODE": "true"
}
}
}
}
⚠️ Windows Warning: Use double backslashes (
\\) in paths. Make sure the executable points directly to your.venvscript to avoid environment mismatches.
3. Restart Claude Desktop
Restart your Claude Desktop application. You should see a small hammer icon 🔨 in the input box, showing that the Google Ads Manager server tools are loaded!
Try typing:
- "Show me my google ads campaigns"
- "Show me keywords in ad group 2001"
- "Add exact keyword 'buy shoes' to ad group 2001 with cpc bid of 1.50"
- "Pause campaign 1002"
- "Increase daily budget of campaign 1001 to $65"
💼 Going Live (Real Google Ads Integration)
To connect the server to your real live Google Ads account, follow these steps:
1. Place your GCP client secrets file
- Go to your Google Cloud Console -> Credentials.
- Download your OAuth 2.0 Client credentials JSON file (Desktop Application type).
- Put this
.jsonfile in this project folder.
2. Run the Auth Helper script
With your virtual environment active, run:
python auth_helper.py
- This will open your browser and ask you to log in to your Google Account.
- After clicking Allow, return to your terminal and enter your Developer Token and Client Customer ID.
- This script will automatically generate a secure
google-ads.yamlconfiguration file.
3. Update Claude Config for Live Mode
Edit your claude_desktop_config.json and change "MOCK_MODE": "true" to "false" (or delete the "env" section).
Restart Claude Desktop, and you are live!
⚠️ Troubleshooting (常见问题排查)
Q1: Browser shows "This app isn't verified" (此应用未经 Google 验证)
- Reason: Since this is a custom local tool, it has not gone through Google's public verification process. This is completely normal and safe.
- Solution: Click "Advanced" (高级) in the bottom left, then click "Go to your-project-name (unsafe)" (继续前往) to complete the authorization.
Q2: Error 403: access_denied / App has not completed verification
- Reason: Your GCP project is in "Testing" mode, and the Google account you are using to log in is different from the account that owns the GCP project.
- Solution:
- Make sure you select the same Google account that created the GCP credentials during the OAuth flow.
- Alternatively, go to your GCP Console -> Google Auth Platform -> Audience (测试受众) -> Click "+ ADD USERS" under Test Users, and add your login email address.
Built by Bohea Still — independent developer taking on automation, AI-pipeline and integration projects. Case study →
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
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.