1. Conduid
  2. Social
  3. Facebook Ads Library
MCP server · Social

Facebook Ads Library

Get any answer from the Facebook Ads Library, conduct deep research including messaging, creative testing and comparisons in seconds.

77Good

Scored 22 hours ago · breakdown

About Facebook Ads Library

Facebook Ads Library is an MCP server published by trypeggy in the Social category: get any answer from the Facebook Ads Library, conduct deep research including messaging, creative testing and comparisons in seconds. Conduid read 9 tools from its source: analyze_ad_image, analyze_ad_video, cleanup_media_cache, get_cache_stats, get_meta_ads, get_meta_platform_id and 3 more. It is published to npm as @proxy-intell/facebook-ads-library-mcp and starts with npx.

The repository has 332 stars and 45 forks, and its last commit was on 30 Nov 2026. The latest release is v1.1.0 (20 Nov 2026): 331 of you starred this repo, and video analysis had quietly stopped working. The release before it was v1.0.0 (11 Aug 2026). It passes all 1 static checks Conduid ran on the repository. Its topics include analytics, api, facebook, facebook-api, github and marketing.

Install

Claude Code
claude mcp add facebook-ads-library -- npx -y @proxy-intell/facebook-ads-library-mcp
npx
npx -y @proxy-intell/facebook-ads-library-mcp
From source
git clone https://github.com/trypeggy/facebook-ads-library-mcp

Tools (9)

analyze_ad_imageReturns the ad image to the model for visual analysis
ParameterTypeDescription
ad_idstringOptional ad ID, used for the ad library link.
brand_namestringOptional brand name for cache organization.
media_url *stringThe image URL from a get_meta_ads or search_meta_ads_by_keyword result.
analyze_ad_videoAnalyzes an ad video with Gemini (set `GEMINI_MODEL` to change the model)
ParameterTypeDescription
ad_idstringOptional ad ID for tracking purposes.
brand_namestringOptional brand name for cache organization.
media_url *stringThe direct URL to the Facebook ad video to analyze.
cleanup_media_cacheCleans up old cached media files to free disk space
ParameterTypeDescription
max_age_daysintegerMaximum age in days before media files are deleted (default: 30)
get_cache_statsGets statistics about cached media (images and videos) and storage usage
get_meta_adsRetrieves ads for page IDs or brand names, plus what changed since the last fetch
ParameterTypeDescription
brand_namestringAlias for platform_ids.
brand_namesanyAlias for platform_ids.
countrystringOptional country code to filter ads by geographic targeting. Examples: "US", "CA", "GB", "AU". If not provided, returns ads from all countries.
limitintegerMaximum number of ads to retrieve per platform ID (default: 50, max: 500). Higher limits allow comprehensive brand analysis but may take longer to process.
platform_idsanySingle platform ID (str) or list of platform IDs (List[str]) obtained from get_meta_platform_id, or brand names, each resolved to its top-ranked page. Examples: "123456789", ["123456789", "987654321"], ["Nike", "Adidas"]
trimbooleanWhether to trim the response to essential fields only (default: True). Set to False to get full ad metadata including targeting details.
get_meta_platform_idReturns platform ID given one or many brand names
ParameterTypeDescription
brand_names *anySingle brand name (str) or list of brand names (List[str]) to search for. Examples: "Nike", ["Nike", "Coca-Cola", "Apple"]
get_playbookStep-by-step method for one of eleven research jobs (also served as prompts)
ParameterTypeDescription
job *string
search_cached_mediaSearches previously analyzed media by brand, colors, people, or media type
ParameterTypeDescription
brand_namestringFilter by exact brand name match
color_containsstringFilter by dominant color (partial match, e.g., "red", "blue")
has_peoplebooleanFilter by presence of people in media (True/False)
limitintegerMaximum number of results to return (default: 20)
media_typestringFilter by media type ('image' or 'video')
search_meta_ads_by_keywordSearches every advertiser's ads by keyword, country, format, date, run time (`min_duration_days`); sorts include `longest_running` and `newest`
ParameterTypeDescription
countrystringTwo-letter country code, e.g. "US". Default: all countries.
end_datestringOnly ads shown up to this date, YYYY-MM-DD.
limitintegerMax ads to return (default 30, max 150). Each page of results is one ScrapeCreators credit.
media_typestring"all" (default), "image" (stills and carousels) or "video".
min_duration_daysintegerOnly ads that have run at least this many days, e.g. 90 for proven ads. Filters the ads fetched (up to 5 pages); sort_by then defaults to "total_impressions".
query *stringKeyword or phrase, e.g. "running shoes".
search_typestring"keyword_unordered" (default) or "keyword_exact_phrase" (better for multi-word product names).
sort_bystring"relevancy_monthly_grouped" (default, on-topic, last month only), "total_impressions" (biggest advertisers first, any age), "longest_running" or "newest" (these two rank only the ads fetched, not the whole library).
start_datestringOnly ads shown from this date, YYYY-MM-DD.
statusstring"ACTIVE" (default upstream), "INACTIVE" or "ALL".
trimbooleanTrue (default) returns essential fields only.

Security checks

  • ✓README presentThe repository's README runs to about 1.4K words.

5 checks have not been run yet.

Releases

v1.1.0v1.1.0: Keyword search, and what changed since last week · 20 Nov 2026331 of you starred this repo, and video analysis had quietly stopped working. So we fixed it, then added the three things people ask for most. new Search ads by keyword: `search_meta_ads_by_keyword` finds ads from any advertiser by topic,…
v1.0.0v1.0.0 · 11 Aug 2026Initial stable release of the Facebook Ads Library MCP server.

README

The repository's README runs to about 1.4K words. The original in the repository is authoritative.

Read full README
Questions

About Facebook Ads Library

How do I install Facebook Ads Library?

In Claude Code, run claude mcp add facebook-ads-library -- npx -y @proxy-intell/facebook-ads-library-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Facebook Ads Library safe to use with an AI agent?

Its trust score is 77 out of 100 (good). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Facebook Ads Library still maintained?

Yes — the latest release is v1.1.0 (20 Nov 2026), and the last commit was yesterday. The repository has 332 stars.

What tools does Facebook Ads Library provide?

Conduid read 9 tools from the source: analyze_ad_image, analyze_ad_video, cleanup_media_cache, get_cache_stats, get_meta_ads, get_meta_platform_id, get_playbook, search_cached_media and 1 more. 8 of them publish their parameters, listed under Tools above.