Read-only MCP server for Google Ads entities and reporting.
Project description
flin-google-ads-mcp
Read-only MCP server for Google Ads, built for simple public use via uvx.
Why this server
- Read-only by design
- No create/update/delete campaign operations
- Credentials via environment variables only
- Easy local testing with MCP Inspector
Exposed MCP tools
health_checklist_accessible_customersget_customer_clientsget_campaignsget_ad_groupsget_adsget_insightsget_keywords
get_ads includes RSA content fields (headlines/descriptions/paths/final URLs) when available.
Requirements
- Python 3.10+
- Node.js (only for MCP Inspector testing)
- Google Ads API credentials:
GOOGLE_ADS_DEVELOPER_TOKENGOOGLE_ADS_CLIENT_IDGOOGLE_ADS_CLIENT_SECRETGOOGLE_ADS_REFRESH_TOKEN
Optional:
GOOGLE_ADS_LOGIN_CUSTOMER_IDGOOGLE_ADS_CUSTOMER_ID(default customer if nocustomer_idargument is passed)GOOGLE_ADS_USE_PROTO_PLUS(trueby default)
For MCC flows, you can also pass login_customer_id directly per tool call.
Quickstart (from source)
uv sync --extra dev
cp .env.example .env
# Fill .env values
uv run flin-google-ads-mcp
Quickstart (as published package)
uvx flin-google-ads-mcp@latest
Claude integration (published via uvx)
{
"mcpServers": {
"flin-google-ads-mcp": {
"command": "uvx",
"args": ["flin-google-ads-mcp@latest"],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "xxx",
"GOOGLE_ADS_CLIENT_ID": "xxx",
"GOOGLE_ADS_CLIENT_SECRET": "xxx",
"GOOGLE_ADS_REFRESH_TOKEN": "xxx",
"GOOGLE_ADS_CUSTOMER_ID": "1234567890",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "1234567890"
}
}
}
}
Claude integration (local development)
{
"mcpServers": {
"flin-google-ads-mcp-local": {
"command": "uv",
"args": [
"run",
"--directory",
"/Users/nicolasg/Antigravity/flin-google-ads-mcp",
"flin-google-ads-mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "xxx",
"GOOGLE_ADS_CLIENT_ID": "xxx",
"GOOGLE_ADS_CLIENT_SECRET": "xxx",
"GOOGLE_ADS_REFRESH_TOKEN": "xxx",
"GOOGLE_ADS_CUSTOMER_ID": "6050181535",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "3943585717"
}
}
}
}
How to test
Detailed guide: docs/testing.md
- Release checklist: docs/release.md
Operational usage guide:
Fast path:
uv sync --extra dev
python3 -m pytest
python3 -m compileall src
Then run live smoke tests with MCP Inspector (see the testing guide).
Release on GitHub + PyPI
This repository publishes automatically with GitHub Actions:
- CI:
.github/workflows/ci.yml - Release:
.github/workflows/release.yml(triggered by git tagsv*)
1) Configure PyPI Trusted Publisher (one-time)
In PyPI project settings for flin-google-ads-mcp, add a Trusted Publisher with:
- Owner:
flin-agency - Repository:
flin-google-ads-mcp - Workflow:
release.yml - Environment:
pypi
2) Cut a release
# bump version in pyproject.toml first, then:
git add -A
git commit -m "release: v0.1.0"
git tag v0.1.0
git push origin main --tags
The Release workflow builds, tests, and publishes to PyPI using OIDC (no PyPI API token in GitHub secrets).
CI
GitHub Actions validates:
- unit tests
- import/compile checks
- package build
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flin_google_ads_mcp-0.1.0.tar.gz.
File metadata
- Download URL: flin_google_ads_mcp-0.1.0.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a222b0ecd74022a069c6362e5b316ab966160520f96de83281248ad7f17ff93f
|
|
| MD5 |
1b17dad042e4957acfdf4dd0f58cbf53
|
|
| BLAKE2b-256 |
8cf7bfeae7ca5e0c4491d69a90dc35b45044646f76b5586503ac9e19017a018f
|
Provenance
The following attestation bundles were made for flin_google_ads_mcp-0.1.0.tar.gz:
Publisher:
release.yml on flin-agency/flin-google-ads-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flin_google_ads_mcp-0.1.0.tar.gz -
Subject digest:
a222b0ecd74022a069c6362e5b316ab966160520f96de83281248ad7f17ff93f - Sigstore transparency entry: 1149599635
- Sigstore integration time:
-
Permalink:
flin-agency/flin-google-ads-mcp@4cf60239abccd5043a63445da4fa9c239d9cb9f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/flin-agency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4cf60239abccd5043a63445da4fa9c239d9cb9f5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file flin_google_ads_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flin_google_ads_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
608ffc088ad94198f4d0e0df738bb6e7f0488e6ccaa56e0fa59b98b10dcd5197
|
|
| MD5 |
d31f40edd8ce0182aec1d665828c7cc6
|
|
| BLAKE2b-256 |
aff12e309533a7f3b6819b589f9847278e58f2b6f66613450535cf433648f90d
|
Provenance
The following attestation bundles were made for flin_google_ads_mcp-0.1.0-py3-none-any.whl:
Publisher:
release.yml on flin-agency/flin-google-ads-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flin_google_ads_mcp-0.1.0-py3-none-any.whl -
Subject digest:
608ffc088ad94198f4d0e0df738bb6e7f0488e6ccaa56e0fa59b98b10dcd5197 - Sigstore transparency entry: 1149599705
- Sigstore integration time:
-
Permalink:
flin-agency/flin-google-ads-mcp@4cf60239abccd5043a63445da4fa9c239d9cb9f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/flin-agency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4cf60239abccd5043a63445da4fa9c239d9cb9f5 -
Trigger Event:
workflow_dispatch
-
Statement type: