Free planRead every connected account, 100 reads a day, free forever.See pricing →

Analytics · MCP server

Google Analytics MCP server

Ask GA4 questions in plain English.

MegaMCP is a hosted Google Analytics MCP server that lets Claude, ChatGPT and Cursor read GA4 reports, funnels, realtime data, key events and property settings and propose key event, data stream, custom definition and audience changes that you approve.

Rolling outBuilt, and switching on as approvals land.What this meansRolling out means the code is built and the platform is still approving MegaMCP's app: Google, Meta, Microsoft and the one-click ad-platform sign-ins switch on as each approval lands.

Also searched as GA4 MCP.

Tools
20 reads, 16 writes
Works with
Claude, ChatGPT, Cursor, Claude Code and VS Code
Price
Free to read, changes from $19/mo
Google Analytics 420 reads · 16 changes
MegaMCPApproval gate
  • Claude
  • ChatGPT
  • Cursor

Live demo

Watch it work on Google Analytics

Ask in plain English. Your AI reads Google Analytics 4 with real MegaMCP tools, then hands you a plan. Nothing moves until a person clicks Approve, and supported changes can be undone.

Tools in this example

  • ga4_compare_periodsReads live data
  • ga4_create_key_eventProposes a change plan
See all 36 Google Analytics 4 tools
Claude · MegaMCP + Google Analytics 4Illustrative demo
  1. You

    Why did conversions drop last week? And mark 'book_call' as a key event.

  2. Claude
    ga4_compare_periodsDoneby channelga4_create_key_eventWaiting for approvalplan ready

    Paid Search drove most of the drop: sessions −31%, conversions −24%. Organic held steady. Here's the key event plan.

    Create key eventGA4 · acme.com (web)2 changes
    • Add: Key event: book_call
    • Add: Counting methodOnce per session
    • Check passed: Before and after values recorded for undo
  3. Claude

    Created. book_call now counts as a key event from today.

What your AI can do

Google Analytics MCP tools

No more building explorations by hand. Ask what changed, why, and where, and get an answer with the numbers behind it. This list comes straight from the running product: 20 read tools and 16 write tools.

Reads

Answer straight away. Nothing changes.

20 tools
  • Reports with any dimension and metric (Data API)
  • Traffic summaries and period comparisons
  • Top pages, and landing pages by source / medium
  • Funnels and pivot tables
  • Audience breakdowns and audience exports
  • Property setup audit
  • Property settings, data retention and data sharing
  • Data streams (web, Android and iOS)
4 more
  • Change history: who changed what, and when
  • Realtime
  • Key events
  • Audience and custom-dimension/metric configuration

Changes you approve

Each one returns a plan with a diff. Nothing moves until a person approves.

16 tools
  • Create, update and remove key events (counting method, default value)
  • Change display name, time zone, currency and industry category
  • Create web data streams; rename streams or change a web stream's address; delete a stream
  • Change data retention
  • Switch enhanced measurement events on or off
  • Create bounded event audiences; edit descriptions or archive after review
  • Create and edit typed custom dimensions and metrics

Google Analytics 4 guardrail

Every write waits for approval like everything else, with before and after values. Plans that delete a data stream or shorten data retention say plainly that it can't be undone.

Plus complete diff previews, human approvals and the flight recorder on every connection. Live changes require a paid plan.

All 36 Google Analytics 4 tools20 reads, 16 changes · straight from the running product
What it doesTool idType
Run a reportga4_run_reportRead
Traffic summaryga4_traffic_summaryRead
What changed and wherega4_compare_periodsRead
Top pagesga4_top_pagesRead
Realtimega4_realtimeRead
List key eventsga4_list_key_eventsRead
Mark an event as a key eventga4_create_key_eventChange
Update a key eventga4_update_key_eventChange
Remove a key eventga4_delete_key_eventChange
Funnel reportga4_funnel_reportRead
Pivot reportga4_pivot_reportRead
Landing pages by sourcega4_landing_pagesRead
Audience breakdownga4_audience_breakdownRead
Property auditga4_property_auditRead
Audiences and audience exportsga4_audience_exportsRead
Create an audience exportga4_create_audience_exportRead
Read an audience exportga4_query_audience_exportRead
Set data retentionga4_set_data_retentionChange
Set enhanced measurementga4_set_enhanced_measurementChange
Property settingsga4_get_property_settingsRead
Update property settingsga4_update_property_settingsChange
List data streamsga4_list_data_streamsRead
Create a web data streamga4_create_web_data_streamChange
Update a data streamga4_update_data_streamChange
Delete a data streamga4_delete_data_streamChange
Change historyga4_change_historyRead
List audience/custom definitionsga4_list_admin_definitionsRead
Inspect exact audience/custom definitionga4_get_admin_definitionRead
Review audience creationga4_create_audienceChange
Review custom dimension creationga4_create_custom_dimensionChange
Review custom metric creationga4_create_custom_metricChange
Review audience labelsga4_update_audienceChange
Review custom dimension changesga4_update_custom_dimensionChange
Review custom metric changesga4_update_custom_metricChange
Review irreversible definition archivega4_archive_admin_definitionChange
Inspect definition submission receiptga4_admin_definition_attemptRead

