facebook-ads-library-mcp

RamsesAguirre777/facebook-ads-library-mcp

3.2

If you are the rightful owner of facebook-ads-library-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Facebook Ads Library MCP is an advanced intelligence platform designed to provide comprehensive insights into Facebook advertising strategies, leveraging the power of the Model Context Protocol (MCP) and AI technologies.

Tools
  1. search_facebook_ads

    Advanced search with multiple filters

  2. analyze_ad_creative_elements

    AI-powered creative analysis

  3. predict_ad_performance

    ML-powered performance prediction

šŸ”„ Facebook Ads Library MCP - Advanced Intelligence Platform

Python 3.8+ FastMCP License: MIT Status: Active

The most powerful Facebook Ads Library MCP server with 15+ advanced tools for competitive intelligence, market analysis, and advertising insights. Built with FastMCP and completely FREE.

🌟 Why This MCP?

Beats paid services like ScrapeCreators ($497/month) with:

  • āœ… 15+ Advanced Tools vs their 5-6 basic ones
  • āœ… AI-Powered Creative Analysis (they don't have this)
  • āœ… ML Performance Prediction (they don't have this)
  • āœ… Direct API Access (no proxy limitations)
  • āœ… 100% Free & Open Source (vs $497/month)
  • āœ… Complete Customization (add your own features)

šŸš€ Quick Start

1. Installation

git clone https://github.com/RamsesAguirre777/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
pip install -r requirements.txt

2. Get Facebook Access Token

  1. Go to Facebook Graph API Explorer
  2. Generate access token with ads_read permission
  3. (Optional) Extend token to 60 days

3. Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "facebook_ads": {
      "command": "python",
      "args": [
        "/path/to/facebook-ads-library-mcp/facebook_ads_mcp_complete.py",
        "--facebook-token",
        "YOUR_FACEBOOK_ACCESS_TOKEN"
      ]
    }
  }
}

4. Restart Claude Desktop

šŸ› ļø 15+ Advanced Tools

šŸ” Search & Discovery

  • search_facebook_ads() - Advanced search with multiple filters
  • discover_competitor_brands() - Find industry competitors automatically
  • find_similar_advertisers() - Discover brands with similar strategies

šŸ“Š Deep Analysis

  • analyze_ad_creative_elements() - AI-powered creative analysis
  • analyze_ad_performance_metrics() - Performance insights & KPIs
  • analyze_ad_targeting_insights() - Audience targeting analysis

šŸŽÆ Monitoring & Tracking

  • monitor_brand_ad_changes() - Real-time campaign monitoring
  • track_ad_spend_estimation() - Budget tracking & estimation

šŸ† Competitive Intelligence

  • competitive_ad_analysis() - Multi-brand strategy comparison
  • benchmark_against_industry() - Industry benchmarking
  • identify_market_opportunities() - Market gap analysis

šŸ”® Prediction & Optimization

  • predict_ad_performance() - ML-powered performance prediction
  • generate_facebook_intelligence_report() - Comprehensive reports

šŸ› ļø Utilities

  • export_facebook_ads_data() - Export in JSON/CSV/Markdown

šŸ’” Usage Examples

Basic Competitive Analysis

# In Claude Desktop
"Analyze Nike's current Facebook advertising strategy"
"Compare ad strategies between Tesla and BMW"
"Generate a complete intelligence report for Airbnb"

Advanced Market Research

# Discover competitors
"Find all fitness app companies advertising on Facebook"

# Market opportunities
"Identify advertising gaps in the fintech industry"

# Performance prediction
"Predict performance for this ad: 'Get fit in 30 days with our AI trainer'"

Monitoring & Alerts

# Track competitor changes
"Monitor Apple for new ad campaigns and alert me if they launch 5+ new ads"

# Spend tracking
"Estimate Shopify's monthly Facebook ad spend"

šŸ”§ Advanced Configuration

Environment Variables

# Create .env file
echo "FACEBOOK_ACCESS_TOKEN=your_token_here" > .env

Multiple Regions

{
  "mcpServers": {
    "facebook_ads_us": {
      "command": "python",
      "args": ["facebook_ads_mcp_complete.py", "--facebook-token", "US_TOKEN"]
    },
    "facebook_ads_eu": {
      "command": "python", 
      "args": ["facebook_ads_mcp_complete.py", "--facebook-token", "EU_TOKEN"]
    }
  }
}

šŸ“ˆ Performance Comparison

FeatureScrapeCreatorsOur MCPSavings
Monthly Cost$497$0$497/month
Facebook Tools5-6 basic15+ advanced3x more
Creative AnalysisāŒāœ… AI-poweredExclusive
Performance PredictionāŒāœ… ML-basedExclusive
Rate LimitsRestrictedDirect APIUnlimited
CustomizationāŒāœ… Full controlInfinite

šŸ—ļø Architecture

Facebook Ads Library MCP
ā”œā”€ā”€ Core API Wrapper
│   ā”œā”€ā”€ Authentication & Rate Limiting
│   └── Error Handling & Retry Logic
ā”œā”€ā”€ Search & Discovery Engine
│   ā”œā”€ā”€ Advanced Filtering
│   └── Competitor Discovery
ā”œā”€ā”€ AI Analysis Engine
│   ā”œā”€ā”€ Creative Element Analysis
│   └── Performance Prediction
ā”œā”€ā”€ Monitoring System
│   ā”œā”€ā”€ Real-time Change Detection
│   └── Alert System
└── Export & Reporting
    ā”œā”€ā”€ Multiple Format Support
    └── Executive Reports

šŸ”’ Security & Privacy

  • No Data Storage - All data processed in real-time
  • Direct API Access - No proxy servers or data logging
  • Open Source - Complete transparency
  • Local Processing - Your data stays on your machine

šŸ¤ Contributing

We welcome contributions! Please see our for details.

Development Setup

git clone https://github.com/RamsesAguirre777/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements-dev.txt

šŸ“– Documentation

  • - Detailed installation instructions
  • - Complete tool documentation
  • - Real-world use cases
  • - Common issues & solutions

šŸ”„ Changelog

See for detailed version history.

šŸ†˜ Support

šŸ“„ License

This project is licensed under the MIT License - see the file for details.

šŸ™ Acknowledgments

⭐ Star History

Star History Chart


šŸ”„ Built with passion for the MCP community šŸ”„

Twitter • GitHub • LinkedIn