Google Ads MCP Server
This MCP server lets you research and analyze any brand's live Google ads from the Google Ads Transparency Center.
Find advertisers — look up a brand's Google advertiser IDs and domains by name or domain (
get_google_platform_id), including several brands at once.Pull running ads — retrieve currently running ads by domain or advertiser ID, filtered by topic (including political ads) and region, with pagination (
get_google_ads).Track changes — see which ads first appeared in the last 7 days, and what's new or dropped since a fetch 24h+ earlier.
Inspect ad details — get all variations, headlines, descriptions, image/YouTube URLs, regional stats and impressions for a specific ad (
get_google_ad_details).Analyze images — view ad images directly with a checklist covering text, hooks, people, brand elements, composition and colors (
analyze_ad_image).Analyze videos — extract storytelling, audio, pacing, transitions and messaging from video ads via Gemini (
analyze_ad_video).Follow playbooks — load step-by-step methods for competitor teardowns, prospect lists (
Allows searching and analyzing ads from Google's Ads Transparency Center, including analyzing ad images/text, video ads, comparing companies' advertising strategies, and getting insights into campaign effectiveness.
Used for comprehensive video ad analysis, providing insights into visual storytelling, pacing, and brand messaging techniques in video advertisements.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Ads MCP Server analyze Nike's video ads and summarize their storytelling strategy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

Google Ads Library MCP Server
Proxy (useproxy.dev) is the free hosted version of this server. One connection gives ChatGPT, Claude, Cursor and any MCP client live ads from the Meta, Google, LinkedIn and TikTok (EU) ad libraries, with no API keys and 20 free credits a day. Use it in 2 minutes →
This repo is the open-source, self-hosted Google server, for personal use and tinkering. It covers one platform, you pay ScrapeCreators for every call (about $1.88 per 1,000 after 100 free credits), and it doesn't get every feature hosted Proxy has. For client work or a team,use hosted Proxy.
This is a Model Context Protocol (MCP) server for the Google Ads Transparency Center.
With this you can search Google's public ads transparency center for any company or brand, see what they're currently running and analyze their advertising. You can analyze ad images/text, analyze video ads with comprehensive insights, compare companies' strategies, and get insights into what's working in their campaigns.
New in v1.1: look up any brand's advertiser ID by name (get_google_platform_id), "what changed since last fetch" on every get_google_ads pull, three built-in research playbooks, and video analysis on the current Gemini SDK and models. See the changelog.
Here's an example of what you can do when it's connected to Claude.
https://github.com/user-attachments/assets/a47aa689-e89d-4d4b-9df7-6eb3a81937ee
Hosted Version (Recommended)
The easiest way to use the Google Ads Library MCP is the hosted version from Proxy (useproxy.dev). No API keys, no Gemini key, no Python, no server to run — just connect and start querying.
⚡ Zero setup — nothing to install, configure, or maintain
🔑 No API keys — skip the ScrapeCreators and Gemini keys entirely
🔌 Works everywhere — ChatGPT, Claude, Cursor, Manus, and anywhere else that supports MCP
🚀 Always up to date — new tools and fixes ship automatically
👉 Get started for free at useproxy.dev →
Prefer to run it yourself? The full self-host setup is documented below.
Hosted vs. Self-Host
Hosted: Proxy (useproxy.dev) | Self-host (this repo) | |
Ad libraries | Meta, Google, LinkedIn and TikTok (EU) in one server | Google only |
Cost | Free for 20 credits a day; paid plans for more | ScrapeCreators credits (about $1.88 per 1,000 calls) plus Gemini usage for video |
API keys | None, sign in with OAuth | ScrapeCreators, plus Gemini for video |
Brand name to advertiser ID lookup | ✅ | ✅ |
What changed since last fetch | ✅ | ✅ |
Research playbooks (teardowns, prospect lists, weekly tracking) | ✅ | ✅ |
Competitor discovery and competitive brief | ✅ | ❌ |
Inline ad carousel | ✅ | ❌ |
ChatGPT and claude.ai | ✅ (ChatGPT app and Claude connector) | ❌ (they need a public OAuth server) |
Claude Desktop, Claude Code, Cursor | ✅ | ✅ |
Setup and updates | None, managed for you | Python or Docker; |
Best for | Marketers, agencies, teams | Developers who want to change the code |
Need another platform? The other self-hosted servers: Facebook · LinkedIn · TikTok. Or get all four in one connection with hosted Proxy. Comparison and setup for all four: useproxy.dev/self-host.
Related MCP server: Google Search MCP Server
Example Prompts
How many ads is 'AnthropicAI' running? What's their split across video and image?What messaging is 'AnthropicAI' running right now in their ads?Analyze the video ads from 'Nike' and extract their visual storytelling strategy, pacing, and brand messaging techniques.Do a deep comparison to the messaging between 'AnthropicAI', 'Perplexity AI' and 'OpenAI'. Give it a nice forwardable summary.Competitor Tracking
Pull HubSpot's and Salesforce's Google ads. I'll ask again next week: tell me what's new then.Playbooks
Your MCP client's prompt menu now lists three playbooks: competitor_teardown, who_is_advertising and competitor_watch. Or just ask, and the model loads the right one with get_playbook:
Which of these dentists in Austin run Google ads? smiledental.com, austinfamilydentist.com, brightsmiles.comInstallation
Prerequisites
Python 3.12+
Anthropic Claude Desktop app (or Cursor)
Pip (Python package manager), install with
python -m pip installAn API key for an ads data provider, set as
SCRAPECREATORS_API_KEY(see configuration below)A Google Gemini API key for video analysis (optional, only needed for video ads)
Prefer not to deal with API keys? See the Hosted Version above to skip setup entirely.
Quick Install (Recommended)
Clone and run the install script
git clone https://github.com/proxy-intell/google-ads-library-mcp.git cd google-ads-library-mcp # For macOS/Linux: ./install.sh # For Windows: install.batConfigure your API keys
Edit the
.envfile that was created and add your API keys:Set your ads data API key as
SCRAPECREATORS_API_KEYGet your Gemini API key at Google AI Studio (optional, for video analysis)
Follow the displayed MCP configuration
The install script will show you the exact configuration to add to Claude Desktop or Cursor.
Manual Install
If you prefer to install manually:
Clone this repository
git clone https://github.com/proxy-intell/google-ads-library-mcp.git cd google-ads-library-mcpInstall dependencies
pip install -r requirements.txtConfigure API keys
Copy the template and configure your API keys:
cp .env.template .env # Then edit .env with your actual API keysTo obtain API keys:
Set your ads data API key as
SCRAPECREATORS_API_KEYin the.envfileGet a Google Gemini API key here (optional, for video analysis)
Connect to the MCP server
Add the MCP server configuration to your Claude Desktop or Cursor config:
{ "mcpServers": { "google_ad_library": { "command": "/usr/local/opt/python@3.13/bin/python3", "args": [ "{{PATH_TO_PROJECT}}/google-ads-library-mcp/mcp_server.py" ] } } }Replace
{{PATH_TO_PROJECT}}with the full path to where you cloned this repository.Note: API keys are automatically loaded from the
.envfile. Command line arguments are still supported and take priority over environment variables if provided.For Claude Desktop:
Save this as
claude_desktop_config.jsonin your Claude Desktop configuration directory at:~/Library/Application Support/Claude/claude_desktop_config.jsonFor Cursor:
Save this as
mcp.jsonin your Cursor configuration directory at:~/.cursor/mcp.jsonRestart Claude Desktop / Cursor
Open Claude Desktop and you should now see the Google Ads Library as an available integration.
Or restart Cursor.
Deploy to the cloud
Run it as a remote MCP server so Cursor, Claude Code or Claude Desktop can reach it from anywhere.
Click the button and enter your
SCRAPECREATORS_API_KEY(andGEMINI_API_KEYfor video). Render generatesMCP_AUTH_TOKENfor you.Your endpoint is
https://<your-service>.onrender.com/mcp/. Every request needs the headerAuthorization: Bearer <MCP_AUTH_TOKEN>.Claude Code:
claude mcp add --transport http google-ads https://<your-service>.onrender.com/mcp/ --header "Authorization: Bearer <MCP_AUTH_TOKEN>"
Any Docker host works the same way:
docker build -t google-ads-library-mcp .
docker run -p 8000:8000 -e MCP_TRANSPORT=http -e MCP_AUTH_TOKEN=<long-random-string> -e SCRAPECREATORS_API_KEY=<key> google-ads-library-mcpThe server refuses to start in HTTP mode without an MCP_AUTH_TOKEN of 16+ characters, so nobody else can spend your credits. Or skip all of this: hosted Proxy is already running.
Usage data
The server sends an anonymous ping to the maintainers on each tool call: the tool name, this repo's name, a call count and a random install ID stored in ~/.config/proxy-ads-mcp/. It never sends tool arguments, results, API keys or anything about you. Turn it off with PROXY_TELEMETRY=0 (or DO_NOT_TRACK=1). It tells us which tools people use so we know what to fix. Code: src/telemetry.py.
Every so often (the 25th call, then every 100th) a tool result includes a one-line tip about hosted Proxy.
Technical Details
Claude sends requests to the Python MCP server
The MCP server queries the ads data API for Google Ads Transparency Center data
Data flows back through the chain to Claude
Google Ads
This server connects to Google's Ads Transparency Center:
Google Ads: Uses company domain (e.g., "nike.com") or advertiser ID for search
Response Format: Returns ads with format types (text/image/video) and detailed variations
Ad Details: Each ad can have multiple variations with different headlines and descriptions
Regional Data: Includes region-specific statistics and impression data
Tips:
Only know the brand name?
get_google_platform_idfinds the advertiser ID and domain firstText ads are now supported in addition to image and video ads
Each ad may have multiple variations with different headlines and descriptions
Available MCP Tools
This MCP server provides tools for interacting with Google Ads Transparency Center objects:
Tool Name | Description |
| NEW - Finds a brand's advertiser IDs and domains by name or domain (one or many brands) |
| Retrieves currently running ads for a company (by domain or advertiser ID), plus what changed since the last fetch |
| Gets detailed information about a specific Google ad, including all variations and regional stats |
| Returns the ad image to the model for visual analysis |
| Analyzes a video ad with Gemini, straight from its YouTube URL (set |
| NEW - Step-by-step method for a research job (also served as prompts) |
| Gets statistics about cached media (images and videos) and storage usage |
| Searches previously analyzed media by brand, colors, people, or media type |
| Cleans up old cached media files to free disk space |
Troubleshooting
Common Issues
API Key Not Found Error:
Ensure your
.envfile is in the project root directoryIf you don't have a
.envfile, copy it from the template:cp .env.template .envCheck that your API keys are correctly formatted without quotes
Verify the
.envfile containsSCRAPECREATORS_API_KEY=your_key_hereFor video analysis, ensure
GEMINI_API_KEY=your_key_hereis also added
Video Analysis Not Working:
Confirm you have a valid Google Gemini API key in your
.envfileVideo analysis requires the
GEMINI_API_KEYenvironment variableIf Gemini says the model is not found, set
GEMINI_MODELin.envto a current model from Google's model list
MCP Server Connection Issues:
Verify the path in your MCP configuration points to the correct location
Make sure you've installed all dependencies with
pip install -r requirements.txtRestart Claude Desktop/Cursor after configuration changes
For additional Claude Desktop integration troubleshooting, see the MCP documentation. The documentation includes helpful tips for checking logs and resolving common issues.
Google Ads Specific Notes:
Only know the brand name?
get_google_platform_idfinds the advertiser ID and domain firstText ads are now supported in addition to image and video ads
Each ad may have multiple variations with different headlines and descriptions
FAQ
What is the easiest way to use the Google Ads Library MCP? The easiest way is the hosted version from Proxy (useproxy.dev). It requires no API keys, no installation, and no server — you connect it to ChatGPT, Claude, Cursor, or any MCP client and start querying immediately. You can start for free.
Do I need an API key to use this MCP?
Only if you self-host. The hosted version at useproxy.dev handles all data access for you, so no ScrapeCreators or Gemini keys are needed. Self-hosting requires a SCRAPECREATORS_API_KEY (and a Gemini key for video analysis).
Which MCP clients does it work with? The hosted version works with ChatGPT, Claude (desktop, web and mobile), Cursor, Manus and any other MCP client. The self-hosted version works with local MCP clients such as Claude Desktop, Claude Code and Cursor, or as a remote server with a bearer token (see Deploy to the cloud).
Is there a free version? Yes — the hosted version from Proxy offers a free tier so you can start analyzing ads without any setup.
Should I self-host or use the hosted version? Use the hosted version if you just want fast, reliable access to Google Ads Transparency Center data with zero maintenance — this fits most users. Self-host only if you want to modify or extend the server code yourself.
Feedback
Your feedback will be massively appreciated. Please tell us which features on that list you like to see next or request entirely new ones.
Related
Proxy hosted MCP: all four ad libraries in one hosted server, OAuth, no keys
Facebook Ads Library MCP (self-hosted)
LinkedIn Ads Library MCP (self-hosted)
TikTok Ads Library MCP (self-hosted)
License
This project is licensed under the MIT License.
Made with ❤️ by the team at Proxy.
Available Tools
9 toolsanalyze_ad_imageARead-only
Analyze a Google ad image: returns the image itself so you can see it, plus a checklist (text, hooks, people, brand elements, composition, colors). Pass one imageUrl from a get_google_ad_details variation. Downloads are cached locally.
Inputs: media_url (required), ad_id, brand_name.
analyze_ad_videoARead-only
REQUIRED for analyzing video ads from Google. Pass the youtubeUrl from get_google_ad_details (Gemini reads YouTube directly) or a direct video file URL. Extracts visual storytelling, audio elements, pacing, scene transitions, brand messaging, and marketing strategy insights. Uses intelligent caching for efficiency and includes comprehensive video analysis.
Inputs: media_url (required), ad_id, brand_name. Returns: result
cleanup_media_cacheB
REQUIRED for cleaning up old cached media files (images and videos) and freeing disk space. Use this tool when users want to remove old cached media, clean up storage space, or when cache becomes too large. Essential for cache maintenance and storage management.
Inputs: max_age_days. Returns: result
get_cache_statsARead-only
REQUIRED for checking media cache status and storage usage. Use this tool when users ask about cache statistics, storage space used by cached media (images and videos), or how many files have been analyzed and cached. Essential for cache management and monitoring.
Inputs: no named parameters. Returns: result
get_google_ad_detailsARead-only
Get detailed information about a specific Google ad including variations, regional stats, and impressions. Use this tool with the adUrl from get_google_ads to retrieve full ad details including all text variations, image URLs, headlines, and descriptions. Essential for analyzing ad content and extracting media URLs for visual analysis.
Inputs: ad_url (required). Returns: result
get_google_adsARead-only
Retrieve currently running ads for a company from Google Ads Transparency Center. Use this tool to get ads for a company using their domain (e.g., 'nike.com') or advertiser ID. You can filter by topic (including political ads) and region. The result's changes block lists ads first shown in the last 7 days and, when the same advertiser was fetched with the same filters 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or image content, you MUST also use analyze_ad_image on the imageUrl from each ad's details.
Inputs: limit, topic, cursor, domain, +2 more. Returns: result
get_google_platform_idARead-only
Find a brand's Google advertiser IDs and domains in the Google Ads Transparency Center: the first step before get_google_ads. Pass the bare brand name ("Purina") or the bare domain ("purina.com.mx"), never both and never a country or city. Results span all countries; pick the advertiser whose region matches the user's market. Several brands: pass one list.
Inputs: brand_name (required). Returns: result
get_playbookARead-only
Load a playbook: the step-by-step method for an ad research job (which tool calls, what to look for, output format). Call it BEFORE starting when the request matches a job, then follow it. Jobs:
competitor_teardown: competitors' Google Search, Display and YouTube ads: hooks, offers, angles and positioning
who_is_advertising: which businesses or prospects run Google ads; prospect lists for agencies and sellers
competitor_watch: tracking competitors' Google ads, what's new since last time, weekly updates
Inputs: job (required). Returns: result
search_cached_mediaARead-only
REQUIRED for finding previously analyzed ad media (images and videos) in cache. Use this tool when users want to search for cached media by brand name, find media with people, search by colors, or filter by media type. Essential for retrieving past analysis results without re-downloading media.
Inputs: limit, brand_name, has_people, media_type, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct step or resource: advertiser ID lookup, ad retrieval, ad details, image analysis, video analysis, cache inspection/search/cleanup, and playbook loading. get_google_ads and get_google_ad_details are the closest pair, but their descriptions clearly separate company-level ad listing from single-ad detail retrieval.
All names use snake_case with a leading verb (get_, analyze_, search_, cleanup_) and a clear noun phrase. There is no mixing of camelCase, vague verbs, or conflicting conventions.
Nine tools are well-scoped for a Google Ads Transparency research server, covering the core workflow plus necessary cache management. No tool appears redundant, and the set is neither too thin nor bloated.
The surface covers known-brand ad research end to end: advertiser lookup, ad retrieval, ad details, image/video analysis, cache operations, and guided playbooks. A minor gap remains for open-ended advertiser discovery or prospecting without a known brand/domain, and there is no export/reporting tool.
Maintenance
Related MCP Connectors
Google Ads MCP server: run Search, Display, Demand Gen and PMax campaigns from AI.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Google Ads MCP server — manage campaigns, keywords, and metrics.
Hosted MCP server for Google Ads and LinkedIn Ads analysis.
Related MCP Servers
- AlicenseBqualityDmaintenanceA powerful MCP server that enables parallel Google searching with multiple keywords simultaneously, providing structured results while handling CAPTCHAs and simulating user browsing patterns.1273MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides Google Search functionality with automatic API key rotation and intelligent quota management, enabling natural language search queries with advanced filtering options.136 npm1MIT
- AlicenseBqualityBmaintenanceAn MCP server that provides structured Google Search capabilities including web, images, news, videos, maps, and local places via the AceDataCloud SERP API. It enables AI clients to perform localized searches and retrieve detailed information from the Google Knowledge Graph.11447 PyPI1MIT
- AlicenseAqualityBmaintenanceAn 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.8419 PyPI14MIT