MCP server for the Google Ads Transparency Center — look up any advertiser's ads without an API key
Project description
Google Ads Transparency MCP Server
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 — all from Google's Ads Transparency Center.
No API key. No paid service. No browser required.
Google has no official API for their Ads Transparency Center. The only open-source option was an abandoned Python package (last commit July 2023, broken domain search, crashed on image ads). Paid alternatives start at $75/mo. This project fixes the scraper and wraps it as an MCP server so any AI assistant can query Google's ad database directly.
Tools
| Tool | Description |
|---|---|
search_advertiser_by_domain |
Find an advertiser by website domain (e.g. nike.com) |
search_advertisers |
Search advertisers by keyword or company name |
get_ads |
Get ads for an advertiser with decoded content |
get_ad_detail |
Get full details for a specific ad creative |
Install
# With uvx (recommended)
uvx google-ads-transparency-mcp
# With pip
pip install google-ads-transparency-mcp
Configure
Claude Code
claude mcp add google-ads-transparency -- uvx google-ads-transparency-mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"google-ads-transparency": {
"command": "uvx",
"args": ["google-ads-transparency-mcp"]
}
}
}
Cursor / VS Code
Add to your MCP settings:
{
"mcpServers": {
"google-ads-transparency": {
"command": "uvx",
"args": ["google-ads-transparency-mcp"]
}
}
}
Example Usage
Once connected, ask your AI assistant things like:
- "What ads is nike.com running?"
- "Search for crypto exchange advertisers on Google"
- "Get the last 5 ads from Coinbase"
- "Look up ad details for advertiser AR05099026886533578753"
Example: Domain Search
> search_advertiser_by_domain("nike.com")
{
"advertiser_id": "AR14188379519798214657",
"name": "Nike, Inc.",
"ad_count": 1842
}
Example: Get Ads with Decoded Text Content
> get_ads("Coinbase", count=1)
[
{
"advertiser_id": "AR09076382774528",
"creative_id": "CR10813648716908961793",
"format": "text",
"last_shown": "2025-01-15",
"advertiser_name": "Coinbase",
"content": {
"preview_url": "https://ads-rendering-prod.corp.google.com/search?...",
"headline": "Most Trusted Crypto Exchange",
"description": "Buy, Sell & Trade Bitcoin, Ethereum & More...",
"destination_url": "coinbase.com"
}
}
]
How It Works
This server reverse-engineers Google's internal RPC endpoints:
| Endpoint | Purpose |
|---|---|
SearchService/SearchSuggestions |
Keyword/domain search |
SearchService/SearchCreatives |
Get ad creative IDs by advertiser |
LookupService/GetCreativeById |
Get individual ad details |
Text/search ads have their content encoded as base64 in iframe preview URLs. The server decodes these to extract headlines, descriptions, and destination URLs.
Use as a Python Library
from google_ads_transparency_mcp import GoogleAdsTransparency
client = GoogleAdsTransparency()
# Search by domain
advertiser = client.search_advertiser_by_domain("nike.com")
print(advertiser) # {"advertiser_id": "...", "name": "Nike, Inc.", "ad_count": 1842}
# Get ads with decoded content
ads = client.get_ads("Coinbase", count=5)
for ad in ads:
print(ad["format"], ad["content"])
# Region-specific search
client_uk = GoogleAdsTransparency(region="GB")
Supported Regions
Pass a two-letter country code to filter by region. Use "anywhere" (default) for global results. All 240+ regions from Google's Ads Transparency Center are supported.
Credits
Based on GoogleAdsTransparencyScraper by Farhan Ahmed. Forked and fixed by Sam Town — domain search, image ad parsing, text ad decoding, error handling, and MCP server.
License
MIT
Project details
Release history Release notifications | RSS feed
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 google_ads_transparency_mcp-0.1.0.tar.gz.
File metadata
- Download URL: google_ads_transparency_mcp-0.1.0.tar.gz
- Upload date:
- Size: 66.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0b9a4e2e236c8da88a019e9447560af5bf84f2ea2911a81f14d1ddf418fdfcd
|
|
| MD5 |
1a12663d0472d7ee29a328a87f4c9053
|
|
| BLAKE2b-256 |
1c541e0a9b688d7ae95c3d6dde7b4f4ec80e1bdbfca066ad660ed175bfcd2460
|
File details
Details for the file google_ads_transparency_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: google_ads_transparency_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07749de075dc3179157bc658e5117d0f88d78a280242cb28136a0be14a40439f
|
|
| MD5 |
8e577387503c5ab285a92f189d8aa6b2
|
|
| BLAKE2b-256 |
f8c4d872eb99f439555cae9a799a9de63c44f81a71330a19ae48af9c02fd8a02
|