Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Facebook Ad Library MCP CLI

MCP server by thenavidm Verified · npm:@thenavidm

Facebook Ad Library MCP server and CLI lets AI assistants search and read ads from Meta's public Ad Library. It covers Facebook, Instagram, Messenger, Threads and Audience Network, and needs no API key by default.

  • Score 76
  • 15 stars
  • 222 a week
  • MIT
  • Updated

Install Facebook Ad Library MCP CLI

Built from the published package, never by AI.

claude mcp add facebook-ad-library-mcp-cli -- npx -y @thenavidm/facebook-ad-library-mcp-cli

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Facebook Ad Library MCP CLI in Claude Code

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-ad-library-mcp-cli block.

About

The Facebook Ad Library MCP server and CLI let an AI assistant search and read ads from Meta's public Ad Library. It provides nine tools, including search_ads, list_advertisers and diff_advertiser, covering ads on Facebook, Instagram, Messenger, Threads and Audience Network for any advertiser in any country. Each tool is defined once and served both as an MCP server and as a command-line tool with the same names.

The default free backend drives a real Chromium browser and needs no key or account, though a search can take 30 to 60 seconds. Optional hosted providers, ScrapeCreators and Apify, are faster but cost money, and an optional Meta access token enables EU spend and reach data. It suits marketers, researchers and anyone who wants to study competitors' ad creative from Claude Code, Codex, Cursor or similar tools.

Written from the project's README and checked against it.

Tools it gives your assistant

  • search_adsSearch ads by keyword or advertiser.
  • list_advertisersFind a brand's Page ID.
  • get_adRead one ad in full.
  • view_ad_creativeLook at the images of an ad.
  • transcribe_adTranscribe a video ad. The source lists this on the ScrapeCreators backend.
  • diff_advertiserSee what an advertiser started and stopped running.
  • get_eu_transparencyReturn EU spend, reach and demographics, once a Meta access token is set.
  • ad_library_urlBuild a link to the Ad Library that a person can open.
  • backend_statusCheck the setup, the same check the doctor command runs.

What you need

  • Node.js 22 or newer
  • Chromium, installed with npx playwright install chromium, for the free backend
  • Optional ScrapeCreators or Apify API key for faster, hosted searches
  • Optional Meta access token for EU spend and reach data

Try asking

  • What ads is Ridge running right now, and which has been live longest?
  • Find advertisers running cold plunge ads in the UK, ranked by ad count.
  • What changed for this advertiser since last week?

Good to know

  • The free backend runs Chromium locally, so a search takes 30 to 60 seconds.
  • Meta may rate limit heavy use of the free backend.
  • EU spend, reach and demographics need a Meta access token.
  • claude.ai on the web needs the server hosted at a public HTTPS URL.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Facebook Ad Library MCP CLI

All alternatives →
OpenSEO every-app
100

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.

AAA Remote 30k
SEO Skill iannuttall
93

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.

AAA Local and remote 6.1k/wk
NotFairnowork-studio
93

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.

AAA Remote 4.4k
Elmo elmohq
92

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.

AAA Remote 772
Clipwright.io seocombat
91

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.

AAC Local and remote 3.4k/wk
New-Term Radarzhuyansen
91

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.

AAA Local 2.3k

Compare with OpenSEO, SEO Skill or NotFair

Facebook Ad Library MCP CLI: common questions

Does the Facebook Ad Library MCP server need an API key?

The default free backend needs no key or account. Optional provider keys speed up searches, and a Meta access token is only needed for EU spend and reach data.

Which platforms does it cover?

According to the source, it reads ads running on Facebook, Instagram, Messenger, Threads and Audience Network, for any advertiser in any country.

Can I use it without an AI assistant?

Yes. The CLI runs every tool as a command that you can type in a terminal, or use in a script or cron job.

How do I install Facebook Ad Library MCP CLI?

In Claude Code run claude mcp add facebook-ad-library-mcp-cli -- npx -y @thenavidm/facebook-ad-library-mcp-cli. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Facebook Ad Library MCP CLI the official server?

Facebook Ad Library MCP CLI is published by npm:@thenavidm from its verified domain in the official MCP Registry.

Is Facebook Ad Library MCP CLI free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Facebook Ad Library MCP CLI safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Facebook Ad Library MCP CLI?

Similar MCP servers: OpenSEO, SEO Skill, NotFair, Elmo.

Does Facebook Ad Library MCP CLI 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.

Facebook Ad Library MCP CLI Install

Add to stack

Loading.