
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A Model Context Protocol server for searching and analyzing the Facebook Ads Library, with a documented self-host option and a hosted Proxy variant.
Facebook Ads Library MCP Server is cataloged as an MCP server attributed to trypeggy. A Model Context Protocol server for searching and analyzing the Facebook Ads Library, with a documented self-host option and a hosted Proxy variant. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Facebook Ads Library MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Only if you self-host; the hosted version handles data access, while self-hosting requires a ScrapeCreators key and a Gemini key for video analysis.
The README recommends the hosted version for most users and self-hosting only if you want to modify or extend the server code yourself.
The self-hosted server covers Meta (Facebook, Instagram) only, while the hosted Proxy covers Meta, Google, LinkedIn, and TikTok (EU).
readme.md · f147caa6e087 · Fetched 2026-11-13 13:05:37 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
[!TIP] 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 →
[!WARNING] This repo is the open-source, self-hosted Facebook 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 Facebook Ads Library.
With this you can search Facebook's public ads library 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.
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
The easiest way to use the Facebook 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.
👉 Get started for free at useproxy.dev →
Prefer to run it yourself? The full self-host setup is documented below.
| Hosted: Proxy (useproxy.dev) | Self-host (this repo) | |
|---|---|---|
| Ad libraries | Meta, Google, LinkedIn and TikTok (EU) in one server | Meta (Facebook, Instagram) 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 |
| 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; git pull for updates |
| Best for | Marketers, agencies, teams | Developers who want to change the code |
Need another platform? The other self-hosted servers: Google · LinkedIn · TikTok. Or get all four in one connection with hosted Proxy. Comparison and setup for all four: useproxy.dev/self-host.
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.
Compare the current advertising strategies across Nike, Adidas, and Under Armour. Show me their ad volumes, messaging themes, and creative approaches.
Do a deep comparison to the messaging between 'AnthropicAI', 'Perplexity AI' and 'OpenAI'. Give it a nice forwardable summary.
Analyze the holiday campaign strategies for Coca-Cola, Pepsi, Dr Pepper, and Sprite. What themes are they using?
Get the current ads for all major streaming services: Netflix, Disney+, Hulu, HBO Max, Amazon Prime Video, and Apple TV+. Compare their positioning strategies.
python -m pip installSCRAPECREATORS_API_KEY (see configuration below)Prefer not to deal with API keys? See the Hosted Version above to skip setup entirely.
git clone https://github.com/proxy-intell/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
# For macOS/Linux:
./install.sh
# For Windows:
install.bat
The install script will:
.env file that was created and add your API keys:SCRAPECREATORS_API_KEYIf you prefer to install manually:
git clone https://github.com/proxy-intell/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
SCRAPECREATORS_API_KEY in the .env file{{PATH_TO_PROJECT}} with the full path to where you cloned this repository.
Note: The configuration uses the virtual environment's Python interpreter (venv/bin/python) for better dependency isolation and reliability.
Note: API keys are now automatically loaded from the .env file, so you don't need to pass them as command line arguments.
For Claude Desktop:
Save this as claude_desktop_config.json in your Claude Desktop configuration directory at:
For Cursor:
Save this as mcp.json in your Cursor configuration directory at:Run it as a remote MCP server so Cursor, Claude Code or Claude Desktop can reach it from anywhere.
SCRAPECREATORS_API_KEY (and GEMINI_API_KEY for video). Render generates MCP_AUTH_TOKEN for you.https://<your-service>.onrender.com/mcp/. Every request needs the header Authorization: Bearer <MCP_AUTH_TOKEN>.claude mcp add --transport http facebook-ads https://<your-service>.onrender.com/mcp/ --header "Authorization: Bearer <MCP_AUTH_TOKEN>"Any Docker host works the same way:
docker build -t facebook-ads-library-mcp .
docker run -p 8000:8000 -e MCP_TRANSPORT=http -e MCP_AUTH_TOKEN=<long-random-string> -e SCRAPECREATORS_API_KEY=<key> facebook-ads-library-mcp
The 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.
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.
This MCP server provides tools for interacting with Facebook Ads library objects:
| Tool Name | Description | Batch Support |
|---|---|---|
get_meta_platform_id | Returns platform ID given one or many brand names | ✅ Multiple brands |
get_meta_ads | Retrieves ads for specific page(s) (platform ID) | ✅ Multiple platform IDs |
analyze_ad_image | Analyzes ad images for visual elements, text, colors, and composition | ⚡ Enhanced caching |
analyze_ad_video | Analyzes single ad video using Gemini AI for comprehensive insights | ⚡ Enhanced caching |
analyze_ad_videos_batch | NEW - Analyzes multiple videos in single API call for token efficiency | 🎬 ~88% token savings |
get_cache_stats | Gets statistics about cached media (images and videos) and storage usage | - |
search_cached_media | Searches previously analyzed media by brand, colors, people, or media type | - |
cleanup_media_cache | Cleans up old cached media files to free disk space | - |
🆕 API Credits Exhausted:
🆕 Rate Limit Exceeded:
API Key Not Found Error:
.env file is in the project root directory.env file, copy it from the template: cp .env.template .env.env file contains SCRAPECREATORS_API_KEY=your_key_hereGEMINI_API_KEY=your_key_here is also addedVideo Analysis Not Working:
.env fileGEMINI_API_KEY environment variableMCP Server Connection Issues:
python3 -m venv venv && ./venv/bin/pip install -r requirements.txt/venv/bin/python)For additional Claude Desktop integration troubleshooting, see the MCP documentation. The documentation includes helpful tips for checking logs and resolving common issues.
What is the easiest way to use the Facebook 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 Facebook Ads Library data with zero maintenance — this fits most users. Self-host only if you want to modify or extend the server code yourself.
Your feedback will be massively appreciated. Please tell us which features on that list you like to see next or request entirely new ones.
This project is licensed under the MIT License.
Made with ❤️ by the team at Proxy.

Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Facebook Ads Library MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/facebook-ads-library-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.