Skip to main content
Glama
ad-library-mcp

ad-library-mcp

by jvondev
README.md
# ad-library-mcp

MCP server for searching active Meta Ad Library ads, copy, media, and EU transparency data via Apify.

- Actor page & pricing: [jvon/facebook-ads-scraper](https://apify.com/jvon/facebook-ads-scraper)
- Transport: Apify Standby HTTP with async run fallback

## Prerequisites

- Node.js 18+
- `APIFY_TOKEN` from [Apify](https://apify.com?fpr=jvon) (Console -> Settings -> Integrations)

## Installation (Claude Desktop, Cursor, Claude Code)

```json
{
  "mcpServers": {
    "ad-library-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ad-library-mcp"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

## Remote HTTP MCP Endpoint

Clients supporting remote Streamable HTTP MCP servers can connect directly without local Node execution:

- URL: `https://jvon--facebook-ads-scraper.apify.actor/mcp`
- Header: `Authorization: Bearer <YOUR_APIFY_TOKEN>`

## Tools

### `search_meta_ads`

Extract active Meta Ad Library ads across Facebook, Instagram, Messenger, and Threads with copy hooks, media creatives, EU reach, and Winner Score.

| Parameter | Type | Required | Default | Description |
| :--- | :--- | :---: | :--- | :--- |
| `targets` | `array` | Yes | - | Keywords, domains, or Page URLs |
| `country` | `string` | No | `"US"` | Two-letter country code (US, GB, ALL) |
| `maxAds` | `integer` | No | `25` | Maximum ads to return |

## License

MIT