Post-Checkout API, Dataset & MCP Activation Guide

Follow these 4 steps after completing checkout on Polar.sh to activate your License Key against https://p2-core-api.evsmtoken.workers.dev across all 47 verticals.

1. Verify Your Polar.sh License Key (cURL)

curl -X POST https://p2-core-api.evsmtoken.workers.dev/v1/license/verify \
  -H "Content-Type: application/json" \
  -d '{"key":"YOUR_POLAR_KEY","portal":"p2-gpu-llm-index"}'

2. Fetch Authenticated Pro Dataset (Python + pandas)

import requests, pandas as pd
r = requests.get(
  "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-tariff-hscode-calc/dataset",
  headers={"Authorization": "Bearer YOUR_POLAR_KEY", "User-Agent": "p2-data-lab/1.0"}
)
df = pd.json_normalize(r.json())
print(df.head())

3. Query Directly in DuckDB / Snowflake / Excel PowerQuery

-- DuckDB live JSON query
SELECT * FROM read_json_auto('https://p2-b2b-hub.pages.dev/data/portfolio-catalog.json');

4. Claude Desktop / Cursor MCP Discovery

Point your MCP client at /agent-catalog.json and /openapi.json for zero-config OpenAPI 3.1.0 tool discovery across all 47 portals.

Endpoint Quick Reference

EndpointMethodAuthPurpose
/v1/license/verifyPOSTJSON keyValidate Polar license key
/v1/pro/<slug>/datasetGETBearer KeyFull refreshed Pro dataset
/data/portfolio-catalog.jsonGETPublicAll 47 live portals & SKUs
/data/fx.jsonGETPublicBaked ECB 8-currency FX rates

Get All-Portals Master Pass ($79/mo) | Enterprise Annual ($499/yr) | Complete Dataset Archive ($199)

Zero-Install DuckDB httpfs SQL & Pro Polars / Python

Query any of the 47 live portals directly from DuckDB or load Pro endpoints with Polars using your Polar Bearer key:

INSTALL httpfs; LOAD httpfs;
SELECT * FROM read_csv_auto('https://p2-gpu-llm-index.pages.dev/data/sample-preview.csv');
SELECT portal, category_name, record_count FROM read_json_auto('https://p2-b2b-hub.pages.dev/data/portfolio-catalog.json');
import polars as pl, requests
r = requests.get("https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-gpu-llm-index/dataset", headers={"Authorization": "Bearer YOUR_POLAR_KEY"}).json()
df = pl.DataFrame(r.get("records", r))

Master 48-Portal /mcp.json ยท Generate Formal Quote PDF