Example prompts

Google Analytics MCP prompts

Paste any of these into Claude, ChatGPT or Cursor once Google Analytics 4 is connected.

More Google Analytics prompts
  1. “Why did conversions drop 18% last week? Break it down by channel and landing page.”

  2. “Which landing pages have high traffic but a conversion rate under 1%?”

  3. “Give me a weekly traffic summary I can paste into Slack.”

  4. “How many people are on the site right now, and from where?”

  5. “Build a funnel from landing page to form start to generate_lead for last month.”

  6. “Audit this GA4 property's setup and list what's misconfigured.”

  7. “Mark the 'book_call' event as a key event.”

  8. “Who changed this property's settings in the last 30 days?”

Setup

Google Analytics MCP setup in 3 steps

About two minutes for Claude, ChatGPT or Cursor. Nothing to install.

  1. Connect Google Analytics 4

    Start a free workspace, open Connections and sign in to Google Analytics 4 with one click. Then switch on the accounts your AI may use. No API keys to copy.

  2. Add MegaMCP to your AI app

    Every app uses the same server URL.

    MCP server URL
    https://megamcp.com/api/mcp
  3. Ask in plain English

    Try “Why did conversions drop 18% last week? Break it down by channel and landing page.” Reports answer straight away. Anything that changes Google Analytics 4 comes back as a plan for you to approve.

Safety

Hand AI the keys. Keep the brakes.

The same loop guards every MegaMCP connection: ask, see the diff, approve, undo.

Approval before every change

Google Analytics write tools never touch Google Analytics 4 directly. They return a plan, and a person approves it in the dashboard, or in chat if an admin allows it.

Approval requestedGoogle Analytics 4 · 1 plan waitingDashboard · just now

A diff first

Every plan lists each change with its before and after values, so you see exactly what will move before it does.

Plan previewGoogle Analytics 41 change
  • Change: ValueBeforeAfter
  • Check passed: Checked again right before it applies

Undo for supported changes

Supported changes reverse through a separately reviewed undo plan. Anything that can't be undone is marked before you approve it.

Undo plan readyRestores the previous valuesReviewed like any other change

Receipts for everything

Platform checks stop stale edits, and the flight recorder logs every tool call, plan and approval, with who did it and from which AI app.

TimeEvent
09:14ga4_run_report
09:15Plan created by Claude
09:16Approved by Ana

FAQ

Google Analytics MCP server questions

Is there an official Google Analytics MCP server?

Partly. Google publishes an experimental, open-source Google Analytics MCP server (googleanalytics/google-analytics-mcp) that you install and run yourself, and it is read-only. As of October 2026 Google does not host one for you. MegaMCP is hosted, adds GA4 Admin changes such as key events, data streams and custom definitions behind approvals, and sits next to your ad platforms in one connection.

What is a Google Analytics MCP server?

An MCP (Model Context Protocol) server lets AI assistants such as Claude, ChatGPT and Cursor use Google Analytics through tools. MegaMCP's hosted Google Analytics MCP server gives your assistant 20 read tools and 16 write tools for GA4 reports, funnels, realtime data, key events and property settings, and every change waits for a human approval.

Does the Google Analytics MCP server work with ChatGPT?

Yes. MegaMCP is a remote MCP server with OAuth sign-in, so one URL works in ChatGPT (as an app, with developer mode on), Claude (as a custom connector), Cursor, Claude Code and VS Code. Your AI app's own plan decides whether it can add custom MCP servers.

Can it make changes to my Google Analytics account?

Yes, with your approval. It can propose key event, data stream, custom definition and audience changes changes. Each one comes back as a plan with a line-by-line diff and waits for a human before anything moves. Every write waits for approval like everything else, with before and after values. Plans that delete a data stream or shorten data retention say plainly that it can't be undone.

How do I connect Google Analytics to Claude or ChatGPT?

Start a free MegaMCP workspace, connect Google Analytics 4 with one-click sign-in on the Connections page, and switch on the accounts your AI may use. Then add MegaMCP to your AI app with one URL. No API keys to copy, no code.

What does the Google Analytics MCP server cost?

Reading Google Analytics is free on MegaMCP's Free plan (100 reads a day, no card). Approved changes are included in every paid plan, from $19/month after a 5-day free trial, with unlimited runs and no credits. MegaMCP adds no markup: any subscription or API usage with the vendor stays between you and them.

Is my Google Analytics data safe?

Your Google Analytics 4 credentials are encrypted at rest (AES-256-GCM) and bound to their connection, and MegaMCP never trains AI models on your data. Your AI only sees the accounts you switch on, members limited to certain clients only see those clients, and every tool call lands in the flight recorder.

5 days. On the house.

Put Mega to work. Your ad budget stays yours.

No credit card to start. Every workspace comes with a sandbox ad account, so you can watch the whole ask, diff, approve, undo loop before you connect anything real.

Get launch updates

New integrations, platform approvals, the occasional dark joke. One or two emails a month. Unsubscribe anytime.

Want early access? Join the waiting list →