Tag Pilot
Menu

Free GA4 MCP

Ask your AI about your GA4 data

Connect Claude, Cursor or any MCP client to Google Analytics 4 in two minutes. Free, read-only, and your data goes straight from your machine to Google.

AI assistantga4 connected

Which channels drove purchases last week?

ga4 · run_report
shop.example.com · last 7 days · read-only

Paid Search led with 184 purchases, 48% of the week's 385.

Paid Search184
Organic Search121
Email57
Unassigned23

23 purchases are Unassigned, usually untagged email or affiliate links. Want me to find the landing pages?

Your assistant picks the report, the MCP asks Google from your machine, and the answer lands in your chat.

Three steps, two minutes

  1. Create a free Tag Pilot accountSign up at app.tagpilot.io and open the GA4 MCP page. No card, no trial clock.
  2. Add the server to your AI toolCreate a key, then use a one-click install below or paste the ready-made snippet into Claude Code, Claude Desktop, Cursor or VS Code.
  3. Ask about your dataThe first question opens Google sign-in once. Approve read-only Analytics access and you are done.
Claude DesktopDownload the extensionOpen the file, click Install and paste your key. No Node.js needed.
CursorAdd to CursorCreate a key in Tag Pilot; the Add to Cursor button there fills it in.
VS CodeInstall in VS CodeVS Code asks for your key and keeps it out of the config file.
# Claude Code - your key comes from the GA4 MCP page in Tag Pilot
claude mcp add ga4 --env TAGPILOT_API_KEY=tpk_… -- npx -y @tagpilot/ga4-mcp
# Gemini CLI - asks for your key during install
gemini extensions install https://github.com/tagpilot/ga4-mcp

What you can ask

Traffic and channels

"Which channels brought the most engaged sessions last month, and how does that compare with the month before?"

E-commerce

"Revenue, purchases and conversion rate by device for the last 30 days. Which landing pages sell best?"

Funnels

"Where do users drop off between view_item, add_to_cart, begin_checkout and purchase?"

Realtime

"What is happening on the site right now? Which pages and countries are active?"

Setup audit

"List my properties, custom dimensions and Google Ads links. Which property is this site sending to?"

Tracking health

"Are any transaction IDs counted twice? How much traffic is Unassigned or has a (not set) source?"

Your GA4 data never touches our servers

  • Read-only. It asks Google only for "See and download your Google Analytics data" and cannot change anything.
  • Straight to Google. The MCP runs on your computer and requests reports directly from Google's APIs.
  • No tokens on our side. Tag Pilot only helps complete the Google sign-in and token refresh. Your Google token stays on your machine.
  • Off whenever you want. Revoke the key in Tag Pilot, log out, or remove access in your Google account.
  • Open source. Apache-2.0 licensed. Read the code on GitHub.

Details in our privacy policy and terms.

Tools

  • get_account_summariesEvery GA4 account and property you can access
  • get_property_detailsTime zone, currency, industry and more for one property
  • get_custom_dimensions_and_metricsCustom definitions of a property
  • list_google_ads_linksLinked Google Ads accounts
  • list_property_annotationsAnnotations on the property timeline
  • run_reportAny dimensions and metrics, with filters, ordering and date comparisons
  • run_realtime_reportThe last 30 minutes of activity
  • run_funnel_reportStep-by-step funnels with drop-off
  • check_duplicate_transactionsTag Pilot check: purchases counted more than once
  • check_traffic_attributionTag Pilot check: Unassigned, (not set) and Direct traffic

FAQ

Is it really free?

Yes. The GA4 MCP is free to use with a free Tag Pilot account. We built it because our customers kept asking their AI tools about GA4, and it is a good way to meet Tag Pilot.

Does Tag Pilot see my Google Analytics data?

No. The MCP server runs on your own computer and requests reports directly from Google. Your GA4 data never passes through or is stored on our servers. Tag Pilot only helps complete the Google sign-in and token refresh, and stores no Google tokens.

Can it change anything in Google Analytics?

No. It only asks for read-only access (the analytics.readonly permission, shown by Google as "See and download your Google Analytics data") and has no tools that create, edit or delete anything.

Which AI tools does it work with?

Any client that supports the Model Context Protocol (MCP) and local servers: Claude Code, Claude Desktop, Cursor, and others. It needs Node.js 18 or newer.

Why do I need a Tag Pilot account?

Your free account issues the API key that connects the MCP to our sign-in service, so you can see where it is used and switch it off at any time by revoking the key.

How is this different from Google's own GA4 MCP?

Google's experimental server asks you to install Python tools and the gcloud CLI, create a Google Cloud project, enable two APIs and set up your own OAuth client. Ours is one command and one Google sign-in, plus tracking-health checks from our work on thousands of GA4 setups.

How do I remove access?

Run npx -y @tagpilot/ga4-mcp logout, revoke the key on the GA4 MCP page in Tag Pilot, or remove Tag Pilot at myaccount.google.com/permissions. Any one of them stops access.

Ready to ask?

Free account, one command, one Google sign-in.