Google Ads MCP Plus
# 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.
## Get started
You need Python 3.11 or later, [uv](https://docs.astral.sh/uv/getting-started/installation/), and Google credentials authorized for the Ads API. Complete [authentication setup](docs/authentication.md) first. If another Google Ads MCP already uses Application Default Credentials, you can reuse that file.
Clone and install the project:
```sh
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:
```sh
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:
```toml
[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:
```json
{
"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:
```sh
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](https://docs.astral.sh/uv/guides/tools/).
## 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:
```sh
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
- [Authentication and environment settings](docs/authentication.md)
- [Tool reference](docs/tools.md)
- [Query and mutation examples](docs/examples.md)
- [Troubleshooting](docs/troubleshooting.md)
- [Architecture](ARCHITECTURE.md)
- [Contributing](CONTRIBUTING.md)
- [Security policy](SECURITY.md)
## 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](https://developers.google.com/google-ads/api/docs/conversions/upload-offline).
- 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](LICENSE).
TDQS
Scored across 9 tools
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.
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.
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.
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.