Skip to main content
Glama
climent-google-ads-mcp

climent-google-ads-mcp

by Manucliment

climent-google-ads-mcp

A free, open-source, read-only MCP server for the Google Ads API. Ask Claude, Cursor or any MCP client about your campaigns, keywords and search terms, using your own Google credentials, on your own machine.

  • Node.js, runs with npx. No Python, no Docker.

  • Read-only by construction: the code only calls customers:listAccessibleCustomers and googleAds:search. There is no write endpoint in it.

  • Same tool vocabulary as its sibling climent-meta-ads-mcp (*_list_accounts, *_account_summary, *_campaigns, *_ads...).

  • No telemetry. We never receive your data.

Google Ads API version: v25 by default, set in src/constants.js; newer versions (v26) are one environment variable away. The default API version, the request headers and the fields this server asks for mirror an integration that has called the live Google Ads API every day in production (as of 2026-12-04).

Google also publishes an official open-source Google Ads MCP server (Python, marked experimental). Pick this one if you prefer Node and npx, want the same tools for Google and Meta, or want the step-by-step credentials guide below.


Quickstart

You need Node.js 20 or newer and three values: an OAuth client ID, its client secret and a refresh token. If you do not have them yet, follow Credentials first (about 15 minutes).

Claude Desktop

Edit claude_desktop_config.json (Settings > Developer > Edit Config):

{
  "mcpServers": {
    "google-ads": {
      "command": "npx",
      "args": ["-y", "github:Manucliment/climent-google-ads-mcp"],
      "env": {
        "GOOGLE_ADS_CLIENT_ID": "1234567890-abc.apps.googleusercontent.com",
        "GOOGLE_ADS_CLIENT_SECRET": "your-client-secret",
        "GOOGLE_ADS_REFRESH_TOKEN": "your-refresh-token",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "123-456-7890"
      }
    }
  }
}

GOOGLE_ADS_LOGIN_CUSTOMER_ID is only needed if you reach your accounts through a manager (MCC) account. On Windows, if Claude Desktop cannot find npx, use "command": "cmd" and "args": ["/c", "npx", "-y", "github:Manucliment/climent-google-ads-mcp"].

Claude Code

claude mcp add google-ads \
  -e GOOGLE_ADS_CLIENT_ID=... -e GOOGLE_ADS_CLIENT_SECRET=... -e GOOGLE_ADS_REFRESH_TOKEN=... \
  -- npx -y github:Manucliment/climent-google-ads-mcp

To keep secrets out of your shell history, put the same block as above in a project .mcp.json and reference environment variables ("GOOGLE_ADS_REFRESH_TOKEN": "${GOOGLE_ADS_REFRESH_TOKEN}").

Cursor

~/.cursor/mcp.json (global) or .cursor/mcp.json (project) takes the same mcpServers block as Claude Desktop.

Any other MCP client

Run npx -y github:Manucliment/climent-google-ads-mcp as a stdio server with the environment variables below. Or run it over HTTP (next section).

Environment variables

Variable

Required

What it is

GOOGLE_ADS_CLIENT_ID

yes

OAuth client ID (type Desktop app) from your Google Cloud project

GOOGLE_ADS_CLIENT_SECRET

yes

Its client secret

GOOGLE_ADS_REFRESH_TOKEN

yes

Refresh token for the Google user that can see your Ads accounts. Get it with npx github:Manucliment/climent-google-ads-mcp auth

GOOGLE_ADS_LOGIN_CUSTOMER_ID

no

Manager (MCC) account ID, if you access accounts through one. Can also be passed per call

GOOGLE_ADS_DEVELOPER_TOKEN

no

Not needed. Google sunset developer tokens on 9 Sept 2026 and ignores the header; it is sent only if you set it

GOOGLE_ADS_API_VERSION

no

API version to call, as v<major> (default v25). Set v26 to opt in to a newer version. Anything else is refused with a clear error

The server reads only these variables. It does not read .env files, keychains or any file on disk.


