Cornerstone Pillar GuideAI & MCP Business Analytics6 min read

How to Connect Google Ads, Facebook Ads & GA4 to Claude and ChatGPT Without Hallucinated Math

By KPIRelay Data Engineering Team · Analytics & MCP Infrastructure · Voltryn Technologies LLC
Published 2026-11-24 · Updated 2026-11-30
Quick Answer · Verified Summary

To connect live Google Ads, Facebook Ads, and GA4 data to Claude or ChatGPT accurately, avoid pasting raw CSV exports into chat windows. Instead, link your accounts once in KPIRelay (read-only OAuth) and add https://mcp.kpirelay.com/mcp as a connector. KPIRelay pre-aggregates spend, clicks, CPC, and conversions in SQL first so AI assistants explain verified totals without addition drift.

✓ Verified against MCP 2025-03-26 OAuth 2.1 + PKCE Specification

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:

  1. 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.
  2. 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

  1. 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.
  2. Add the remote MCP URL: In Claude (Settings → Connectors → Add custom connector) or ChatGPT, paste https://mcp.kpirelay.com/mcp and approve OAuth sign-in.
  3. Or paste into Google Antigravity / Cursor: Generate a scoped saa_live_... key in Settings → Account & API Access and paste the ready JSON block into mcp_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?"

Connect & Apply This Workflow

Frequently Asked Questions

Can Claude or ChatGPT pause my campaigns or raise my ad budgets?

No. KPIRelay connects in strict read-only mode by default (allow_write_actions = FALSE). Even if an assistant calls a budget proposal tool, the write guard blocks execution unless the workspace owner explicitly enables write proposals and approves a 1-click undo snapshot.

Does connecting Facebook Ads, Facebook Pages, and Instagram use 3 separate connector slots?

No. KPIRelay counts each brand ecosystem once—Meta counts as 1 platform family, and Google Ads + GA4 + Search Console + Google Business Profile count as 1 Google family.

NO CREDIT CARD REQUIRED · SELF-SERVICE SETUP

Connect Your First 3 Accounts Free ($0 Forever)

Test live read-only MCP queries in Claude, ChatGPT, or Antigravity with zero credit card required.

Start Free ($0 Forever) →

More Practical Analytics Guides