# Facebook Ads Library MCP Server

> Search and analyze Meta ads from an AI assistant.

- **URL**: https://followmcp.com/en/servers/facebook-ads-library-mcp
- **Category**: Other
- **Origin**: Community
- **Stars**: 335
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/proxy-intell/facebook-ads-library-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.12+
- **Auth**: API key / credential required

## 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.

## 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
- 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.

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