Related MCP server: Google Ads MCP Server

Self-host over HTTP

For remote clients, or to share one server with a team, run the Streamable HTTP transport. It refuses to start without a bearer token.

export MCP_HTTP_BEARER_TOKEN="$(openssl rand -hex 32)"   # at least 32 characters
export GOOGLE_ADS_CLIENT_ID=... GOOGLE_ADS_CLIENT_SECRET=... GOOGLE_ADS_REFRESH_TOKEN=...
npx -y github:Manucliment/climent-google-ads-mcp http
# MCP endpoint: http://127.0.0.1:3000/mcp
  • MCP_HTTP_HOST (default 127.0.0.1) and MCP_HTTP_PORT (default 3000) control where it listens. GET /healthz answers {"ok":true} without auth and without data.

  • Every request to /mcp must send Authorization: Bearer <MCP_HTTP_BEARER_TOKEN>; anything else gets 401.

  • The server speaks plain HTTP. Before exposing it to the internet, put it behind HTTPS (Caddy, nginx, a cloud load balancer).

  • Whoever has the bearer token can read every account your refresh token can read. Treat it like the refresh token.

Claude Code example: claude mcp add --transport http google-ads https://your-host/mcp --header "Authorization: Bearer <token>".

ChatGPT and other remote clients can only talk to MCP servers over HTTP(S), so they need this mode. Some of them only support OAuth or no authentication for custom connectors, not a static bearer header. Check what your client supports; if it cannot send an Authorization header, put the server behind a proxy you control that adds it, and never expose it without authentication.


Credentials, step by step

Everything below happens in your own Google accounts. Nothing is shared with us.

1. A Google Cloud project with the Google Ads API enabled

  1. Go to console.cloud.google.com and create a project (or pick one).

  2. APIs & Services > Library > search Google Ads API > Enable.

Enabling the API gives the project Test access automatically (see access levels below).

  1. APIs & Services > OAuth consent screen (Google Auth Platform). User type External (or Internal if you use Google Workspace and only your organisation will sign in).

  2. Fill in the app name and your email. You do not need to submit it for verification to use it yourself.

  3. Under Audience, set the publishing status to In production. In Testing status Google expires refresh tokens after 7 days, and you would have to run auth again every week.

  4. When you sign in later, Google may show "Google hasn't verified this app". It is your own app: choose Advanced > Continue.

3. An OAuth client of type Desktop app

APIs & Services > Credentials > Create credentials > OAuth client ID > Application type Desktop app. Copy the client ID and client secret.

4. The refresh token

export GOOGLE_ADS_CLIENT_ID=...
export GOOGLE_ADS_CLIENT_SECRET=...
npx -y github:Manucliment/climent-google-ads-mcp auth

(PowerShell: $env:GOOGLE_ADS_CLIENT_ID="..." and so on.)

It prints a Google sign-in URL. Open it, sign in with the Google user that has access to your Google Ads accounts, and approve. The page redirects to a temporary server on 127.0.0.1 on your machine, and the refresh token is printed in your terminal. Put it in GOOGLE_ADS_REFRESH_TOKEN. The flow uses PKCE and talks only to Google.

5. Access levels: the part most guides skip

Since 9 September 2026 Google grants API access per Google Cloud project, not per developer token. Your project's level decides which accounts you can read. You see and change it on the Google Ads API Overview page of your project in the Cloud Console. Source: Access levels.

Level

Can read

Daily limit

How to get it

Test

Test accounts only

15,000 operations

Automatic when you enable the API

Explorer

Test and production accounts

2,880 operations on production

Apply on the Overview page; Google may approve it automatically

Basic

Test and production

15,000 operations

Needs Explorer first and brand verification of the project

Standard

Test and production

Unlimited

Needs Basic; manual compliance review (about 10 business days)

What this means in practice:

  • With Test access, real accounts fail. You get a CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION error (older API versions said ACTION_NOT_PERMITTED). This server turns it into a message telling you to apply for Explorer.

  • Explorer is enough for most people reading their own accounts. 2,880 operations a day is plenty for conversational use; each tool call makes one or a few API requests.

  • Limits use a sliding 24-hour window. All levels also have per-hour rate limits.

