Complete Facebook Ads Library MCP with 15+ advanced tools for comprehensive ad intelligence
Project description
๐ฅ Facebook Ads Library MCP - Advanced Intelligence Platform
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
- Go to Facebook Graph API Explorer
- Generate access token with
ads_readpermission - (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 filtersdiscover_competitor_brands()- Find industry competitors automaticallyfind_similar_advertisers()- Discover brands with similar strategies
๐ Deep Analysis
analyze_ad_creative_elements()- AI-powered creative analysisanalyze_ad_performance_metrics()- Performance insights & KPIsanalyze_ad_targeting_insights()- Audience targeting analysis
๐ฏ Monitoring & Tracking
monitor_brand_ad_changes()- Real-time campaign monitoringtrack_ad_spend_estimation()- Budget tracking & estimation
๐ Competitive Intelligence
competitive_ad_analysis()- Multi-brand strategy comparisonbenchmark_against_industry()- Industry benchmarkingidentify_market_opportunities()- Market gap analysis
๐ฎ Prediction & Optimization
predict_ad_performance()- ML-powered performance predictiongenerate_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
- Setup Guide - Detailed installation instructions
- API Reference - Complete tool documentation
- Examples - Real-world use cases
- Troubleshooting - Common issues & solutions
๐ Changelog
See CHANGELOG.md for detailed version history.
๐ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: ramses.aguirre777@email.com
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- FastMCP for the excellent MCP framework
- Crawl4AI for AI-powered web crawling
- Facebook Graph API for providing access to ads data
โญ Star History
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_ramsesaguirre777_facebook_ads_library_mcp-1.0.0.tar.gz.
File metadata
- Download URL: iflow_mcp_ramsesaguirre777_facebook_ads_library_mcp-1.0.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6196dc411abc8028b20e548cc0d93865725291a5c4c4d234faaffc1bfcf6ad76
|
|
| MD5 |
d0237e9aa869c9226971dfcdb70c8f7a
|
|
| BLAKE2b-256 |
b70fcd1c7ce01cb5c0ee6eed0a8b15afda42d9fdebedd89138bc833e49f3ecce
|
File details
Details for the file iflow_mcp_ramsesaguirre777_facebook_ads_library_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_ramsesaguirre777_facebook_ads_library_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b859c813b54efa199b936819abbba44c9403d09849a81ad275c90e9fd159a173
|
|
| MD5 |
59ffc60e9e7148e5a9d30efd4971dea9
|
|
| BLAKE2b-256 |
1137792c398add2aebe6d4165838b5dbba44ecb033588c237fd2ba74a955e077
|