Skip to main content
Glama
Google Ads MCP Plus

Google Ads MCP Plus

by marcvrn

Google Ads MCP Plus

An independent MCP server for Google Ads reporting, keyword planning, and account changes. Connect an MCP client to the official Google Ads API through a local Python process.

This project is not affiliated with Google. It uses the official Google Ads Python client and MCP Python SDK.

What you can do

Capability

Tools

Discover accounts and report fields

list_accessible_customers, get_resource_metadata

Query account and performance data with pagination

search

Inspect request fields and enum values

get_request_schema

Generate keyword ideas, historical metrics, and forecasts

generate_keyword_ideas, generate_keyword_historical_metrics, generate_keyword_forecast

Create, update, or remove supported resources

mutate

Upload click conversions for eligible existing integrations

upload_click_conversions

The mutation tool accepts Google's operation schema. It can manage supported campaigns, budgets, ads, keywords, assets, and labels without a separate tool for every resource.

Writes are disabled by default. Mutation and upload tools default to validation only. Executing a change requires both GOOGLE_ADS_ENABLE_WRITES=true in the server environment and validate_only=false in the call.

Related MCP server: Google Ads MCP

Get started

You need Python 3.11 or later, uv, and Google credentials authorized for the Ads API. Complete authentication setup first. If another Google Ads MCP already uses Application Default Credentials, you can reuse that file.

Clone and install the project:

git clone https://github.com/marcvrn/google-ads-mcp-plus.git
cd google-ads-mcp-plus
uv sync --locked

Set the path to your credentials, then run a read-only connection test. Replace the example ID with your Google Ads customer ID:

export GOOGLE_APPLICATION_CREDENTIALS="/absolute/path/to/application_default_credentials.json"
uv run python scripts/smoke_test.py --customer-id 1234567890

The test launches the server through MCP stdio, discovers its tools, and reads the specified account. It does not change ads.

Connect your MCP client

Use absolute paths in desktop client configuration. Shell variables and ~ are not expanded by every client.

Codex

Add this entry to ~/.codex/config.toml. Replace both paths and the example customer ID:

[mcp_servers.google-ads-mcp-plus]
command = "/absolute/path/to/uv"
args = ["run", "--directory", "/absolute/path/to/google-ads-mcp-plus", "--locked", "google-ads-mcp-plus"]

[mcp_servers.google-ads-mcp-plus.env]
GOOGLE_APPLICATION_CREDENTIALS = "/absolute/path/to/application_default_credentials.json"
GOOGLE_ADS_ALLOWED_CUSTOMER_IDS = "1234567890"
GOOGLE_ADS_ENABLE_WRITES = "false"

Restart the client or reload its MCP connections. Ask it to list accessible Google Ads accounts, then query the account you selected.

Claude Desktop and other JSON-configured clients

Merge this entry into your client's MCP configuration:

{
	"mcpServers": {
		"google-ads-mcp-plus": {
			"command": "/absolute/path/to/uv",
			"args": ["run", "--directory", "/absolute/path/to/google-ads-mcp-plus", "--locked", "google-ads-mcp-plus"],
			"env": {
				"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/application_default_credentials.json",
				"GOOGLE_ADS_ALLOWED_CUSTOMER_IDS": "1234567890",
				"GOOGLE_ADS_ENABLE_WRITES": "false"
			}
		}
	}
}

Run directly from GitHub

You can run the package without a checkout:

uvx --python 3.11 --from git+https://github.com/marcvrn/google-ads-mcp-plus.git google-ads-mcp-plus

This starts a stdio server that waits for MCP messages. It is not an interactive shell. To use it in a client, set command to the absolute path of uvx and pass the remaining arguments through args.

For a fixed source revision, append @COMMIT_SHA to the Git URL. A Git-based tool installation resolves package dependencies independently of uv.lock. Use the checkout and uv sync --locked when you need the repository's exact dependency set. See uv tool installation.

Enable account changes

Set GOOGLE_ADS_ENABLE_WRITES to true in the MCP server's environment, then restart it. Keep GOOGLE_ADS_ALLOWED_CUSTOMER_IDS set to the accounts you intend to manage.

Ask the assistant to prepare and validate the exact change before execution. Validation does not reserve resources or guarantee later execution. The server's write setting is an execution control, not proof of human approval.

To test writes without changing campaign delivery, run the opt-in label test:

uv run python scripts/smoke_test.py --customer-id 1234567890 --write-test

The flag enables writes in the test subprocess only. The test creates an unattached label, reads it, removes it, and checks removal. If a request times out, inspect account state before retrying.

Configuration and documentation

Limits

  • Local stdio only. There is no HTTP server or hosted service.

  • API v26 is the default. The installed google-ads SDK determines which versions and fields are available.

  • Account permissions, project access approval, API quotas, and campaign-specific rules still apply.

  • mutate covers operations supported by GoogleAdsService.Mutate. This server does not expose every Google Ads service or arbitrary method dispatch.

  • Google directs new offline-conversion integrations to the Data Manager API. The click-upload tool is for eligible existing integrations; this server does not implement Data Manager. See Google's conversion guidance.

  • There is no scheduler, automatic optimization loop, persistent change history, or automatic rollback.

  • Reports and tool results are visible to your MCP client. Choose a client appropriate for the account data you access.

License

MIT.

Available Tools

9 tools
generate_keyword_forecastB
Read-only

Forecast an inline campaign without creating it. Request is GenerateKeywordForecastMetricsRequest JSON without customer_id.

Inputs: request (required), customer_id (required).

generate_keyword_historical_metricsB
Read-only

Get historical keyword metrics. Request is GenerateKeywordHistoricalMetricsRequest JSON without customer_id. Availability and quotas depend on Google Ads API access.

Inputs: request (required), customer_id (required).

generate_keyword_ideasA
Read-only

Return one page of keyword ideas. Request is GenerateKeywordIdeasRequest JSON without customer_id. Include page_token in request to continue. Inspect get_request_schema first.

Inputs: request (required), customer_id (required).

get_request_schemaB
Read-only

Inspect protobuf fields without credentials. Operations: search, keyword_ideas, keyword_historical_metrics, keyword_forecast, mutate, upload_click_conversions. Pass a returned message_type to inspect nested fields. Field masks use JSON strings.

Inputs: operation (required), message_type.

get_resource_metadataC
Read-only

Inspect fields and compatible metrics/segments for a resource. Follow next_page_token.

Inputs: resource (required), page_token.

list_accessible_customersA
Read-only

List directly accessible accounts, filtered by the configured customer allowlist.

Inputs: no named parameters.

mutateA
Destructive

Validate or execute 1-1000 GoogleAdsService MutateOperation JSON objects atomically. Creates, updates, or removes supported resources. Updates require update_mask. Default validates only. Execution also requires GOOGLE_ADS_ENABLE_WRITES=true. This can affect spend. Obtain user authorization before executing.

Inputs: operations (required), customer_id (required), validate_only.

upload_click_conversionsA
Destructive

Validate or upload 1-1000 ClickConversion JSON objects with partial failure enabled. Execution requires GOOGLE_ADS_ENABLE_WRITES=true. Inspect partial_failure in result. Only eligible existing integrations can use this API; new implementations must use Google's Data Manager API, which this server does not expose.

Inputs: conversions (required), customer_id (required), validate_only.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools are clearly distinct: search is the generic read path, mutate is the write path, and the three generate_keyword_* tools differ by output (ideas, historical metrics, forecast). The only mild overlap is between get_resource_metadata and get_request_schema, both introspection tools, though one targets resource fields and the other protobuf request shapes. The bare name 'search' is slightly vague but the description disambiguates it well.

    Naming Consistency4/5

    The dominant pattern is verb_noun (list_accessible_customers, get_resource_metadata, generate_keyword_ideas, upload_click_conversions) with a consistent generate_keyword_* family. Deviations are the bare verbs 'search' and 'mutate', which mirror Google Ads API terminology but break the noun-phrase pattern. Readable and predictable overall.

    Tool Count5/5

    Nine tools is well-scoped for a Google Ads API surface: one generic read, one generic write, one upload path, three keyword-research tools, and three supporting/introspection tools. Each tool earns its place without redundancy.

    Completeness4/5

    The surface covers the core lifecycle: account discovery (list_accessible_customers), schema introspection, flexible reads (search), writes (mutate), conversions (upload_click_conversions), and keyword research. Minor gaps exist around higher-level reporting/pagination helpers and the noted absence of Google's newer Data Manager API, but agents can work around these with search and mutate.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables comprehensive Google Ads campaign management and analytics through the Google Ads API. Supports querying campaigns, ad groups, keywords, performance metrics, and executing custom GAQL queries with token-efficient implementation.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables reading and modifying Google Ads accounts, including campaign management, ad status changes, budget updates, and more.
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables LLMs and AI agents to query Google Ads accounts via the Google Ads API, including searching account data, retrieving resource metadata, and accessing API discovery documents, metrics, segments, and release notes.
      Apache 2.0