Skip to content
reason-machines avatar

Facebook Ads Library Mcp Server

Batch MCP server that queries Facebook Ads Library and analyzes ad images and videos for competitors.

CCM score
46 of 100
skills.sh installs
829
GitHub stars
12
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers brand-to-platform ID lookup, retrieval of currently running ads, and image and video analysis tools
  • Includes get_meta_platform_id, get_meta_ads, analyze_ad_image, analyze_ad_video, and analyze_ad_videos_batch along with cache tools
  • Supports batch queries across multiple brands and uses caching plus automatic detection of API credit exhaustion
  • Designed for marketers and agents comparing competitor ad campaigns, with video analysis requiring an optional Gemini API key

Install

$ npx -y skills add reason-machines/marketing-skills --skill facebook-ads-library-mcp-server -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Facebook Ads Library MCP Server

Skill by ara.so — Marketing Skills collection

This MCP (Model Context Protocol) server enables AI agents to query Facebook's public Ads Library API, retrieve advertising data for brands, and perform AI-powered analysis of ad creative including images and videos. It supports batch processing for efficient multi-brand queries and includes intelligent caching and credit management.

What It Does

  • Brand Search: Convert brand names to Meta platform IDs
  • Ad Retrieval: Fetch currently running ads for one or multiple brands
  • Image Analysis: Analyze ad images for visual elements, text, colors, and composition
  • Video Analysis: Deep analysis of video ads using Gemini AI (pacing, storytelling, messaging)
  • Batch Processing: Query multiple brands or platform IDs simultaneously with ~88% token savings
  • Smart Caching: Reduces API calls and improves performance
  • Credit Management: Automatic detection of API credit exhaustion

Installation

Quick Install

git clone https://github.com/proxy-intell/facebook-ads-library-mcp.git
cd facebook-ads-library-mcp

Details

Repository
github.com/reason-machines/marketing-skills
Categories
Marketing, SEO & Ads, AI Image, Video & Voice
First seen
Jul 14, 2026

Questions

What does the facebook-ads-library-mcp-server skill do?

It is an MCP server that lets an AI agent query Facebook's public Ads Library API and retrieve the ads a brand is currently running. It can also analyze ad images and video creative, including pacing and messaging with Gemini AI.

How do I install the facebook-ads-library-mcp-server skill?

Run npx -y skills add reason-machines/marketing-skills --skill facebook-ads-library-mcp-server -y in your project. After installing, the agent can search for brand ads and analyze competitor advertising strategies.

What API keys does the Facebook Ads Library MCP server need?

It requires a ScrapeCreators API key, and a Google Gemini API key is optional for video analysis. Both are stored in a .env file in the project.

Can the skill compare ads across several brands at once?

Yes, it supports batch processing so you can convert several brand names to platform IDs and fetch their ads in one request. It can also batch analyze multiple video ads in a single call to save tokens.

More from reason-machines/marketing-skills

All 76

Similar to Facebook Ads Library Mcp Server

More Marketing, SEO & Ads