facebook-ads-library-mcp
by proxy-intell·★ 225·Score 49
Facebook Ads Library MCP server for querying and analyzing advertising campaigns with batch processing and video analysis capabilities.
Overview
This MCP server provides access to Facebook's public ads library, allowing users to search for any company's current ad campaigns. It features batch processing capabilities for querying multiple brands simultaneously, smart credit management for API costs, and enhanced video analysis using Google's Gemini AI. The server includes intelligent caching and request deduplication for improved performance, while maintaining backward compatibility with existing workflows.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you need to analyze Facebook ad campaigns at scale, especially when comparing multiple brands or performing video ad analysis.
When NOT to choose this
Don't choose this if you need to analyze ads from platforms other than Facebook, or if you can't/won't use third-party APIs requiring paid credits.
Tools this server exposes
8 tools extracted from the READMEget_meta_platform_idReturns platform ID given one or many brand names
get_meta_adsRetrieves ads for specific page(s) (platform ID)
analyze_ad_imageAnalyzes ad images for visual elements, text, colors, and composition
analyze_ad_videoAnalyzes single ad video using Gemini AI for comprehensive insights
analyze_ad_videos_batchAnalyzes multiple videos in single API call for token efficiency
get_cache_statsGets statistics about cached media and storage usage
search_cached_mediaSearches previously analyzed media by brand, colors, people, or media type
cleanup_media_cacheCleans up old cached media files to free disk space
Comparable tools
Installation
Quick Install
- **Clone and run the install script**
git clone http://github.com/talknerdytome-labs/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
# For macOS/Linux:
./install.sh
# For Windows:
install.bat- **Configure your API keys**
Edit the .env file with your ScrapeCreators API key and optional Gemini API key.
- **Add MCP configuration to Claude Desktop**
Save as claude_desktop_config.json in your Claude Desktop config directory:
{
"mcpServers": {
"fb_ad_library": {
"command": "{{PATH_TO_PROJECT}}/facebook-ads-library-mcp/venv/bin/python",
"args": [
"{{PATH_TO_PROJECT}}/facebook-ads-library-mcp/mcp_server.py"
]
}
}
}- **Restart Claude Desktop**
FAQ
- What API keys do I need?
- You need a ScrapeCreators API key required for accessing the Facebook Ads Library. Optionally, you can add a Google Gemini API key for enhanced video analysis capabilities.
- How do I handle API credit exhaustion?
- When credits are exhausted, the server will provide a direct link to the ScrapeCreators dashboard where you can purchase additional credits. The server will automatically resume working once credits are available.
Compare facebook-ads-library-mcp with
Last updated · Auto-generated from public README + GitHub signals.