Facebook Ads Library MCP
MCP server by proxy-intell Verified · npm:@proxy-intell
Searches Meta's public Facebook Ads Library for any brand and lets an AI assistant analyze the ads it finds. It is a self-hosted Python server for developers and marketers who supply their own ScrapeCreators API key.
Install Facebook Ads Library MCP
Built from the published package, never by AI.
claude mcp add facebook-ads-library-mcp -- npx -y @proxy-intell/facebook-ads-library-mcpRun in your terminal. Add --scope user to use it in every project.
Step-by-step: install Facebook Ads Library MCP in Claude Code
{
"mcpServers": {
"facebook-ads-library-mcp": {
"args": [
"-y",
"@proxy-intell/facebook-ads-library-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Facebook Ads Library MCP in Claude Desktop
{
"mcpServers": {
"facebook-ads-library-mcp": {
"args": [
"-y",
"@proxy-intell/facebook-ads-library-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"facebook-ads-library-mcp": {
"args": [
"-y",
"@proxy-intell/facebook-ads-library-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add facebook-ads-library-mcp -- npx -y @proxy-intell/facebook-ads-library-mcp{
"mcpServers": {
"facebook-ads-library-mcp": {
"args": [
"-y",
"@proxy-intell/facebook-ads-library-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Facebook Ads Library MCP in Antigravity CLI
gemini mcp add facebook-ads-library-mcp npx -y @proxy-intell/facebook-ads-library-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
Step-by-step: install Facebook Ads Library MCP in Gemini CLI
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the facebook-ads-library-mcp block.
About
Facebook Ads Library MCP is a self-hosted Model Context Protocol server for Meta's public Facebook Ads Library. It lets an AI assistant look up a brand's platform ID, retrieve the ads that brand is running, and analyze ad images and videos. Video analysis uses Google Gemini AI. The server also has tools to check cached media, search it, and clean it up.
The project is written in Python and can be installed with a script or manually. It can run locally with Claude Desktop or Cursor, or as a remote HTTP server using Docker. Ad data comes from ScrapeCreators, which requires an API key. The author describes it as suited to personal use and tinkering, and points client or team work to the hosted Proxy version.
Written from the project's README and checked against it.
Tools it gives your assistant
get_meta_platform_idReturns the platform ID for one or many brand names.get_meta_adsRetrieves ads for specific pages using their platform IDs.analyze_ad_imageAnalyzes ad images for visual elements, text, colors, and composition.analyze_ad_videoAnalyzes a single ad video using Gemini AI for insights.analyze_ad_videos_batchAnalyzes multiple ad videos in a single API call.get_cache_statsGets statistics about cached media and storage usage.search_cached_mediaSearches previously analyzed media by brand, colors, people, or media type.cleanup_media_cacheRemoves old cached media files to free disk space.
What you need
- Python 3.12+
- A ScrapeCreators API key (SCRAPECREATORS_API_KEY)
- A Google Gemini API key (optional, for video analysis)
- Claude Desktop or Cursor
Try asking
- How many ads is 'AnthropicAI' running? What's their split across video and image?
- What messaging is 'AnthropicAI' running right now in their ads?
- Analyze the video ads from 'Nike' and extract their visual storytelling strategy.
Good to know
- Covers Meta (Facebook and Instagram) only.
- ScrapeCreators bills each call, about $1.88 per 1,000 after 100 free credits.
- The author says it is for personal use and tinkering, not client work or teams.
- Sends an anonymous usage ping per tool call unless PROXY_TELEMETRY=0 or DO_NOT_TRACK=1 is set.
Security check
B- Runs a script automatically when the package is installedIn
package.json:"postinstall":
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Facebook Ads Library MCP
All alternatives →Provides keyword research, site audits, rank tracking and AI visibility checks through an MCP server for AI assistants. It is aimed at people who find tools like Semrush and Ahrefs too expensive or bloated.
Analyzes Google Search Console, Google Analytics and keyword data so your AI agent can find SEO and AI search gaps. Built for SaaS and B2B teams using Claude Code, Codex, ChatGPT or Cursor.
NotFair is an open-source plugin of SEO, GEO, and marketing skills for AI agents. It also registers one hosted NotFair MCP connection that uses OAuth. It is for marketers and site owners who work with Claude Code, Codex, Cursor, Gemini CLI, and similar agents.
Connects AI clients to Elmo, an open-source platform that tracks how AI answer engines mention and cite a brand. It lets assistants read visibility data and manage tracked prompts. It is aimed at marketing, SEO, and agency teams doing answer engine optimization.
Clipwright.io turns a script or short brief into a short video, either a talking-actor ad or a faceless video. The assistant gets a free price quote before each render and receives a video URL back.
Reports new AI model, product, tool and repo names as they start to surge, with the generic search terms people use for them. Built for people who make SEO pages, newsletters or directories around new AI terms.
Facebook Ads Library MCP: common questions
Does Facebook Ads Library MCP need an API key?
Yes. It needs a ScrapeCreators API key set as SCRAPECREATORS_API_KEY. A Google Gemini API key is optional and only needed for video analysis.
Which ad libraries does this server cover?
The self-hosted server covers only Meta's Facebook Ads Library, including Facebook and Instagram. The hosted Proxy version also covers Google, LinkedIn and TikTok (EU).
Can it run as a remote server?
Yes. The README describes running it in HTTP mode with Docker or on Render, protected by an MCP_AUTH_TOKEN of 16 or more characters.
How do I install Facebook Ads Library MCP?
In Claude Code run claude mcp add facebook-ads-library-mcp -- npx -y @proxy-intell/facebook-ads-library-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Facebook Ads Library MCP the official server?
Facebook Ads Library MCP is published by npm:@proxy-intell from its verified domain in the official MCP Registry.
Is Facebook Ads Library MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Facebook Ads Library MCP safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (runs a script automatically when the package is installed). Review the code before you install. How grades work.
What are alternatives to Facebook Ads Library MCP?
Does Facebook Ads Library MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
