Why Raw CSV Uploads Cause AI Math Drift
Language models are excellent at summarizing trends and spotting anomalies, yet they struggle when asked to sum thousands of ungrouped campaign rows in a context window. Two common errors happen when teams upload manual ad exports:
- Cross-platform conversion double-counting: Adding Meta Pixel leads, Google Ads conversions, and GA4 site-wide key events together counts the same paid website booking twice.
- Blended paid and organic CPC errors: Dividing paid ad spend by total clicks (including free Google Search Console and Google Maps clicks) makes paid cost per click look artificially low.
KPIRelay solves both problems before the AI sees a single number by executing a server-side GROUP BY location, datasource SQL rollup in PostgreSQL first.
CSV Uploads vs. Live SQL-Backed MCP
| Workflow Dimension | Manual CSV Uploads | KPIRelay Read-Only MCP (mcp.kpirelay.com) |
|---|---|---|
| Math accuracy | Token-by-token estimation across raw rows | Exact SQL sums computed in <500ms before LLM formatting |
| Account safety | Static files shared across chat threads | 100% read-only OAuth 2.1 + SHA-256 scoped keys; write actions locked OFF |
| Multi-location mapping | Manual VLOOKUPs per ad account name | Automatic store-number and city grouping across 7+ channels |
| Short-window APIs (Clarity) | Lost after 3 days if you forget to export | Archived hourly into Historical SQL Vault |
3-Step Read-Only Setup in Under 60 Seconds
- Connect your platforms once: Sign in at kpirelay.com/login and authorize read-only access to Google Ads, Facebook Ads, GA4, Search Console, or Google Business Profile.
- Add the remote MCP URL: In Claude (Settings → Connectors → Add custom connector) or ChatGPT, paste
https://mcp.kpirelay.com/mcpand approve OAuth sign-in. - Or paste into Google Antigravity / Cursor: Generate a scoped
saa_live_...key in Settings → Account & API Access and paste the ready JSON block intomcp_config.json.
4 High-Signal Prompts to Run Every Monday
1. "Rank all my locations by paid ad spend, paid CPC, paid ad conversions, and cost per conversion over the last 30 days."
2. "Which campaigns spent over $150 in the last 14 days with zero conversions?"
3. "Compare Google Maps phone calls and direction taps against GA4 website visits by store."
4. "Which landing pages have the highest Microsoft Clarity dead clicks alongside paid traffic?"