← Back to directory
F

Facebook Ads Library MCP Server

Community
Search and analyze Meta ads from an AI assistant.
Category
Other #320 of 678
Stars
★ 335 Very popular
Transport
stdio (local process)
Runtime
Python 3.12+
Credentials
API key / credential required
License
MIT
Last commit
Tools
9
52FMRS · D

Useful for self-hosted Meta ad research, with brand and keyword search plus creative analysis. Account for API costs, key setup, and anonymous telemetry; this server does not provide data from other ad platforms.

Strongest · Documentation 13/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
10/20
Documentation
13/20
Setup experience
11/20
Why each score
Reliability 8/20
The README lists multiple tools, Python dependencies, an external ads data API, and a Gemini video analysis path; HTTP mode also requires a bearer token. The install and run paths appear plausible, but the supplied material contains no tests, CI, tool parameter definitions, or reproducible handshake evidence. Error handling, edge cases, and consistency between declared tools and implementation therefore remain unverified, so the static-review calibration lowers the score.
Security and permissions 10/20
The documentation says self-hosting requires ScrapeCreators credentials and optionally Gemini credentials; HTTP mode requires an MCP_AUTH_TOKEN of at least 16 characters. It also says telemetry excludes arguments, results, and keys and can be disabled. The service still sends requests to external APIs and a maintainer telemetry endpoint, and no code is provided to verify data boundaries, credential protection, or authorization scope. No red-line behavior is shown in the supplied material, but limited verification warrants a moderate score.
Maintenance 10/20
The material identifies the project as unarchived, MIT-licensed, and at version 1.2.0. Repository metadata lists 335 stars and one open issue, but these do not establish maintenance quality. No commit history, release history, dependency update policy, security response channel, or issue response record is supplied, leaving maintenance evidence limited.
Documentation 13/20
The README provides a feature overview, tool names, example prompts, cost and credential requirements, hosted versus self-hosted differences, deployment steps, telemetry disclosure, and common troubleshooting guidance. Tool parameters and return shapes remain incomplete, some feature and security claims cannot be checked against implementation, and external API failure modes and data handling are not fully documented, so the score is below the top range.
Setup experience 11/20
The documentation requires Python 3.12+, provides an install script and manual virtual-environment steps, and describes API key configuration and connection paths for Claude Desktop and Cursor; it also outlines HTTP deployment with a bearer token. The supplied material lacks actual client configuration snippets, and self-hosting requires multiple dependencies and credentials. There is no CI and test evidence, so the static calibration does not support a score above 15.

Static review · not runReviewed 2026-12-04

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

Best for

  • Marketers and developers researching Meta ads from MCP clients such as Claude Desktop or Cursor.
  • Individuals or teams who want to self-host and can configure an ads data API key.

Not for

  • Users who need Google, LinkedIn, or TikTok ad data; this self-hosted server covers Meta only.
  • Users who want to avoid installation and API key configuration.
  • Users who need direct access from ChatGPT or claude.ai to this self-hosted server; the README says those clients require a public OAuth server.

Required permissions

  • Requires SCRAPECREATORS_API_KEY to retrieve ad data.
  • Video analysis requires a Gemini API key.
  • Each tool call sends anonymous telemetry containing the tool name, repository name, call count, and a random install ID. The README says it does not send tool arguments, results, or API keys, and describes settings to disable telemetry.

Risks and side effects

  • Self-hosted calls consume ScrapeCreators credits; the README states that after the free credits, the cost is about $1.88 per 1,000 calls.
  • Video analysis uses Gemini.
  • HTTP deployment requires an MCP_AUTH_TOKEN of at least 16 characters; remote requests use Bearer authorization.
  • Anonymous usage telemetry is sent.

Setup

Before you start

Runtime:Python 3.12+

SCRAPECREATORS_API_KEY requiredsecret Required ads data API key; obtain it from your ScrapeCreators account and configure it in the .env file.
GEMINI_API_KEY optionalsecret Optional Google Gemini API key required for video analysis; obtain it from Google AI Studio.
MCP_AUTH_TOKEN optionalsecret Access token required in HTTP mode; Render generates one, or set one of at least 16 characters when self-hosting.
Other optional settings (4)
GEMINI_MODEL optional Optional Gemini model name to set when you want to change the model used for video analysis.
MCP_TRANSPORT optional Optional transport mode setting; set it to http when deploying as an HTTP service.
PROXY_TELEMETRY optional Set to 0 to disable anonymous usage telemetry.
DO_NOT_TRACK optional Set to 1 to disable anonymous usage telemetry.

Follow the repository instructions. Python 3.12+ is required. Clone the repository and run the install script, or create a virtual environment and install dependencies manually. Configure SCRAPECREATORS_API_KEY; video analysis also requires an optional GEMINI_API_KEY. Add the server configuration to Claude Desktop or Cursor, then restart the client. The README also describes remote deployment with Render or Docker.

Check that it works

Confirm that the Facebook Ads Library tools appear in your Claude Desktop or Cursor MCP tool list. Then call get_meta_ads for Nike and check that the server returns ad data.

Troubleshooting

  1. Check that .env is in the project root and that SCRAPECREATORS_API_KEY is formatted correctly.
  2. If video analysis fails, check GEMINI_API_KEY and confirm the configured Gemini model is available.
  3. For exhausted credits or rate limits, check the provider account balance and follow the wait guidance or reduce batch requests.
  4. For connection failures, check the project path and virtual environment Python path in the client configuration, then restart Claude Desktop or Cursor.
  5. For remote HTTP deployment, confirm MCP_AUTH_TOKEN is set and requests include the correct Bearer authorization header.

Things to try

Once connected, you can ask your AI assistant things like:

  • Find Nike's current Facebook and Instagram ads and summarize their copy and creatives.
  • Search for meal prep video ads in the US and analyze their hooks.
  • Find UK posture corrector ads running for at least 90 days and sort them by run time.

Tools 9

get_meta_platform_id read-only
Returns platform IDs for one or more brand names.
get_meta_ads read-only
Fetches ads by page ID or brand name and reports changes since the previous fetch.
search_meta_ads_by_keyword read-only
Searches ads by keyword with filters such as country, format, date, and run duration.
analyze_ad_image read-only
Returns an ad image for visual analysis by the model.
analyze_ad_video read-only
Analyzes an ad video using Gemini.
get_playbook read-only
Provides step-by-step guidance for a research task.
get_cache_stats read-only
Reports statistics about cached media and storage usage.
search_cached_media read-only
Searches previously analyzed media by brand, colors, people, or media type.
Show 1 more tools
cleanup_media_cache destructive
Removes older cached media files to free disk space.

Use cases

Review a brand's current ads, including copy, media, and start dates.
Search ads by keyword, country, format, date, or run duration.
Analyze the creative content of image and video ads.
Fetch competitor ads again later to see which ads are new or have stopped.
Use built-in playbooks for ad teardowns, product research, or creative references.

Supported clients

Claude Desktop
Cursor
Claude CodePartial support

Listed from the project's documentation, not tested by this site.

Overview

An open-source MCP server that connects to the Meta Ad Library to find Facebook and Instagram ads by brand or keyword and analyze their creatives, copy, and run duration. It supports ad search, competitor tracking, and built-in research playbooks. Self-hosting requires an ads data provider API key; video analysis also requires a Gemini API key.

Similar servers

Source revision fb4e9bbabe3e Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/facebook-ads-library-mcp.svg)](https://followmcp.com/en/servers/facebook-ads-library-mcp)