Facebook Ads Library MCP Server

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

Remote serverstreamable-httpPython

What is the Facebook Ads Library MCP Server?

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

What you get

This is a Model Context Protocol (MCP) server for the Facebook Ads Library.

Configuration and credentials

  • Python 3.12+ - Anthropic Claude Desktop app (or Cursor) - Pip (Python package manager), install with python -m pip install - An API key for an ads data provider, set as SCRAPECREATORS_API_KEY (see configuration below) - A Google Gemini API key for video analysis (optional, only needed for video ads) > Prefer not to deal with API keys? See the Hosted Version

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_meta_platform_idReturns platform ID given one or many brand names
get_meta_adsRetrieves ads for specific page(s) (platform ID)
analyze_ad_imageAnalyzes ad images for visual elements, text, colors, and composition
analyze_ad_videoAnalyzes single ad video using Gemini AI for comprehensive insights
analyze_ad_videos_batch**NEW** - Analyzes multiple videos in single API call for token efficiency
get_cache_statsGets statistics about cached media (images and videos) and storage usage
search_cached_mediaSearches previously analyzed media by brand, colors, people, or media type
cleanup_media_cacheCleans up old cached media files to free disk space

Configuration

  • Python 3.12+ - Anthropic Claude Desktop app (or Cursor) - Pip (Python package manager), install with python -m pip install - An API key for an ads data provider, set as SCRAPECREATORS_API_KEY (see configuration below) - A Google Gemini API key for video analysis (optional, only needed for video ads) > Prefer not to deal with API keys? See the Hosted Version
VariableDescriptionRequired
SCRAPECREATORS_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Facebook Ads Library to get meta platform id.”
  • “Use Facebook Ads Library to get meta ads.”
  • “Use Facebook Ads Library to analyze ad image.”

Frequently asked questions

Get any answer from the Facebook Ads Library, conduct deep research including messaging, creative testing and comparisons in seconds. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.