Facebook Ads Library MCP

Facebook Ads Library MCP

Enables competitive intelligence, market analysis, and advertising insights by providing 15+ advanced tools to search, analyze, monitor, and predict Facebook ad performance.

Category
Visit Server

README

🔥 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

Feature ScrapeCreators Our MCP Savings
Monthly Cost $497 $0 $497/month
Facebook Tools 5-6 basic 15+ advanced 3x more
Creative Analysis AI-powered Exclusive
Performance Prediction ML-based Exclusive
Rate Limits Restricted Direct API Unlimited
Customization Full control Infinite

🏗️ 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 Contributing Guide 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

🔄 Changelog

See CHANGELOG.md for detailed version history.

🆘 Support

📄 License

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

🙏 Acknowledgments

Star History

Star History Chart


<div align="center"> <h3>🔥 Built with passion for the MCP community 🔥</h3> <p> <a href="https://twitter.com/RamsesAguirre777">Twitter</a> • <a href="https://github.com/RamsesAguirre777">GitHub</a> • <a href="https://linkedin.com/in/RamsesAguirre777">LinkedIn</a> </p> </div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured