facebook-ads-library-mcp is a Model Context Protocol (MCP) server for the Facebook Ads Library. It allows users to search Facebook's public ads library through MCP clients (such as Claude Desktop, Cursor, etc.), find ads by company or brand, or search all advertisers by keyword, view currently running ads and analyze their advertising strategies.
Main capabilities include: analyzing ad images and text; analyzing video ads and providing comprehensive insights; comparing advertising strategies of different companies; tracking new ads published by competitors since last week; and obtaining insights into ad campaign performance. Version v1.2 adds the ability to pass brand names directly to get_meta_ads, keyword search support for long-running and newest ads (min_duration_days, sort_by), and eleven built-in research playbooks, such as script_writing, competitor_teardown, product_hunt, validate, digital_offer, who_is_advertising, ad_audit, creative_refs, holiday_teardown, competitor_watch, and contact_sheet.
Usage: The hosted version Proxy (useproxy.dev) is recommended; it requires no installation and no API key, supports any MCP client such as ChatGPT, Claude, Cursor, and Manus, and offers 20 free credits per day. The self-hosted version requires cloning the repository, creating a virtual environment, installing dependencies, configuring API keys (SCRAPECREATORS_API_KEY is required, GEMINI_API_KEY is optional for video analysis), and then adding the MCP server configuration to the Claude Desktop or Cursor configuration file. It can also be deployed to the cloud as a remote MCP server, which requires setting MCP_AUTH_TOKEN (at least 16 characters).
Use cases: advertising strategy analysis, competitor tracking, ad creative references, market research, etc. Limitations: the self-hosted version covers only the Facebook platform, each call incurs a ScrapeCreators fee(about $1.88 per 1,000 calls, with the first 100 free), and its features are less comprehensive than the hosted version; video analysis requires a Gemini API key; the server sends anonymous telemetry data (which can be disabled with PROXY_TELEMETRY=0). The project uses the MIT license.