ScrapeAdLibrary

v0.1.0
com.scrapeadlibrary/scrapeadlibrary Checked 2 days ago Published 13 days ago

Search the public Meta Ad Library: ads, creatives, EU transparency data and advertisers.

Values you need

VariableWhat it is
SCRAPEADLIBRARY_API_KEYrequired secret Your ScrapeAdLibrary API key (starts with sal_), from https://scrapeadlibrary.com/dashboard/api-keys

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add scrapeadlibrary -e 'SCRAPEADLIBRARY_API_KEY=<SCRAPEADLIBRARY_API_KEY>' -- uvx scrapeadlibrary-mcp==0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "scrapeadlibrary": {
      "args": [
        "scrapeadlibrary-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SCRAPEADLIBRARY_API_KEY": "<SCRAPEADLIBRARY_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "scrapeadlibrary": {
      "args": [
        "scrapeadlibrary-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SCRAPEADLIBRARY_API_KEY": "<SCRAPEADLIBRARY_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SCRAPEADLIBRARY_API_KEY",
      "id": "scrapeadlibrary-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "scrapeadlibrary": {
      "args": [
        "scrapeadlibrary-mcp==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "SCRAPEADLIBRARY_API_KEY": "${input:scrapeadlibrary-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.scrapeadlibrary]
command = "uvx"
args = ["scrapeadlibrary-mcp==0.1.0"]
env = { "SCRAPEADLIBRARY_API_KEY" = "<SCRAPEADLIBRARY_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http scrapeadlibrary https://api.scrapeadlibrary.com/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "scrapeadlibrary": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.scrapeadlibrary.com/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "scrapeadlibrary": {
      "url": "https://api.scrapeadlibrary.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "scrapeadlibrary": {
      "type": "http",
      "url": "https://api.scrapeadlibrary.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.scrapeadlibrary]
command = "npx"
args = ["-y", "mcp-remote", "https://api.scrapeadlibrary.com/mcp"]

For AI agents

  1. Ask the user for: SCRAPEADLIBRARY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_ads, get_ad, get_page, get_page_ads, search_pages.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json