# Meta Ad Library MCP server for AI agents

> Give Claude, Cursor or any MCP client Meta Ad Library data: 3 endpoints from $0.004 a call, no Meta Ad Library login. Your AI finds the endpoint, says the price and fetches.

Canonical page: https://okdata.online/mcp/meta/

## Connect your AI in one sentence

```text
Set up okdata for me by following https://okdata.online/agents.md. Here is my okdata API key: okd_…. Keep it safe and use it for all okdata calls.
```

## What it answers

| Question | Endpoint | Price |
|---|---|---|
| Meta Ad Library search: Search the Meta Ad Library (Facebook, Instagram, Messenger) by keyword: advertiser, copy, headline, images and videos, landing page, where it runs and since when. Can be limited to one country, to image or video ads, and to ads running now or stopped. | [meta.ads.search](https://okdata.online/apis/meta/ads/search/) | $0.004 per call · about 30 ads per page |
| Meta Ad Library ad detail: One ad of the Meta Ad Library by its library ID or link: advertiser, copy, images and videos, landing page, platforms, first and last day shown, and whether it is still running. | [meta.ads.get](https://okdata.online/apis/meta/ads/get/) | $0.004 per call |
| Meta advertiser ads: The ads one advertiser (a Facebook page) runs in the Meta Ad Library, by the page ID or the brand's name: copy, creative, landing page, platforms and dates. The way to see what a competitor is running now. | [meta.advertisers.ads.list](https://okdata.online/apis/meta/advertisers/ads/list/) | $0.004 per call · about 30 ads per page |

## Two calls

1. `find {"query":"meta ads"}`: free
2. `call {"capability":"meta.ads.search","query":"portable espresso"}`: $0.004 per call · about 30 ads per page

## Skill package

- `okdata-meta`: https://okdata.online/.well-known/agent-skills/okdata-meta/SKILL.md · https://okdata.online/skills/okdata-meta.zip

[Every Meta Ad Library endpoint](https://okdata.online/apis/meta/) · [MCP server](https://okdata.online/mcp/) · [Integrations](https://okdata.online/integrations/)
