adlibrary.com Logoadlibrary.com
Share
Guides & Tutorials,  Platforms & Tools

Meta Ad Library MCP: Search Meta Ads From Claude

Meta has no official Meta Ad Library MCP; here are the five routes to search competitors' Meta ads from Claude, ChatGPT or Cursor, with setup and prompts.

Meta has no official Meta Ad Library MCP server. Its Ads MCP at mcp.facebook.com/ads manages your own ad account and cannot show other advertisers' ads. To search competitors' Meta ads from Claude, ChatGPT or Cursor, you connect a third-party server. Ours is https://mcp.adlibrary.com/mcp. This page compares the five routes, shows the setup in each client, and lists prompts to start with.

TL;DR: Meta's official MCP covers your own campaigns, not the Ad Library. The official Ad Library API skips ordinary US commercial ads. A hosted Meta Ad Library MCP server such as AdLibrary adds a sign-in URL and 51 tools to your AI client, so you can count, search and analyze Meta ads in a chat.

Does Meta have an official Ad Library MCP?

No. Meta's official server is the Ads MCP Server, hosted at https://mcp.facebook.com/ads and usable from any MCP-compatible agent. It connects the agent to your own Meta ad account, as the Meta Business Help Center describes.

What it does, from Meta's documentation:

  • Reporting on your own campaigns
  • Creating and editing campaigns, ad sets, ads and creatives
  • Custom audiences, partnership ads and catalogs
  • Signal diagnostics and Help Center search
  • A/B tests and conversion lift studies
  • Activity logs

Its documented tool categories contain no Ad Library search. Rules for what an agent may do are managed in Meta Business Suite under Settings, Integrations, "Ads MCP server", and not every account has that entry yet. Our Meta Ads MCP setup guide walks through connecting it.

So where does Ad Library data come from? The Meta Ad Library API returns ads about social issues, elections or politics delivered anywhere in the world during the past 7 years, plus ads of any type delivered to the UK or EU during the past year.

Meta's own wording: "Ads that did not reach any location in the EU will only return if they are about social issues, elections or politics."

The consequence is blunt. An ordinary US commercial ad, such as a free shipping offer from a DTC brand running Meta ads, is not returned by the official API. We cover the gaps in Meta Ad Library API limitations and the field list in what the free API tier gives you.

Meta Ad Library MCP options compared

Five routes get Meta ad data into an MCP client today. The table was checked November 2026. We describe categories, not vendors, and where we did not measure something it says "varies".

RouteShows competitor ads?US commercial ads?SetupUpkeepCost modelOther platforms
Meta Ads MCP (official)No, your own account onlyNoConnect mcp.facebook.com/ads, manage rules in Business SuiteNone on your siden/a, account managementNo
Your own wrapper on the official Ad Library APIYes, but only political/issue ads worldwide and all ad types in the UK and EUNoFacebook account, ID confirmation, developer app, then your own MCP codeYou maintain code and tokensYour build timeNo
Self-hosted open-source scraper serverYes, what the public Ad Library page showsYesInstall and run a headless browser setup yourselfBreaks when Meta changes the page, so check Meta's terms on automated collectionNo licence fee, you run itVaries
Pay-per-run scraper service over MCPYesVariesConnect a URL, usually with an API tokenVendor maintains itPer run, variesVaries
Hosted ad-intelligence server (AdLibrary MCP)YesYes, in our indexed databaseAdd one URL, sign in with your accountWe maintain itPlan credits, many calls cost 0Google incl. YouTube, LinkedIn, TikTok, Pinterest

If you want the scraper route in detail, we compared nine options in Meta Ad Library scraping tools. If you want to build your own server, this 60-line Python walkthrough shows the pattern.

Set up a Meta Ad Library MCP server in Claude

The AdLibrary MCP is a hosted remote server using Streamable HTTP. You add one URL and log in with your AdLibrary account in the browser. No key sits in the URL. Per Claude's connector docs, custom connectors work on Free, Pro, Max, Team and Enterprise, with Free limited to one.

Claude on the web or desktop (Pro and Max)

  1. Open Customize, then Connectors.
  2. Click "+ Add", then "Add custom connector".
  3. Enter https://mcp.adlibrary.com/mcp and click "Add".
  4. Sign in to AdLibrary when the browser opens.

