Skip to content
AdsLibraryAPI
AI Agents · Remote MCP & x4028 min read·Updated 2026-11-26

Competitor Ad Spy Automation with Remote MCP & x402 (2026): Connect Claude, Cursor & Autonomous Agents to Live Ads

Quick Answer (BLUF)

Point Claude Web, ChatGPT Connectors, or Cursor to `https://mcp.adslibraryapi.com/v1/mcp` (1-click OAuth 2.1 PKCE) or `https://api.adslibraryapi.com/mcp` (API-Key Streamable HTTP) to unlock 5 live ad-intelligence MCP tools (`search_commercial_ads`, `get_advertiser_ads`, `audit_ad_landing_page`, `get_api_pricing`, `check_api_health`). Autonomous agents without an API key can pay **$0.002 USDC/call** on Base Mainnet (`eip155:8453`) via standard HTTP 402 `x402` headers.

Gateway p50 Latency22ms cached (<280ms warm · 1.8s live)
Concurrency & Rate Limit60 – 600 RPM (Dual-Rail Failover)Need 1,000+ RPM? Dedicated Enterprise Key Pool available
Deterministic Unit Price$0.08–$0.15 / 1,000 listings

Instant ad_live_... key in 3s (3,000 Free Credits · $0.30) · $1 = 10,000 Credits · 0 Credits on empty queries · Top up anytime via 0%-fee Multi-Chain Crypto (+5% bonus credits, never-expiring PAYG)

Instant Quickstart · Copy & Run in 30 Seconds

Cursor / Claude MCP Config & Live JSON-RPC Verification

import requests

# Probe x402 Base Mainnet USDC challenge (no API key needed)
res = requests.get("https://api.adslibraryapi.com/v1/ads/search", params={"query": "CRM software"})
print("HTTP Status:", res.status_code)  # 402 Payment Required
print("PAYMENT-REQUIRED:", res.headers.get("payment-required"))
Want to inspect real live Meta & Google commercial ads JSON before creating an account?Try 3 Free Live Runs in Browser Playground (No Login) →

Key Engineering Takeaways (TL;DR)

  • ✓Zero local npm/Docker MCP server maintenance: connect straight to hosted Streamable HTTP MCP at https://mcp.adslibraryapi.com.
  • ✓5 production-ready MCP tools let Claude or Cursor search live Meta & Google ads, pull a brand's full creative dossier, and audit its landing page pixels in a single prompt.
  • ✓Native x402 v2 Base Mainnet USDC ($0.002/call) enables fully autonomous AI agent workflows with zero human account registration and strict Query-Before-Settle ($0 settled on empty results).

1. The 5 Hosted MCP Tools for Automated Creative Strategy

Once connected, your AI assistant can execute end-to-end competitive tear-downs—from discovering winning hooks to auditing checkout funnels.

AdsLibrary API Remote MCP Tools
MCP Tool NameBacking EndpointTypical Agent Use Case
search_commercial_adsGET /v1/ads/searchFind active Meta & Google creatives by niche keyword & country
get_advertiser_adsGET /v1/ads/advertiserPull all active ads, longest-running winners & landing URLs for a domain
audit_ad_landing_pageGET /v1/ads/landing-page-auditExtract H1 offer, CTAs & 12 tracking pixels from any ad destination URL
get_api_pricingStatic Rate CardInspect credit costs, PAYG packs & x402 USDC pricing
check_api_healthGET /v1/healthVerify live gateway availability & multi-rail status

2. Connect Cursor, Claude Code, or x402 Agents in 30 Seconds

Add our remote Streamable HTTP MCP server to your mcp.json or call any /v1/ads/* endpoint directly with an x402 wallet client.

Cursor / Claude MCP Config & Live JSON-RPC Verification

Zero local packages required—authenticate via OAuth 2.1 at mcp.adslibraryapi.com or pass your ad_live_ header.

curl -sS -X POST "https://api.adslibraryapi.com/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Test this exact endpoint right now in your browser (3 free anonymous runs):Run 3 Free Live Queries in Playground →

Interactive Ad-Studio Telemetry Lab · HTTPS /mcp

Estimate ad credit math, test live gateway latency & inspect JSON schema

10,000 ads/day
1,000 audits/day

12-hour PostgreSQL + Redis cache serves repeat brand/keyword queries in ~25ms. Empty queries and upstream errors strictly charge 0 Credits.

Monthly Credit Volume900,000 Credits
PAYG Nominal ($0.20 / 1K ads)$90.00/mo
Pro Effective ($0.115 / 1K ads)$51.75/mo
Business Effective ($0.08 / 1K ads)$36.00/mo
DIY Proxy Scrapers (~$18/1K)$5940/mo

Frequently Asked Questions

Does AdsLibrary MCP work with Claude Web and ChatGPT Connectors without manually pasting an API key?
Yes. Use https://mcp.adslibraryapi.com as your Custom Connector URL—it supports OAuth 2.1 Dynamic Client Registration (DCR) and PKCE S256 for 1-click sign-in.
How does x402 USDC billing prevent wasted spend on empty searches?
Our gateway uses strict Query-Before-Settle: we verify your EIP-3009 signature, fetch live upstream ads first, and only settle the $0.002 USDC payment on-chain after confirming a non-empty HTTP 200 payload.