MCP Catalogs
Homefacebook-ads-library-mcp screenshot

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.

web-scrapingai-llmproductivity
29
Forks
0
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Competitive analysis by comparing advertising strategies across multiple companies
you:Media monitoring to track competitor campaigns and messaging
you:Market research to identify advertising trends in specific industries
you:What API keys do I need?
you:How do I handle API credit exhaustion?

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 README
  • get_meta_platform_id

    Returns platform ID given one or many brand names

  • get_meta_ads

    Retrieves ads for specific page(s) (platform ID)

  • analyze_ad_image

    Analyzes ad images for visual elements, text, colors, and composition

  • analyze_ad_video

    Analyzes single ad video using Gemini AI for comprehensive insights

  • analyze_ad_videos_batch

    Analyzes multiple videos in single API call for token efficiency

  • get_cache_stats

    Gets statistics about cached media 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

Comparable tools

ad-library-explorersocial-media-analytics-mcpmarketing-insights-tool

Installation

Quick Install

  1. **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
  1. **Configure your API keys**

Edit the .env file with your ScrapeCreators API key and optional Gemini API key.

  1. **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"
      ]
    }
  }
}
  1. **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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.