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.
| MCP Tool Name | Backing Endpoint | Typical Agent Use Case |
|---|---|---|
| search_commercial_ads | GET /v1/ads/search | Find active Meta & Google creatives by niche keyword & country |
| get_advertiser_ads | GET /v1/ads/advertiser | Pull all active ads, longest-running winners & landing URLs for a domain |
| audit_ad_landing_page | GET /v1/ads/landing-page-audit | Extract H1 offer, CTAs & 12 tracking pixels from any ad destination URL |
| get_api_pricing | Static Rate Card | Inspect credit costs, PAYG packs & x402 USDC pricing |
| check_api_health | GET /v1/health | Verify 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":{}}'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"))// Add to ~/.cursor/mcp.json or claude_desktop_config.json:
const mcpConfig = {
mcpServers: {
adslibrary: {
url: "https://api.adslibraryapi.com/mcp",
headers: { "x-api-key": "ad_live_your_api_key" }
}
}
};
console.log(JSON.stringify(mcpConfig, null, 2));{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{
"name": "search_commercial_ads",
"description": "Search live commercial Meta & Google ads"
},
{
"name": "get_advertiser_ads",
"description": "Fetch advertiser creative dossier by domain"
},
{
"name": "audit_ad_landing_page",
"description": "Audit landing page headline, CTA & 12 pixels"
},
{
"name": "get_api_pricing",
"description": "Inspect credit pricing & x402 USDC rates"
},
{
"name": "check_api_health",
"description": "Check live API gateway health"
}
]
}
}Interactive Ad-Studio Telemetry Lab · HTTPS /mcp
Estimate ad credit math, test live gateway latency & inspect JSON schema
12-hour PostgreSQL + Redis cache serves repeat brand/keyword queries in ~25ms. Empty queries and upstream errors strictly charge 0 Credits.
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.