All About Ads MCP
Enables searching the Facebook (Meta) Ads Library by keyword or brand name, retrieving live ad copy, impressions, and platform details.
Enables searching the Google Ads Transparency Center to retrieve live ad copy, days active, formats, and regions across Search, Display, YouTube, and Shopping ads.
Enables fetching public Instagram profile data including follower counts, bio, and recent posts.
all-about-ads-mcp
An MCP (Model Context Protocol) server that gives AI agents live, structured ad intelligence across Facebook, Google, and Instagram — data that no base model can produce from training alone.
Powered by Apify actors. Works with any MCP-compatible client: Cursor, Claude, etc.
Demo

Related MCP server: google-ads-transparency-mcp
Why this MCP exists
A base AI model can tell you what lululemon's general marketing strategy looks like — based on articles it was trained on, months ago. It cannot tell you:
What ad copy is running right now on Facebook or Google
Whether a competitor started or stopped a campaign last week
Which countries a brand is targeting today
How long a specific ad has been active (
days_active)
This MCP fetches live truth, not remembered facts.
Capability | Base AI | This MCP + AI |
Brand's current ad copy | Guesses from old training | Live, exact headlines |
Ad volume for analysis | 1–3 examples at best | 10–100+ per run |
Cross-platform in one session | Impossible | FB + Google + IG + SERP |
Time an ad has been running | Unknown | Exact ( |
New market ad landscape | Outdated | Real-time, filterable by country |
Verify if brand is advertising | Assumption | Confirmed fact |
Research speed | One query at a time | Tools run in parallel — hundreds of ads across platforms in minutes |
Platform coverage

How results are handled
Tools run in parallel — an AI agent can fire off Facebook, Google, and Instagram scrapers simultaneously rather than waiting for each one to finish before starting the next. That's why a full multi-platform research session completes in minutes, not hours.
Scraper runs take 30 seconds to a few minutes. Raw payloads can be enormous, so the architecture keeps the AI's context window safe:

Full results are never sent to the model in one shot. The preview gives enough signal; read_saved_results provides paginated, filterable access to the rest.
Use cases
1. Competitive intelligence before a pitch
An agency pitching a new client can build a full picture in minutes instead of days:

No base AI can give you what's actually running today across all three platforms simultaneously.
2. Evergreen ad detection
The days_active field in Google Ads shows exactly how long each creative has been live. An ad running for 1,000+ days is a proven, high-converting asset. Use this to find what competitors refuse to turn off:

3. Market entry gap analysis
Before entering a new market, check who's already advertising there:

A base AI would guess based on 2023 data. This gives real-time confirmation.
4. PR crisis correlation
When a brand faces a scandal, do they pull ads or keep running? Track it in real time:

5. Ad creative pattern analysis at scale
Pull 100 ads from a fast-growing brand and let the AI find the formula:

This requires structured bulk data to reason over — not 3 examples recalled from training.
6. Political ad transparency
Track political advertising by region with verifiable, primary-source data:

7. Full brand research loop
The complete workflow an AI agent can run autonomously:

Project layout
all-about-ads-mcp/
├── src/
│ ├── server.py # FastMCP server instance
│ ├── tools.py # 6 MCP tool definitions
│ ├── storage.py # Result persistence + per-platform summarisers
│ └── resources.py # ads://about resource
├── main.py # Entry point (stdio transport)
├── pyproject.toml
└── uv.lockSetup
1. Install dependencies:
uv sync2. Configure your Apify API token:
cp .env.example .env
# edit .env and set APIFY_API_TOKEN=<your token>Get a free token at apify.com — the free tier covers light research use.
Connecting MCP clients
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"all-about-ads": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/all-about-ads-mcp", "main.py"],
"env": {
"APIFY_API_TOKEN": "your_apify_token_here"
}
}
}
}Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": {
"all-about-ads": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/all-about-ads-mcp", "main.py"],
"env": {
"APIFY_API_TOKEN": "your_apify_token_here"
}
}
}
}Windsurf
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"all-about-ads": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/all-about-ads-mcp", "main.py"],
"env": {
"APIFY_API_TOKEN": "your_apify_token_here"
}
}
}
}VS Code (with GitHub Copilot)
Add to your .vscode/mcp.json in the workspace root:
{
"servers": {
"all-about-ads": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/all-about-ads-mcp", "main.py"],
"env": {
"APIFY_API_TOKEN": "your_apify_token_here"
}
}
}
}Docker (any client)
If you prefer not to install Python/uv locally, run the pre-built container. The container communicates over stdio just like the native install:
Build the image:
docker build -t all-about-ads-mcp .Claude Desktop / Cursor / Windsurf config:
{
"mcpServers": {
"all-about-ads": {
"command": "docker",
"args": ["run", "--rm", "-i", "-e", "APIFY_API_TOKEN", "all-about-ads-mcp"],
"env": {
"APIFY_API_TOKEN": "your_apify_token_here"
}
}
}
}
-iis required (stdin must stay open for stdio transport). Do not use-t(no TTY needed).
Publishing to MCP directories
Smithery
Smithery reads the smithery.yaml in this repo automatically. To publish:
Push this repo to GitHub
Go to smithery.ai → Submit a server → paste your GitHub URL
Smithery reads
smithery.yamland handles deployment — users configure theirAPIFY_API_TOKENin the Smithery UI
Glama
Glama indexes public GitHub repos. To publish:
Push this repo to GitHub (public)
Go to glama.ai/mcp/servers → Add Server → paste your GitHub URL
mcpservers.org
mcpservers.org is a community directory. To submit:
Push to GitHub
Go to mcpservers.org/submit and fill in the form
Tools
search_facebook_ads
Search the Facebook (Meta) Ads Library by keyword or brand name.
Parameter | Type | Default | Description |
|
| required | Keywords or brand names |
|
|
| Min 10 (actor limit) |
|
|
| Extra per-ad details (slower) |
|
|
| Or |
|
|
| ISO code e.g. |
|
|
| e.g. |
|
|
| e.g. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns: file_path, result_count, queries, ads (compact preview)
search_google_ads
Search the Google Ads Transparency Center — covers Search, Display, YouTube, and Shopping ads.
Parameter | Type | Default | Description |
|
| required | Brand names, domains ( |
|
|
|
|
|
|
|
|
|
|
| 2-letter ISO code e.g. |
|
|
| Restrict to political/election ads |
Returns: file_path, result_count, advertisers, ads (compact preview with days_active, headline, format, regions, destination_url)
search_instagram_profiles
Fetch public Instagram profile data including follower counts, bio, and recent posts.
Parameter | Type | Default | Description |
|
| required | Instagram usernames e.g. |
|
|
| Also fetch recent posts |
Returns: file_path, result_count, profiles (compact preview with followers, bio, verified status)
search_google
Search Google for organic results — use for brand research, news, and context about ads you've discovered.
Parameter | Type | Default | Description |
|
| required | Search queries |
|
|
| Each page ≈ 10 results |
|
|
| Range: 10–100 |
|
|
| e.g. |
|
|
| e.g. |
|
|
|
|
Returns: file_path, result_count (individual URLs), queries, results (compact preview)
list_saved_results
List all previously saved result files with path, size, item count, tool name, and queries. No Apify call — instant.
read_saved_results
Read a slice of items from a saved file — fast access without re-running scrapers.
Parameter | Type | Default | Description |
|
| required | Path or bare filename from |
|
|
| First item index |
|
|
| Max items to return |
|
|
| Project only these top-level keys |
|
|
| Case-insensitive substring filter across item JSON |
Resources
ads://about— full parameter reference for all tools, readable by the AI agent at session start.
Available Tools
11 toolscheck_run_statusARead-only
Check the current status of one or more background Apify scrape runs.
Returns done and succeeded flags for each run so you know when to call collect_scrape_results.
Inputs: run_ids (required). Returns: result
collect_scrape_resultsA
Collect and save results from a completed background Apify scrape run.
The run must have SUCCEEDED — check with check_run_status first. Results are saved to a file and a compact preview is returned inline, identical to the blocking search_* tools.
Inputs: run_id (required). Returns: meta, items, offset, returned, +2 more
list_saved_resultsARead-only
List all result files saved from previous scraper runs.
Returns one entry per file with path, size, item count, tool name, and queries. No Apify call is made — this is instant. Use read_saved_results to read items.
Inputs: no named parameters. Returns: result
read_saved_resultsARead-only
Read a paginated slice of items from a previously saved scraper results file.
Results files can be very large. Read in small pages and project only the fields you need to stay within context limits.
Inputs: file_path (required), limit, query, fields, +1 more. Returns: meta, items, offset, returned, +2 more
search_facebook_adsARead-only
Search the Facebook Ads Library for live ads matching the given queries.
Runs a remote scraper (30s–few minutes). Full results are saved to a JSON file; only a compact preview is returned inline. Use read_saved_results to page through the full dataset without flooding context.
Inputs: search_queries (required), ad_type, country, sort_by, +8 more. Returns: ads, queries, file_path, result_count
search_googleARead-only
Search Google for organic results to research brands, news, and ad context.
Runs a remote scraper (30s–few minutes). Full results are saved to a JSON file; only a compact preview is returned inline. Use read_saved_results to page through the full dataset without flooding context.
Inputs: queries (required), country_code, search_language, quick_date_range, +2 more. Returns: queries, results, file_path, result_count
search_google_adsARead-only
Search the Google Ads Transparency Center for live ads by advertiser name or domain.
Returns headlines, formats, regions, days_active, and destination URLs. Runs a remote scraper (30s–few minutes). Full results are saved to a JSON file; only a compact preview is returned inline. Use read_saved_results to page through the full dataset without flooding context.
Inputs: advertisers (required), region, end_date, start_date, +2 more. Returns: ads, queries, file_path, result_count
search_instagram_profilesARead-only
Fetch public Instagram profile data including follower counts, bio, and recent posts.
Runs a remote scraper (30s–few minutes). Full results are saved to a JSON file; only a compact preview is returned inline. Use read_saved_results to page through the full dataset without flooding context.
Inputs: profiles (required), include_recent_posts. Returns: profiles, file_path, result_count
start_facebook_ads_scrapeA
Start a Facebook Ads Library scrape in the background and return a run_id immediately.
Use this instead of search_facebook_ads when running multiple scrapers in parallel. Call check_run_status to monitor progress, then collect_scrape_results once SUCCEEDED.
Inputs: search_queries (required), ad_type, country, sort_by, +8 more. Returns: hint, run_id, status
start_google_ads_scrapeA
Start a Google Ads Transparency Center scrape in the background and return a run_id immediately.
Use this instead of search_google_ads when running multiple scrapers in parallel. Call check_run_status to monitor progress, then collect_scrape_results once SUCCEEDED.
Inputs: advertisers (required), region, end_date, start_date, +2 more. Returns: hint, run_id, status
start_instagram_scrapeA
Start an Instagram profile scrape in the background and return a run_id immediately.
Use this instead of search_instagram_profiles when running multiple scrapers in parallel. Call check_run_status to monitor progress, then collect_scrape_results once SUCCEEDED.
Inputs: profiles (required), include_recent_posts. Returns: hint, run_id, status
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose: managing background runs, retrieving results, or searching specific ad platforms. The blocking vs. async variants are well-differentiated by their names and descriptions.
All tools follow a consistent verb_noun pattern with lowercase underscores (e.g., search_facebook_ads, start_google_ads_scrape, collect_scrape_results). No mixing of conventions.
11 tools cover the essential operations for an ad scraping server: searches (blocking and async) for multiple platforms, status checking, result collection, and saved results management. The count feels well-scoped.
The tool surface covers the full lifecycle of ad scraping—search, async start, status, collect, list, read. Missing are a delete or cancel capability, but these are minor given the domain.
Related MCP Connectors
Hosted MCP server for marketing agencies: connect Google Ads, GA4, Search Console, Meta, LinkedIn and more to Claude or ChatGPT. Pull reports and make changes via OAuth login, no setup.
Hosted Meta Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Google Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
An MCP for marketers that gives agents tools for SEO, AEO, socials and ads data. Generous free tier; works in Claude, ChatGPT, Cursor and other MCP clients.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for AI agents to manage ad campaigns across Google, Meta, LinkedIn, Microsoft, Reddit, TikTok, and more21445 npm21MIT
- 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.8614 PyPI14MIT
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that lets AI assistants run your Meta Ads end to end — launch campaigns, upload creatives, update budgets, and dig into performance through natural conversation. Works across Facebook, Instagram, and other Meta surfaces.Business Source 1.1
- AlicenseAqualityDmaintenanceMCP server that wraps the Meta Marketing API (Graph API v25.0) as semantic tools for LLM agents.181MIT