6. Manager (MCC) accounts

If your Google user reaches client accounts through a manager account, set GOOGLE_ADS_LOGIN_CUSTOMER_ID to the manager's ID, or pass login_customer_id to a tool. google_list_accounts with manager_id lists the clients under a manager.


Tools

All tools are read-only. Dates are a preset (today, yesterday, last_7d, last_14d, last_30d, this_month, last_month; the default is last_30d, and last_N excludes today) or since + until as YYYY-MM-DD, in the account time zone. Money is in the account currency, named in every response (currency). Lists are capped (max_rows, default 50) and say "truncated": true when there is more.

Tool

What it returns

Example prompt

google_list_accounts

Accounts you can access (name, currency, time zone, manager or not); with manager_id, the clients under a manager

"Which Google Ads accounts can you see?"

google_account_summary

Spend, impressions, clicks, CTR, CPC, conversions, value, CPA, ROAS for a date range

"How did account 123-456-7890 do last month?"

google_campaigns

Campaigns with status, channel, bidding strategy, daily budget and performance

"Which campaigns spent the most in the last 7 days, and what was their CPA?"

google_ad_groups

Ad groups with status, type and performance, optionally for one campaign

"Break down campaign 111 by ad group for November."

google_ads

Ads with type, status, approval, final URL, RSA headlines and descriptions, performance

"Show me the headlines of my best and worst responsive search ads."

google_keywords

Keywords with match type, status, quality score and performance

"List keywords with quality score below 5 that spent money this month."

google_search_terms

Search terms that triggered ads, with performance

"Which search terms cost money last week without a conversion?"

google_query

Raw rows of any read-only GAQL SELECT

"Run a GAQL query for impressions by device for the last 14 days."

google_query accepts only a single SELECT ... FROM ... statement. It rejects anything else before any network call (other statements, semicolons, MUTATE, invisible characters, unterminated strings), and it always goes through googleAds:search, which cannot write. If the query has no LIMIT, one is added.


Privacy

  • It runs on your machine (or your server). It talks only to googleads.googleapis.com and Google's OAuth endpoints.

  • No telemetry, no analytics, no phone-home. We (Climent Media) receive nothing: no data, no usage counts, no errors.

  • Tokens are never logged. Error messages pass through a redaction step that removes your secrets and anything shaped like a Google or Meta token.

  • Your MCP client (Claude, Cursor...) does see the data the tools return, under that client's own privacy terms.

Limits

  • Read-only. It cannot pause, edit budgets or bids, add negatives or create anything. Ask it and the model will tell you it can't, and how to do it in the Google Ads interface.

  • One Google user per server (the one behind the refresh token).

  • Defaults to Google Ads API v25, not the newest major, because that is the version proven in production with these exact requests. v25 sunset is planned for August 2027 (sunset dates); set GOOGLE_ADS_API_VERSION=v26 to move earlier.

  • Google hides low-volume search terms, so search-term totals can be lower than campaign totals.

  • Campaigns or keywords with no impressions in the date range may not appear in performance lists.

  • This package's own test suite mocks every request; it has not itself been run against the live API. The default API version, the request headers and the fields this server asks for mirror an integration that has called the live Google Ads API every day in production (as of 2026-12-04). Please report anything that behaves differently.

Need more?

This server is a good way to look. When you want to act:

  • Climent Ads is our hosted product: no Cloud project or OAuth client of your own, Google Ads and Meta Ads for many clients in one place, account audits, and changes to campaigns that a human approves before they are applied.

  • Climent Media is the agency behind it, if you would rather have people run your ads.

Develop

npm install
npm test          # node:test, every API call mocked, no credentials needed
node bin/cli.js --help

License

Apache-2.0. See LICENSE. Not affiliated with or endorsed by Google. Google Ads is a trademark of Google LLC.

Available Tools

8 tools
google_account_summaryGoogle Ads account summaryA
Read-onlyIdempotent

Totals for one Google Ads account over a date range: spend (cost), impressions, clicks, CTR, CPC, conversions, conversion value, CPA and ROAS, in the account currency.

Inputs: customer_id (required), since, until, preset, +1 more.

google_campaignsGoogle Ads campaigns with performanceB
Read-onlyIdempotent

Campaigns of one Google Ads account with status, channel, bidding strategy, daily budget and performance for a date range, sorted by cost. Money in the account currency.

Inputs: customer_id (required), since, until, preset, +3 more.

google_keywordsGoogle Ads keywords with performanceA
Read-onlyIdempotent

Search keywords of one Google Ads account (optionally one campaign or ad group) with match type, status, quality score and performance for a date range, sorted by cost.

Inputs: customer_id (required), since, until, preset, +5 more.

google_list_accountsList Google Ads accountsA
Read-onlyIdempotent

List the Google Ads accounts the authenticated Google user can access, with name, currency, time zone and whether each is a manager (MCC). Pass manager_id to list the client accounts under a manager instead.

Inputs: max_rows, manager_id.

google_queryRun a read-only GAQL queryA
Read-onlyIdempotent

Run one read-only Google Ads Query Language (GAQL) SELECT query against one account and return the raw rows. Only SELECT ... FROM ... is accepted; anything else is rejected. Fields ending in _micros are millionths of the account currency.

Inputs: query (required), customer_id (required), max_rows, login_customer_id.

google_search_termsGoogle Ads search termsA
Read-onlyIdempotent

Search terms that triggered ads in one Google Ads account (optionally one campaign or ad group) with performance for a date range, sorted by cost.

Inputs: customer_id (required), since, until, preset, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 8 tools

    Disambiguation4/5

    Each tool maps to a distinct resource in the account hierarchy (accounts, summary, campaigns, ad groups, ads, keywords, search terms), so boundaries are mostly clear. The only overlap is google_query, which can technically retrieve anything the specialized tools return, but its raw-GAQL escape-hatch role is well distinguished.

    Naming Consistency4/5

    All tools share a predictable google_ prefix with resource-oriented suffixes. Minor inconsistency: google_list_accounts uses a verb_noun form while the rest are pure noun phrases (google_campaigns, google_ads, google_query).

    Tool Count5/5

    Eight tools is well-scoped for a read-only Google Ads analytics server. Each tool earns its place by covering a distinct level of the account hierarchy plus a raw query escape hatch.

    Completeness4/5

    Strong coverage of the read-only analytics domain: accounts, performance summary, and every hierarchy level down to keywords and search terms. Missing breakdowns (device, location, change history) are largely workable via the google_query escape hatch, so gaps are minor.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Remote MCP server that lets ChatGPT Business and other MCP clients query and mutate Google Ads accounts via service-account authentication, with generic read/write tools plus convenience tools for reporting, campaigns, budgets, keywords, assets, audiences, and Performance Max. Includes dry-run support, budget/bid guardrails, and structured audit logging.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude, ChatGPT, Copilot, and Cursor to read Google Ads data—campaigns, ad groups, ads, keywords, search terms, budgets, conversion actions, change history, and custom GAQL queries—through 17 read-only MCP tools. It supports OAuth-authenticated access to real accounts without requiring a developer token, keeping all operations read-only and auditable.
      58 npm
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query read-only Google Search Console, GA4, Google Ads, and Workspace data through a single MCP endpoint, alongside a matching CLI. Sign-in happens once so the agent never sees Google tokens.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude, Cursor, VS Code, ChatGPT and other MCP clients to analyze Google Search Console, Google Ads and AdSense data through 57 read-only tools covering search performance, indexing, wasted ad spend, quality scores, earnings and combined paid-vs-organic insights. Runs as a thin local client against a hosted backend, so no Google Cloud project, OAuth client or developer token is needed.
      50 npm
      MIT