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.
Sections
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".
| Route | Shows competitor ads? | US commercial ads? | Setup | Upkeep | Cost model | Other platforms |
|---|---|---|---|---|---|---|
| Meta Ads MCP (official) | No, your own account only | No | Connect mcp.facebook.com/ads, manage rules in Business Suite | None on your side | n/a, account management | No |
| Your own wrapper on the official Ad Library API | Yes, but only political/issue ads worldwide and all ad types in the UK and EU | No | Facebook account, ID confirmation, developer app, then your own MCP code | You maintain code and tokens | Your build time | No |
| Self-hosted open-source scraper server | Yes, what the public Ad Library page shows | Yes | Install and run a headless browser setup yourself | Breaks when Meta changes the page, so check Meta's terms on automated collection | No licence fee, you run it | Varies |
| Pay-per-run scraper service over MCP | Yes | Varies | Connect a URL, usually with an API token | Vendor maintains it | Per run, varies | Varies |
| Hosted ad-intelligence server (AdLibrary MCP) | Yes | Yes, in our indexed database | Add one URL, sign in with your account | We maintain it | Plan credits, many calls cost 0 | Google 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)
- Open Customize, then Connectors.
- Click "+ Add", then "Add custom connector".
- Enter
https://mcp.adlibrary.com/mcpand click "Add". - 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.
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.
{
"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.
| Tool | What it does for Meta ads | Credits |
|---|---|---|
count_ads | Sizes a market in our indexed database, no results returned | 0 |
search_ads | Searches ads with 25+ filters, including active status and metaPageId | 1 per call, each page counts |
resolve_brand | Turns a brand name into its Meta page id, plus Google and LinkedIn ids | 0 |
find_advertiser_pages | Lists candidate Meta pages with ad counts and verification status | 0 |
get_ad_detail | Full copy, landing page, days running and, where Meta discloses it, a measured audience breakdown by age, gender and location | 0 |
scan_winners | Scores a page's whole Meta portfolio and shows what winners do differently | 10 flat |
analyze_ad | AI read of one creative, with 1 extra credit per additional 60 seconds for videos over 180 seconds | 1 |
follow_brand, get_brand_winners | Daily tracking, then the scored winners of a followed brand | Free 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.
- Market sizing: "How many ads mention 'free shipping' in the US in the last 30 days, and what share is video?"
- Long-running video ads: "Find the longest-running video ads for 'protein powder' on Meta in the US and summarize the hooks."
- One brand's active ads: "Resolve Gymshark, then list its active Meta ads sorted by run time."
- Winners scan: "Find Meta pages for Allbirds, confirm the right page with me, then scan its winners."
- Creative analysis: "Analyze the top three results from the last search and tell me what they have in common."
- Audience check: "Pull the detail for this ad and show the age and gender breakdown if Meta discloses it."
- Track a brand: "Follow Olipop and tell me when it launches new ads."
- 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_adsreturns 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_winnersruns one scan at a time per user and takes 1 to 5 minutes. Our note on detecting winning ads covers the scoring.count_adsis 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:
| Plan | Price | Credits | Notes |
|---|---|---|---|
| Starter | €29/month | 50 | Manual research |
| Pro | €179/month | 300 | Adds Google/YouTube search |
| Business | €329/month | 1,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.
Further Reading
Related Articles

AdLibrary MCP Server Setup Guide: All 51 Tools and Costs
AdLibrary MCP setup: add https://mcp.adlibrary.com/mcp to Claude, Cursor or ChatGPT. 51 ad research tools, credit costs, limits and plans.

Brand tracking: follow a brand, get its ads, reach and spend every day
Follow a brand once and adlibrary reads its Meta, Google, YouTube and LinkedIn ads daily: reach, estimated spend, winners, ad sets, audience, API and MCP.

adlibrary MCP server: build your own in 60 lines of Python
Build a custom adlibrary MCP server with fastmcp in 60 lines of Python. Expose ad search, timeline, and enrichment as Claude tools—pair with Meta Ads MCP.

Meta Ads MCP: Connect Meta's Official Server to Claude Code and ChatGPT
Connect Meta's official ads MCP server to Claude Code or ChatGPT: the exact command, permissions, guardrail rules, and a paused-first test run.

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.

Meta ads MCP for agencies: multi-account architecture
How agencies route MCP prompts to the right client, isolate writes per account, and keep a clean audit trail across 30 Meta ad accounts.

Claude Code + adlibrary API: End-to-End Competitor Intelligence Workflows
Run five Claude Code workflows against the adlibrary API for automated competitor monitoring: Slack alerts, bulk teardowns, hook extraction across 500 ads, monthly landscape reports, and new entrant detection.

Meta Ads MCP vs Ads Manager: when to automate, when to click
Meta Ads MCP vs Ads Manager: a framework by operation type — where MCP wins on speed, where Ads Manager wins on judgment, and how to run both tools.
Claude Code + AdLibrary API: Building Agentic Marketing Workflows That Actually Ship
Build unattended competitor intelligence workflows using Claude Code and the AdLibrary API. Includes real API call patterns, two worked examples, and observability practices.