Google Ads MCP Unofficial
This server provides an unofficial Model Context Protocol (MCP) interface to Google Ads, enabling AI agents to read, analyze, and (with gating) modify Google Ads accounts via the Google Ads API.
Meta/Diagnostics: Check connection status, capabilities, agent manifest, data inventory, privacy audit, and cache status/clear.
Authentication: Generate OAuth URLs, exchange authorization codes for tokens (stored locally), and revoke access.
Shared Profile Management: Read/update a shared Delx profile and run onboarding; updates require explicit intent.
Read-Only Data Retrieval: List accounts, campaigns, ad groups, keywords; get single campaign; fetch performance metrics for account, campaign, or keywords over date ranges.
Workflow Helpers: Generate daily performance reports with CPC alerts; identify waste keywords (high cost, zero conversions) and quick-win keywords (low CPC, high CTR, conversions).
Gated Mutations (require
GOOGLE_ADS_ALLOW_MUTATIONS=trueandexplicit_user_intent=true): Pause/resume keywords and campaigns, set keyword bids, and adjust campaign budgets.Privacy & Caching: Choose summary, structured, or raw response modes with redaction of sensitive data; optional SQLite caching of API responses with inspect/clear tools.
Provides tools for reading, analyzing, and (gated) acting on a Google Ads account, including managing keywords, campaigns, budgets, and performance data.
google-ads-mcp-unofficial
Unofficial Model Context Protocol server that lets AI agents read, analyze, and (gated) act on a Google Ads account — pause keywords, set bids, adjust budgets — without leaving your stack.
Unofficial. Not affiliated with Google. This is a local-first MCP server that speaks the Google Ads REST API directly. It does NOT include automated financial-account changes beyond what the Google Ads API allows. Always review proposed changes before enabling GOOGLE_ADS_ALLOW_MUTATIONS.
HTTP (v2 stateless)
Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:
npx -y google-ads-mcp-unofficial --http
# GET http://127.0.0.1:3000/health
# POST http://127.0.0.1:3000/mcp (sessionless)Env: GOOGLE_ADS_MCP_HOST, GOOGLE_ADS_MCP_PORT, GOOGLE_ADS_MCP_TRANSPORT=http.
Related MCP server: google-ads-manager-mcp
Quick start (30 seconds)
npx -y google-ads-mcp-unofficial setupThe setup wizard collects your developer token + OAuth client, writes ~/.google-ads-mcp/config.json (chmod 600), then walks you through the OAuth dance via a local callback at http://127.0.0.1:3000/callback.
Verify:
npx -y google-ads-mcp-unofficial doctorThen add it to your agent (Claude Desktop, Cursor, Hermes, OpenClaw, Codex — see examples below).
What it does
22 tools across 6 categories.
Category | Count | Examples |
Meta / diagnostic | 5 |
|
Shared Delx profile | 3 |
|
Auth | 3 |
|
Reads (always safe) | 8 |
|
Workflow | 2 |
|
Mutations (gated) | 6 |
|
Full tool reference: see AGENTS.md.
Setup wizard
npx -y google-ads-mcp-unofficial setup [--allow-mutations] [--client hermes|claude|cursor|...]What it does:
Prompts for: developer token, OAuth client id/secret, optional login_customer_id (MCC), redirect URI, privacy mode.
Writes
~/.google-ads-mcp/config.jsonwithchmod 600.Writes an MCP client config (e.g. merges into
claude_desktop_config.jsonon macOS; writes a Hermes block and skill file for--client hermes).Runs the OAuth dance (unless
--no-auth) by opening Google's consent screen and listening on127.0.0.1:3000.
Mutations are off by default.
--allow-mutationsenables write tools. ASK THE USER before turning this on — it lets agents change campaigns, bids, budgets, and pause/resume keywords.
Auth model
This MCP requires two credentials:
Google Ads Developer Token — from your MCC (Manager) account at https://ads.google.com/aw/apicenter. New tokens start in "Test account access" mode and need approval for production traffic.
Google OAuth 2.0 Client — a "Desktop" or "Web" client created in Google Cloud Console. The single OAuth scope used is
https://www.googleapis.com/auth/adwords.
⚠️ Refresh token gotcha: Google only returns a
refresh_tokenon first consent or after you revoke the prior grant at https://myaccount.google.com/permissions. Ourauthflow usesprompt=consentto maximize the chance Google returns one — but if your code-exchange response is missingrefresh_token, the tool will tell you to revoke and retry.
Variable | Purpose | Stored where | Secret? |
| Approved developer token |
| yes |
| OAuth client id | local or env | no |
| OAuth client secret | local or env | yes |
| MCC id (no dashes) | local or env | no |
| OAuth callback | local or env (default | no |
|
| local or env (default | no |
| Enable write tools | local or env (default | no |
| Override token storage | local or env (default | no |
| Enable SQLite cache | local or env (default off) | no |
| Override cache path | local or env | no |
| Disable retry middleware | env (default off) | no |
Privacy modes
Mode | What you get | Customer id |
| id + name + status fields only | partial-redacted ( |
| flat normalized rows with metrics | partial-redacted |
| full upstream Google Ads REST payload | full |
Pass privacy_mode per call to override the default per response.
Redaction matrix:
Field | summary | structured | raw |
developer_token | n/a | n/a | n/a (never returned) |
access_token, refresh_token, client_secret | [REDACTED] in all errors | [REDACTED] | [REDACTED] |
email addresses in error messages | [REDACTED] | [REDACTED] | [REDACTED] |
customer_id |
|
| full |
metrics (clicks, cost, etc.) | dropped | included | included |
⚠️ Mutation gating — read this
Default: mutations are DISABLED. Six tools are gated:
google_ads_pause_keyword/google_ads_resume_keywordgoogle_ads_set_keyword_bid_microsgoogle_ads_set_campaign_budget_microsgoogle_ads_pause_campaign/google_ads_resume_campaign
If an agent calls any of them without GOOGLE_ADS_ALLOW_MUTATIONS enabled, it gets:
Error: Write tools are disabled. To enable: re-run `google-ads-mcp-server setup --allow-mutations`
or enable GOOGLE_ADS_ALLOW_MUTATIONS. ASK THE USER BEFORE TURNING THIS ON — it lets agents
change campaigns, bids, budgets, and pause/resume keywords.Even with the env enabled, every mutation requires explicit_user_intent: true in the per-call arguments. And every mutation is logged to stderr with the resource name:
[google-ads-mcp] MUTATION pause_keyword {"resource_name":"customers/1234567890/adGroupCriteria/999~111222333"}Read SECURITY.md for the threat model.
Agent client examples
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"google-ads": {
"command": "npx",
"args": ["-y", "google-ads-mcp-unofficial"]
}
}
}Then restart Claude Desktop.
Cursor / Windsurf
~/.cursor/mcp.json (or your IDE equivalent):
{
"mcpServers": {
"google-ads": {
"command": "npx",
"args": ["-y", "google-ads-mcp-unofficial@0.1.0"]
}
}
}Hermes
# ~/.hermes/config.yaml
mcp_servers:
google-ads:
command: npx
args:
- -y
- google-ads-mcp-unofficial@0.1.0
timeout: 120
connect_timeout: 60
sampling:
enabled: falseThen /reload-mcp (do NOT restart the gateway for normal data access).
OpenClaw
~/.openclaw/mcp.servers.json:
{
"google-ads": {
"command": "npx",
"args": ["-y", "google-ads-mcp-unofficial@0.1.0"]
}
}Codex / TOML clients
See examples/codex.toml for the equivalent TOML block.
Workflow examples
1. Daily performance pulse
// Agent asks: "How did my Google Ads do yesterday?"
{
"name": "google_ads_daily_report",
"arguments": {
"customer_id": "1234567890",
"cpc_alert_threshold": 0.15
}
}Returns markdown with yesterday + 7d + 30d aggregates. If yesterday's CPC exceeds 0.15, the output gets an ALERT banner.
2. Identify waste (read-only)
{
"name": "google_ads_find_waste",
"arguments": {
"customer_id": "1234567890",
"date_range": "LAST_30_DAYS",
"min_clicks": 5,
"min_cost_micros": 200000,
"zero_conversions_only": true
}
}Returns a ranked list of keywords matching "spent ≥ $0.20 with ≥5 clicks and 0 conversions" — but never pauses them.
3. Pause a single keyword (mutation, gated)
After the user confirms:
{
"name": "google_ads_pause_keyword",
"arguments": {
"customer_id": "1234567890",
"ad_group_id": "999",
"criterion_id": "111222333",
"explicit_user_intent": true
}
}Troubleshooting
Symptom | Action |
| Run |
| Revoke at https://myaccount.google.com/permissions then re-run |
| Confirm |
| Expected. Ask the user before enabling |
Hermes tools missing after config edit |
|
Token file insecure perms warning |
|
Support
GitHub Issues: https://github.com/davidmosiah/google-ads-mcp-unofficial/issues
Email: support@delx.ai
X: @delx369
Disclaimer
Unofficial integration. Not affiliated with Google. This MCP does not include automated financial-account changes beyond what the Google Ads REST API allows. Always review proposed changes before enabling GOOGLE_ADS_ALLOW_MUTATIONS. The author is not responsible for budget overruns, paused campaigns, or any other consequences of automated changes to your Google Ads account.
MIT-licensed.
Skill or MCP
Same package, two doors. MCP registers tools on stdio/HTTP. The skill can drive the same tools through the CLI when the client has no MCP:
npx -y google-ads-mcp-unofficial call google_ads_connection_status --json '{}'Copy skill/SKILL.md into your agent skills dir.
Available Tools
30 toolsgoogle_ads_agent_manifestGoogle Ads Agent ManifestARead-onlyIdempotent
Machine-readable install, runtime, and client guidance for AI agents operating the Google Ads MCP. Does not read Google Ads or expose secrets.
Inputs: client, response_format. Returns: client, project, mcp_name, unofficial
google_ads_cache_statusGoogle Ads Cache StatusARead-onlyIdempotent
Return the SQLite GAQL-response cache status: enabled flag, on-disk path, entry count, oldest entry age, and default TTL. Read-only — never calls Google Ads and does not require credentials.
Inputs: response_format. Returns: cache_path, cache_enabled, entries_count, newest_age_ms, +2 more
google_ads_capabilitiesGoogle Ads MCP CapabilitiesARead-onlyIdempotent
Explain supported Google Ads data, mutation gating, privacy modes, and recommended agent workflow. Does not read Google Ads or expose secrets.
Inputs: response_format. Returns: project, mcp_name, unofficial
google_ads_clear_cacheGoogle Ads Clear CacheAIdempotent
Delete all entries from the local SQLite GAQL-response cache. Does NOT touch Google Ads — only affects local memoization. Not gated by GOOGLE_ADS_ALLOW_MUTATIONS because nothing in your ad account changes. Does not require credentials.
Inputs: response_format. Returns: cache_path, cache_enabled, cleared_entries
google_ads_connection_statusGoogle Ads Connection StatusARead-onlyIdempotent
Check whether local Google Ads env vars, token file, Node version, privacy mode, mutation gate, and retry settings are ready. Does not call Google Ads or expose secrets.
Inputs: client, response_format. Returns: ok, ready_for_google_ads_api
google_ads_daily_reportDaily Performance ReportARead-onlyIdempotent
Synthetic daily performance snapshot. Pulls YESTERDAY + LAST_7_DAYS + LAST_30_DAYS aggregates for a customer, optionally alerts when CPC exceeds cpc_alert_threshold. Pure-read workflow tool — never mutates.
Inputs: customer_id (required), privacy_mode, response_format, cpc_alert_threshold. Returns: ok, error, privacy_mode
google_ads_data_inventoryGoogle Ads Data InventoryARead-onlyIdempotent
List supported Google Ads data domains, scopes, privacy boundary, and recommended first calls. Does not call Google Ads APIs or expose user data.
Inputs: response_format. Returns: kind, source, mcp_name
google_ads_exchange_codeExchange Google OAuth CodeA
Exchange a Google OAuth authorization code for local tokens. Tokens stored at ~/.google-ads-mcp/tokens.json with 0600 perms; never returned in the response.
Inputs: code (required), response_format. Returns: ok, note, scope, expires_at, +2 more
google_ads_find_wasteFind Waste Keywords (read-only)ARead-onlyIdempotent
Identify keywords matching the 'high cost + zero conversions' waste pattern (inspiration from script #1). Returns a ranked list of candidates — NEVER pauses anything. Pair with google_ads_pause_keyword (gated) after user confirmation.
Inputs: customer_id (required), date_range, min_clicks, campaign_id, +4 more. Returns: ok, error, privacy_mode
google_ads_get_account_performanceGet Account PerformanceARead-onlyIdempotent
Aggregate performance metrics (impressions, clicks, cost_micros, ctr, average_cpc, conversions) for the customer over a date range.
Inputs: customer_id (required), date_range, privacy_mode, response_format. Returns: ok, error, privacy_mode
google_ads_get_auth_urlGet Google OAuth URLARead-onlyIdempotent
Generate a Google OAuth authorization URL for the Google Ads API. Does not read or modify Google Ads data. Use this first when no local token exists.
Inputs: state, scopes, response_format. Returns: scopes, auth_url, next_step, redirect_uri
google_ads_get_campaignGet Google Ads CampaignARead-onlyIdempotent
Get a single campaign with budget, bidding strategy, and status. Returns the linked campaign_budget id (use it with google_ads_set_campaign_budget_micros).
Inputs: campaign_id (required), customer_id (required), privacy_mode, response_format. Returns: ok, error, privacy_mode
google_ads_get_campaign_performanceGet Campaign PerformanceARead-onlyIdempotent
Per-campaign performance metrics over a date range. Filter to a single campaign with campaign_id.
Inputs: customer_id (required), date_range, campaign_id, privacy_mode, +1 more. Returns: ok, error, privacy_mode
google_ads_get_keyword_performanceGet Keyword PerformanceARead-onlyIdempotent
Per-keyword performance metrics over a date range. Returns clicks, cost_micros, ctr, average_cpc, conversions, conversion_rate. Filter with campaign_id, ad_group_id, or min_clicks.
Inputs: customer_id (required), date_range, min_clicks, ad_group_id, +3 more. Returns: ok, error, privacy_mode
google_ads_list_accountsList Accessible Customer AccountsARead-onlyIdempotent
List all customer accounts the authenticated user can access. For a manager (MCC) account, this includes every child customer.
Inputs: response_format. Returns: ok, count, error, records, +3 more
google_ads_list_ad_groupsList Google Ads Ad GroupsARead-onlyIdempotent
List ad groups under a campaign (or all campaigns) in a customer.
Inputs: customer_id (required), status, page_size, campaign_id, +2 more. Returns: ok, count, error, records, +3 more
google_ads_list_campaignsList Google Ads CampaignsARead-onlyIdempotent
List campaigns under a Google Ads customer. Returns id, name, status, advertising_channel_type, bidding_strategy_type, and campaign_budget linkage.
Inputs: customer_id (required), status, page_size, privacy_mode, +1 more. Returns: ok, count, error, records, +3 more
google_ads_list_keywordsList Google Ads KeywordsBRead-onlyIdempotent
List keyword criteria under a campaign or ad group. Returns criterion_id, keyword text, match type, status, and cpc_bid_micros.
Inputs: customer_id (required), status, page_size, ad_group_id, +3 more. Returns: ok, count, error, records, +3 more
google_ads_onboardingOnboarding (shared Delx profile)ARead-onlyIdempotent
Return the 11-question Delx onboarding flow plus the current profile state and missing critical fields. Same profile reused across all Delx MCPs.
Inputs: locale, response_format.
google_ads_pause_campaignPause Campaign (gated mutation)BDestructiveIdempotent
Pause an entire campaign by id. GATED.
Inputs: campaign_id (required), customer_id (required), explicit_user_intent (required), response_format. Returns: ok, note, error, applied, +2 more
google_ads_pause_keywordPause Keyword (gated mutation)ADestructiveIdempotent
Pause a single keyword by criterion_id. GATED: requires GOOGLE_ADS_ALLOW_MUTATIONS enabled AND explicit_user_intent. Ask the user first.
Inputs: ad_group_id (required), customer_id (required), criterion_id (required), explicit_user_intent (required), +1 more. Returns: ok, note, error, applied, +2 more
google_ads_privacy_auditGoogle Ads Privacy AuditARead-onlyIdempotent
Return the local privacy, mutation-gate, cache, token-path, env-presence and redaction posture without revealing secret values.
Inputs: response_format. Returns: project, unofficial, mutations_allowed, privacy_mode_default
google_ads_profile_getProfile Get (shared Delx profile)ARead-onlyIdempotent
Read the shared Delx profile (~/.delx-wellness/profile.json). Returns the user's preferred name, language, timezone, etc. Cross-tool — same profile is shared with other Delx MCPs. Read-only.
Inputs: response_format.
google_ads_profile_updateProfile Update (shared Delx profile)A
Persist a partial patch to the shared Delx profile (~/.delx-wellness/profile.json). REQUIRES explicit_user_intent=true. NEVER stores secrets — writes will be rejected at validation time.
Inputs: patch (required), response_format, explicit_user_intent.
google_ads_quick_winsFind Quick-Win Keywords (read-only)ARead-onlyIdempotent
Identify keywords with LOW CPC + HIGH CTR + at-least-some conversions — candidates to RAISE the bid on. Inverse of google_ads_find_waste. Returns a ranked list with a recommended_bid_micros (current + 25%, capped at 2x). NEVER changes bids; pair with google_ads_set_keyword_bid_micros (gated) after user confirmation.
Inputs: customer_id (required), limit, min_ctr, privacy_mode, +4 more. Returns: ok, error, privacy_mode
google_ads_resume_campaignResume Campaign (gated mutation)BDestructiveIdempotent
Resume (enable) a paused campaign by id. GATED.
Inputs: campaign_id (required), customer_id (required), explicit_user_intent (required), response_format. Returns: ok, note, error, applied, +2 more
google_ads_resume_keywordResume Keyword (gated mutation)BDestructiveIdempotent
Resume (enable) a single paused keyword by criterion_id. GATED.
Inputs: ad_group_id (required), customer_id (required), criterion_id (required), explicit_user_intent (required), +1 more. Returns: ok, note, error, applied, +2 more
google_ads_revoke_accessRevoke Google Ads AccessADestructive
Revoke the current Google OAuth grant and delete local tokens. Use only when the user explicitly wants to disconnect Google Ads.
Inputs: response_format. Returns: ok, note, token_path, local_tokens_cleared
google_ads_set_campaign_budget_microsSet Campaign Budget (gated mutation)ADestructiveIdempotent
Update a campaign budget's amount_micros. GATED. campaign_budget_id is NOT the campaign id — discover it via google_ads_get_campaign (campaign_budget.id).
Inputs: customer_id (required), amount_micros (required), campaign_budget_id (required), explicit_user_intent (required), +1 more. Returns: ok, note, error, applied, +2 more
google_ads_set_keyword_bid_microsSet Keyword Bid (gated mutation)ADestructiveIdempotent
Update the cpc_bid_micros for a keyword criterion. GATED. Bid must be in micros (10_000 = $0.01).
Inputs: ad_group_id (required), customer_id (required), criterion_id (required), cpc_bid_micros (required), +2 more. Returns: ok, note, error, applied, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Most tools target a distinct resource and action, especially the core list/get/set/pause/resume cluster. The main ambiguity is among the meta/utility tools (capabilities, data_inventory, agent_manifest, connection_status, privacy_audit) which all describe capabilities or state without touching Google Ads. Overall an agent can usually tell them apart thanks to clear scoping.
The core Google Ads tools follow a predictable verb_noun pattern (list_campaigns, get_campaign, pause_keyword, set_keyword_bid_micros). However, the utility block breaks this with noun-only names like data_inventory, capabities, agent_manifest, connection_status, and onboarding, and profile_get/profile_update use noun_verb order. The mix is readable but not fully consistent.
At 30 tools, this exceeds the 25+ threshold and feels heavy for the server's core purpose. Several meta/status/profile/cache tools (inventory, capabities, manifest, connection_status, privacy_audit, cache_status, onboarding, profile_get/profile_update) could be consolidated or moved elsewhere. The broad Google Ads surface explains some of the count, but the set would be tighter with fewer support utilities.
The server covers the core read/analyze/mutate workflow well: list and get campaigns, ad groups, and keywords, performance reports, waste/quick-win analysis, and gated bid/budget/status mutations. Obvious gaps include creating/deleting campaigns, ad groups, or keywords, ad-group-level performance metrics, and a broader campaign update surface. Agents can complete many optimization flows but may hit dead ends for lifecycle management.
Maintenance
Related MCP Connectors
Google Ads MCP server — manage campaigns, keywords, and metrics.
Google Ads MCP: reports, search terms, negatives, budgets, campaigns. Approval on every write.
Google Ads MCP server: run Search, Display, Demand Gen and PMax campaigns from AI.
Google Ads reporting and reviewable change plans using your own Google authorization.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for managing Google Ads campaigns through the official Google Ads API, covering accounts, campaigns, budgets, keywords, search terms, and keyword ideas. It provides tools for both reading and mutating live ads data, such as pausing campaigns, updating budgets, and adding keywords.MIT
- AlicenseAqualityCmaintenanceMCP server to read and manage Google Ads accounts via GAQL queries, campaign/ad group/keyword operations, and safe write support with draft-confirm flow.1643 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables management of Google Ads accounts via MCP, providing read and write tools for campaigns, ad groups, keywords, assets, and more, with support for reporting and mutations.-
- AlicenseAqualityBmaintenanceAn MCP server that enables safe, audited mutation of Google Ads campaigns—creating ads, ad groups, keywords, and assets or adjusting budgets and statuses—with a dry-run default and an optional guarded remove operation, plus read-only Keyword Planner ideas.222MIT