On Team and Enterprise, an Owner adds the connector under Organization settings, then Connectors. Members then connect it themselves.

Claude Code

Run this once, then type /mcp inside Claude Code and finish the login in the browser. The command comes from the Claude Code MCP docs.

bash
claude mcp add --transport http adlibrary https://mcp.adlibrary.com/mcp

Cursor

Put this in .cursor/mcp.json in your project, or in ~/.cursor/mcp.json for every project. Cursor handles OAuth for servers that need it, per the Cursor MCP docs.

json
{
  "mcpServers": {
    "adlibrary": {
      "url": "https://mcp.adlibrary.com/mcp"
    }
  }
}

ChatGPT

OpenAI's developer mode help article says custom MCP servers work on ChatGPT web for Business and Enterprise/Edu. Pro users get them with read/fetch permissions only, and mobile is not supported. The path: Plugins, the plus button, "Add custom MCP server", enter the HTTPS endpoint, configure authentication, "Create as a plugin".

Key URL and local package

Two alternatives exist for pipelines. The key URL https://mcp.adlibrary.com/adl_your_key needs a Business plan API key from the API access page. The server reads the key per request and does not store it, so treat the URL like a password. The local package runs with npx -y @adlibrary/mcp, the ADLIBRARY_API_KEY variable and Node.js 18 or newer.

More on API access and the Ad Library API.

What you can ask it about Meta ads

The server has 51 tools. These are the ones that matter for Meta, with the credit cost each call carries.

ToolWhat it does for Meta adsCredits
count_adsSizes a market in our indexed database, no results returned0
search_adsSearches ads with 25+ filters, including active status and metaPageId1 per call, each page counts
resolve_brandTurns a brand name into its Meta page id, plus Google and LinkedIn ids0
find_advertiser_pagesLists candidate Meta pages with ad counts and verification status0
get_ad_detailFull copy, landing page, days running and, where Meta discloses it, a measured audience breakdown by age, gender and location0
scan_winnersScores a page's whole Meta portfolio and shows what winners do differently10 flat
analyze_adAI read of one creative, with 1 extra credit per additional 60 seconds for videos over 180 seconds1
follow_brand, get_brand_winnersDaily tracking, then the scored winners of a followed brandFree during beta

On 2026-11-25 we ran three count_ads calls for the keyword "free shipping", geo USA, last 30 days. Each call cost 0 credits. The results:

  • All ads: 1,425,156
  • Video only: 536,221
  • Facebook and Instagram, active status: 1,392,456

Then we ran resolve_brand on "gymshark". It returned confidence 1.0 and the verified Meta page id 129669023798560, with the Instagram account @gymshark at 8,811,591 followers. The same call returned a Google advertiser with 9,023 ads and a LinkedIn company with 4 ads. No credits were spent. That page id is what you hand to search_ads or scan_winners next.

In an earlier test we primed a chat on a nicotine gum brand. Claude ran count_ads, then two search_ads calls, and returned a clean split: nicotine gums running advertorials for 150 to 230 days, against energy gums positioned against coffee and energy drinks. That is the kind of angle gap a manual scroll through the Ad Library rarely surfaces.

It also feeds straight into competitor analysis.

Prompts for a Meta Ad Library MCP

Paste these into any client connected to a Meta ads library MCP. Each one maps to a tool above, and the free probes come first on purpose.

  1. Market sizing: "How many ads mention 'free shipping' in the US in the last 30 days, and what share is video?"
  2. Long-running video ads: "Find the longest-running video ads for 'protein powder' on Meta in the US and summarize the hooks."
  3. One brand's active ads: "Resolve Gymshark, then list its active Meta ads sorted by run time."
  4. Winners scan: "Find Meta pages for Allbirds, confirm the right page with me, then scan its winners."
  5. Creative analysis: "Analyze the top three results from the last search and tell me what they have in common."
  6. Audience check: "Pull the detail for this ad and show the age and gender breakdown if Meta discloses it."
  7. Track a brand: "Follow Olipop and tell me when it launches new ads."
  8. Swipe file: "Save the five best ads to a new swipe file called 'Q1 hooks' with a note on each angle."

Prompt 4 matters most. A wrong but valid page id still charges the 10 credits, so confirming the page first is the cheapest habit you can build. For deeper templates, see our Meta Ads MCP prompts library, the agency workflow recipes and the Claude Code Meta ads workflow.

