Labsco
trypeggy logo

Facebook Ads Library

β˜… 253

from trypeggy

Get any answer from the Facebook Ads Library, conduct deep research including messaging, creative testing and comparisons in seconds.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedPaid serviceAdvanced setup

Proxy β€” Facebook Ads Library Hosted MCP

Facebook Ads Library MCP Server

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


Hosted Version

Don't want to manage API keys or run anything yourself? Proxy offers a fully hosted version of this MCP β€” no setup, no infrastructure, no separate ads data subscription.

  • Works out of the box in ChatGPT, Claude, Manus, and anywhere else that supports MCP
  • Nothing to install or configure β€” just connect and start querying
  • Start for free here

If you'd rather self-host, the full setup instructions are below.


Example Prompts

Single Brand Analysis

Copy & paste β€” that's it
How many ads is 'AnthropicAI' running? What's their split across video and image?
Copy & paste β€” that's it
What messaging is 'AnthropicAI' running right now in their ads?
Copy & paste β€” that's it
Analyze the video ads from 'Nike' and extract their visual storytelling strategy, pacing, and brand messaging techniques.

Batch Analysis (New!)

Copy & paste β€” that's it
Compare the current advertising strategies across Nike, Adidas, and Under Armour. Show me their ad volumes, messaging themes, and creative approaches.
Copy & paste β€” that's it
Do a deep comparison to the messaging between 'AnthropicAI', 'Perplexity AI' and 'OpenAI'. Give it a nice forwardable summary.
Copy & paste β€” that's it
Analyze the holiday campaign strategies for Coca-Cola, Pepsi, Dr Pepper, and Sprite. What themes are they using?
Copy & paste β€” that's it
Get the current ads for all major streaming services: Netflix, Disney+, Hulu, HBO Max, Amazon Prime Video, and Apple TV+. Compare their positioning strategies.

Technical Details

  1. Claude sends requests to the Python MCP server
  2. The MCP server intelligently batches and optimizes queries to the ads data API
  3. Smart caching reduces redundant API calls and improves performance
  4. Credit monitoring prevents workflow interruption with proactive error handling
  5. Data flows back through the chain to Claude with enhanced batch information

Available MCP Tools (Enhanced)

This MCP server provides tools for interacting with Facebook Ads library objects:

Tool NameDescriptionBatch Support
get_meta_platform_idReturns platform ID given one or many brand namesβœ… Multiple brands
get_meta_adsRetrieves ads for specific page(s) (platform ID)βœ… Multiple platform IDs
analyze_ad_imageAnalyzes ad images for visual elements, text, colors, and composition⚑ Enhanced caching
analyze_ad_videoAnalyzes single ad video using Gemini AI for comprehensive insights⚑ Enhanced caching
analyze_ad_videos_batchNEW - Analyzes multiple videos in single API call for token efficiency🎬 ~88% token savings
get_cache_statsGets statistics about cached media (images and videos) 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-

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.


License

This project is licensed under the MIT License.

License Python