Automation and scraping · Independent · 20 Oct 2026

RamsesAguirre777/facebook-ads-library-mcp

Free, self-hosted MCP server that scrapes the public Facebook Ad Library (no API token) for competitive ad research — advertiser, copy, landing pages, CTAs, any country.

← Automation and scraping

In simple English

This tool lets your AI assistant search and read public Facebook ads directly. It looks at the same web page you see in your browser. You do not need a Facebook account or a paid subscription to an ad spy tool. It pulls the ad copy, the destination web page and the button labels. The AI can then group the ads by advertiser and summarize their marketing angles.

What it is

A Model Context Protocol (MCP) server written in Python that automates a headless browser to scrape the public Facebook Ad Library. It parses the page markup to extract structured ad records without relying on Meta's restricted commercial API.

What it is good for

Solo builders and marketers who want to research competitor ads and landing pages from inside their AI coding assistant or desktop chat app.

Stars276
LicenceMIT
LatestNo tagged releasechecked 20 Oct 2026
Last code change2026-08-29
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Free and open-source under the MIT licence with no API keys required.
  • Extracts structured data including ad copy, button labels and destination links.
  • Integrates directly into AI clients like Claude Code and Claude Desktop.
Watch for
  • Requires Python, a headless browser installation and manual configuration files.
  • Subject to breaking if Facebook changes its web page layout.
  • Does not provide spend or impression data, which Meta hides for commercial ads.
Replaces

Paid ad library scrapers like Apify actors or manual browser research

Works well with

Claude Desktop

Similar repositories
  • unclecode/crawl4ai86k stars

    The underlying open-source web crawler used to fetch and render JavaScript pages for AI agents.

  • modelcontextprotocol/servers91k stars

    A collection of official server integrations for the Model Context Protocol ecosystem.

Also reviewed on Repo Radar
  • scrapy/scrapy65k stars

    A Python framework for fetching and parsing large numbers of web pages.

  • PrefectHQ/prefect24k stars

    Adds scheduling, retries and a run history to Python functions you already have.

  • alirezamika/autoscraper8.1k stars

    A Python scraper that learns what to extract from one example you give it.

Install
git clone https://github.com/RamsesAguirre777/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
python -m playwright install chromium

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Data & Research › Market & Competitive Research › Competitor Tracking.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.