Skip to main content
Glama
YerayRodri

google-ads-kw-mcp

by YerayRodri

google-ads-kw-mcp

MCP server that exposes Google Ads keyword search volumes to AI agents — a free alternative to paid keyword-volume APIs, using the same KeywordPlanIdeaService that powers Google's Keyword Planner.

Why this instead of the official Google Ads MCP?

The official Google Ads MCP talks GAQL/REST and can't query KeywordPlanIdeaService. This server is complementary, not a duplicate — use it specifically for search volume, and the official one (or google-ads-write-mcp) for everything else.

Related MCP server: google-ads-transparency-mcp

Tools (2)

get_keyword_volumes

Returns search volume data for an array of keywords.

Param

Type

Default

Description

keywords

list[str]

required

Max 20 keywords per call

customer_id

str

required

Google Ads account ID (no dashes)

country

str

"ES"

ISO country code (see list_keyword_countries)

language

str

"es"

Language code (es, en, fr, de, it, pt, nl, ja, zh, ru, ar)

Response:

[
  {
    "keyword": "surf lessons",
    "avg_monthly_searches": 480,
    "competition": "MEDIUM",
    "competition_index": 38,
    "low_top_of_page_bid_micros": 206702,
    "high_top_of_page_bid_micros": 980973
  }
]

list_keyword_countries

Returns the 20 supported countries (ISO code → name).

Security

  • The tool ships with MCP Tool Annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) — this server is read-only, so both tools are annotated accordingly, letting MCP clients skip any confirmation prompt.

  • Execution errors propagate as real MCP protocol errors (isError: true), not as a JSON payload that looks like a success with an "error" key buried inside — so the calling model actually sees the failure and can self-correct instead of silently treating it as a success.

Setup

You need a Google Ads developer token (Standard Access is enough) and an OAuth client authorized against your Google Ads MCC/account. If you already have a google-ads.yaml from the Google Ads API client library, you can adapt its client_id/client_secret/refresh_token into the JSON format below.

  1. Install dependencies:

    python3 -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
  2. Create ~/.config/google-ads-mcp/credentials.json:

    {
      "client_id": "...",
      "client_secret": "...",
      "refresh_token": "..."
    }

MCP client configuration

{
  "mcpServers": {
    "google-ads-kw": {
      "command": "/path/to/.venv/bin/python3",
      "args": ["/path/to/google-ads-kw-mcp/server.py"],
      "env": {
        "GOOGLE_ADS_CREDENTIALS_PATH": "~/.config/google-ads-mcp/credentials.json",
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<your developer token>",
        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "<your MCC customer id, no dashes>"
      }
    }
  }
}

Env var

Purpose

GOOGLE_ADS_CREDENTIALS_PATH

Path to the credentials JSON (default: ~/.config/google-ads-mcp/credentials.json)

GOOGLE_ADS_DEVELOPER_TOKEN

Your Google Ads developer token

GOOGLE_ADS_LOGIN_CUSTOMER_ID

Your MCC/login customer ID, no dashes

GOOGLE_ADS_API_VERSION

Google Ads API version (default: v25, pinned in server.py). This is deliberately fixed rather than inheriting the google-ads library's default, so a pip install --upgrade google-ads can't silently move you to a newer API version. Only override after reading the release notes.

Limits

  • Max 20 keywords per call (API limit).

  • Long-tail keywords may return avg_monthly_searches: 0 if Google Ads doesn't have enough data.

  • Free quota is generous (~15,000 ops/day for standard accounts) — plenty for this use case.

License

MIT — see LICENSE.

Related MCP Connectors

  • Google Ads MCP server — manage campaigns, keywords, and metrics.

  • Your agent needs to know what people actually search — volume, ideas, how hard the term is, and whether interest is rising or was a spike last March. **What you can ask for** • "What is the monthly volume and difficulty for these 200 keywords?" • "Give me keyword ideas around this seed, with questions people ask." • "Which keywords does this competitor rank for that we do not?" • "Is interest in this term growing, and where?" • "What does this page already rank for?" **How to use it** Point any MCP client at https://mcp.aisa.one/seo-keywords/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: Google and Bing volume and suggestions, keywords for a site or a URL, clickstream volumes, Google Trends and Ads traffic estimates, plus Semrush difficulty, question keywords, broad match and paid keywords, and Similarweb's keyword and landing page sets. **Why this rather than the source** Three sources for the same number, so a suspicious volume can be checked rather than believed. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Size the demand here, then ask the same agent who ranks for it and who links to them — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/seo/mcp for all of it at once — rankings, keywords, backlinks, site health and AI-answer visibility across DataForSEO, Semrush and Ahrefs.

  • Free web search for AI agents. No API key required. Hosted MCP in active development.

  • MCP server for building and testing AI agents with multi-model experimentation and insights.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server that enables AI assistants to perform SEO automation tasks including keyword research, SERP analysis, and competitor analysis through Google Ads API integration.
    1
    -
  • A
    license
    A
    quality
    A
    maintenance
    An MCP server that lets AI assistants look up any advertiser's Google ads. Search by domain or company name, retrieve ad creatives, and decode text ad content from Google's Ads Transparency Center.
    8
    347 PyPI
    7
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server that provides tools and resources for interacting with Google Ads API, enabling search, metadata retrieval, and account management through natural language.
    3
    2,765 PyPI
    982
    Apache 2.0