Limits to know

Impressions and spend are ranges and estimates, ours, never exact platform numbers. Meta discloses reach for EU and UK delivery, so an ordinary US commercial ad carries no disclosed reach. Our guide to Meta Ad Library spend data explains the estimation workflow.

Other limits, checked November 2026:

  • search_ads returns at most 60 results per page, with a maximum page of 100.
  • Rate limits are 100 calls per minute and 10,000 per day per key.
  • scan_winners runs one scan at a time per user and takes 1 to 5 minutes. Our note on detecting winning ads covers the scoring.
  • count_ads is a lower-bound size of our indexed database, not the exact search total, so check active ad counts in the library for a second reading.
  • Scrapers of the public page can break when Meta changes it.
  • The official API stays limited to political, issue and UK/EU ads, as covered above.

The costly mistake is rarely the server. It is the prompt that skips the free resolve_brand step and spends a credit on the wrong advertiser.

Beyond Meta: one server for several ad libraries

The same server searches the Google Ads Transparency Center, including YouTube, plus LinkedIn, TikTok and Pinterest. Google and YouTube search needs a Pro or Business plan, and LinkedIn returns at most 25 results. That makes cross-platform checks a single prompt, as in our guides to multi-platform ad library search, Google ads libraries, LinkedIn, TikTok, Pinterest and YouTube.

The server itself costs nothing extra. Tool calls spend the same credits as the app and the API, and every paid tool returns your remaining balance. Plans, in EUR excluding VAT, checked November 2026:

PlanPriceCreditsNotes
Starter€29/month50Manual research
Pro€179/month300Adds Google/YouTube search
Business€329/month1,000+API access and API keys

Plan fit is simple. A swipe file how-to and the Saved Ads feature cover the storage side. Starter and Pro suit manual research and swipe files. Business suits pipelines, workers and the key-based setups. See the unified ad search and multi-platform coverage pages for what each search covers.

FAQ

Is there an MCP for Meta ads?

Yes, two kinds. Meta's official Ads MCP manages your own ad account, and third-party servers such as AdLibrary search other advertisers' Meta ads. Only the second kind answers competitor research questions. Our Ad Data for AI Agents page shows how it fits into agent workflows.

Does Meta have an official MCP?

Yes, the Ads MCP Server, but not for the Ad Library. It handles reporting, campaign creation and editing, audiences, catalogs and tests on your own account. Meta ships no official MCP server that searches the Ad Library as of November 2026.

Does Facebook have a MCP server?

Yes, at https://mcp.facebook.com/ads, and it is the same Ads MCP Server described above. For a Facebook ad library MCP that searches rivals' ads, you need a third-party server. Facebook ads library MCP servers all follow that split. Our Facebook Ads Library page explains what the library itself shows.

What is the MCP URL for Facebook ads?

For your own ad account, it is https://mcp.facebook.com/ads. For ad library research on other advertisers, it is https://mcp.adlibrary.com/mcp. They do different jobs, and you can connect both to the same client.

Is there a free Facebook Ad Library MCP?

Partly. Self-hosted scraper servers carry no licence fee, but you run and maintain them, and you should check Meta's terms on automated collection. The Ad Library website is free and needs no login, as covered in is the Meta Ad Library free. Ours spends plan credits, while count, resolve and detail calls cost 0.

Where do I find the Meta Ad Library?

Go to facebook.com/ads/library. It shows currently running ads across Meta technologies and needs no login. Our pages on the Meta Ad Library and the Meta Ads Library cover search tips, and the competitor research guide turns it into a routine.

Pick the route by the question you are asking: your own account goes to Meta's server, rivals' ads go to a Meta Ad Library MCP that sees US commercial ads. Start with the free count_ads and resolve_brand calls, then spend credits only on a page you have confirmed. The first sizing prompt takes under a minute.

Ready to connect? Get started and see pricing for credits.

Related Articles

Prompt template cards arranged like a Rolodex with bracket variables like TARGET AUDIENCE and PRODUCT, representing how to customize Claude prompts for marketing
Guides & Tutorials,  Platforms & Tools

Meta ads MCP prompts: 20 copy-paste templates

Twenty production-ready meta ads MCP prompts organized by risk class — read-only, draft, status-changing, and financial — with guardrails for each.