Free Google Analytics MCP: No-Code Setup

  • Free forever plan: unlimited GA4 properties, no credit card.
  • Official Google Analytics API: one Google sign-in, no Python, no Cloud project, nothing to host.
  • Run GA4 end to end: reports, key events, property settings and live dashboards.
  • Safe by default: reading never changes your property; every change waits for your approval.
Try free
Use cases

Run GA4 end to end from your favorite AI chat

Porter Metrics connects Google Analytics 4 to Claude and ChatGPT through one hosted MCP server. You ask about sessions, landing pages and key events in a chat, then fix tracking settings after you approve. Porter reads Search Console and your ad platforms through the same server, so traffic and its cause share one answer.

Reporting and analysis

  • 288 fields: every field in the Google Analytics 4 fields list, plus your custom dimensions and metrics.
  • Channels: Sessions and Key events by Session default channel group.
  • Landing pages: pages with visits but a low Engagement rate.
  • Traffic drops: the day, device and channel where Sessions fell.
  • Realtime: who is on the site right now, without opening GA4.
  • Live dashboards and weekly reports: one link, refreshed for every reader.

Tracking and property management

  • Key event checks: Event count by Page path shows where each key event fires.
  • Mark or update key events: flag an event that already fires, or change how it counts.
  • Custom dimensions and metrics: create one from an event parameter you already send.
  • Audiences: build a GA4 audience from a description of who belongs in it.
  • Data streams and Google Ads links: add a stream or link a Google Ads account.
  • User access: add a teammate or change a role on the property.

SEO and AI traffic

  • GA4 next to Search Console: pair Clicks and Average position with what visitors did, through the Search Console connector for Claude.
  • Traffic from AI assistants: Sessions from chatgpt.com, perplexity.ai and other AI sources by month.
  • Engagement after the click: Engagement rate and Key events for each organic landing page.
Reference

Google Analytics MCP server reference

One MCP server: Porter connects Google Analytics 4 to the AI clients, fields, metrics, dimensions and workflows marketers already use. You paste one server URL and sign in with Google once. Every client you add then reads the same 288 fields, and the same server reaches the sources in all MCP connectors.

GA4 objects

Objects: properties · data streams · key events · custom dimensions · custom metrics · audiences · users

GA4 metrics

Traffic: Sessions · Total users · New users

Engagement: Engaged sessions · Engagement rate · Average session duration

Conversion: Key events · Event count · Purchase revenue · Ecommerce purchases

Definitions for each one are in the GA4 field definitions.

GA4 dimensions and segments

Acquisition: Session default channel group · Session source / medium

Content: Landing page + query string · Page path · Page title · Event name

Audience: Device category · Country

Time: Date · Week · Month and year

Rule of thumb: GA4 updates through the day, so prompts ask for periods ending two days ago.

Security and trust

Safety and security

Porter’s Google Analytics connection reads first and asks before any change. A Viewer role is enough to report, an Editor role lets Claude change settings, and every change waits for your approval. Actions GA4 can’t undo, like removing a key event, are flagged as permanent, so you confirm them before they run.

Read-only first

Read-only first: ask about sessions, pages and key events without changing anything in the property. Reporting runs apart from settings changes.

Unlimited reporting queries

Unlimited reporting queries: ask as many questions as you need. Porter works within Google’s Data API quota of 200,000 core tokens per property per day, so you never track tokens yourself.

Approved Google sign-in

Approved Google sign-in: connect with your Google account. You never create a Cloud project, a service account or a credentials file.

Viewer to read, Editor to change

Your role decides the scope: Google Analytics roles (Viewer and Editor) carry over. Viewer reads reports; Editor is needed for key events, custom definitions and streams.

Changes after you approve

Changes after you approve: Claude shows the key event, dimension or audience it will create. Nothing reaches GA4 until you say yes.

Permanent actions flagged

Permanent actions flagged: removing a key event, unlinking Google Ads, deleting a data stream or removing a user can’t be undone in GA4. Porter flags each one and asks you to confirm.

Official API, no browser automation

Official API: Porter uses Google’s Analytics Data and Admin APIs, never a browser session clicking through GA4.

Revoke access anytime

Revoke access: disconnect Google Analytics from your Porter account whenever you want. Access stays tied to that sign-in, not a key on your laptop.

Setup

How to set up the Google Analytics MCP server

Setting up Porter’s Google Analytics connection takes one server URL and a Google sign-in. There is no Python, no Cloud project and no server to run. Claude and ChatGPT each have their own place to paste the URL, then a first question about last month’s sessions confirms the property is connected.

https://mcp.portermetrics.com/mcp

How to install Google Analytics MCP in Claude

Use the Claude plugin for the guided route, since Claude keeps the Porter plugin synced when new tools ship.

  1. Open Claude Settings → Customize → Plugins.
  2. Click Add → Add marketplace → Add from a repository.
  3. Paste portermetrics/porter.
  4. Confirm Use portermetrics/porter.
  5. Keep Sync automatically turned on.
  6. Install the Porter Metrics card from the Directory.
  7. Connect the Porter connector from the plugin settings and sign in with Google.
  8. Ask your first GA4 question.

First question to paste:

For my GA4 property, show Sessions, Engaged sessions, Engagement rate and Key events by Week for the last 4 full weeks, ending two days ago.

Claude also documents the manual route in Anthropic’s guide to custom connectors using remote MCP. For screenshots and Claude Code, follow how to connect Google Analytics 4 to Claude, or see the Google Analytics 4 connector for Claude for Claude-only use cases.

Watch the Claude plugin demo

Click-by-click Claude plugin demo:

Porter’s walkthrough connects GA4 to Claude without code. You sign in with Google in Porter, add Porter’s MCP URL to Claude as a custom connector, then ask a first traffic question. The steps match the list above.

Use manual MCP setup in Claude

Use manual setup when Claude asks for a custom connector instead of a plugin.

  1. Click + in the chat composer.
  2. Open Manage connectors.
  3. Click + to add a connector.
  4. Choose Add custom connector.
  5. Name the connector Porter.
  6. Paste https://mcp.portermetrics.com/mcp.
  7. Click Add.
  8. Return to the chat.
  9. Ask for GA4 sessions, landing pages or a key event check.

Manual setup demo:

How to install Google Analytics MCP in ChatGPT

Use the Porter Metrics app for the fastest ChatGPT route.

  1. Open the Porter Metrics app in ChatGPT.
  2. Click + or Add files and more.
  3. Choose Add sources.
  4. Select Porter Metrics.
  5. Allow ChatGPT to use Porter Metrics.
  6. Start a chat with Porter Metrics.
  7. Ask a GA4 question, like “Show Sessions and Key events by Session default channel group for last month.”
  8. Click Allow when ChatGPT asks permission to query or change something.

OpenAI explains app permissions in OpenAI’s guide to connected apps in ChatGPT. Screenshots are in how to connect Google Analytics 4 to ChatGPT, and ChatGPT-only use cases sit on the Google Analytics 4 connector for ChatGPT.

Watch the ChatGPT app demo

Click-by-click ChatGPT app demo:

Use advanced MCP setup in ChatGPT

Use the Porter MCP to get every new tool the day Porter ships it. It works on ChatGPT Business, Enterprise and Edu workspaces, and Pro accounts get read access, per OpenAI’s custom MCP server guide.

  1. Open ChatGPT on the web and go to Plugins.
  2. Click +, then Add custom MCP server.
  3. Name it Porter and paste https://mcp.portermetrics.com/mcp under Connection.
  4. Choose OAuth, tick “I understand and want to continue” and click Create as a plugin.
  5. Sign in with the Google account you use in Porter.

How to install Google Analytics MCP in Claude Code, Cursor, VS Code and Codex

Pick your coding agent. Each one uses the same server URL and a Google sign-in, so no API key or credentials file sits in a config.

  1. Add Porter’s plugin in Claude Code. It installs the Porter connector and Porter’s skill in one step.
    /plugin marketplace add portermetrics/porter /plugin install porter-metrics@portermetrics
  2. Ask for your data. The first time, your browser opens: sign in with the Google account you use in Porter.
  3. No plugins? Add the server directly instead:
    claude mcp add --transport http porter https://mcp.portermetrics.com/mcp
  4. Check: /mcp shows porter as connected. Ask: “Which Google Analytics accounts can you see?”
  1. Open Cursor Settings → Tools & Integrations and click New MCP Server. Cursor opens mcp.json.
  2. Paste this and save.
    { "mcpServers": { "porter": { "url": "https://mcp.portermetrics.com/mcp" } } }
  3. Click Connect next to porter and sign in with the Google account you use in Porter.
  4. Check: porter shows a green dot in Tools & Integrations. Open an Agent chat. Ask: “Which Google Analytics accounts can you see?”
  1. Open the Command Palette (Ctrl/Cmd+Shift+P) and run MCP: Add Server → HTTP.
  2. Paste https://mcp.portermetrics.com/mcp, name it porter and choose Global. Or add it to .vscode/mcp.json:
    { "servers": { "porter": { "type": "http", "url": "https://mcp.portermetrics.com/mcp" } } }
  3. Allow the sign-in prompt and sign in with the Google account you use in Porter.
  4. Check: open Copilot Chat in Agent mode; Porter’s tools appear under the tools icon. Ask: “Which Google Analytics accounts can you see?”
  1. Add Porter from your terminal.
    codex mcp add porter --url https://mcp.portermetrics.com/mcp
  2. Sign in. Your browser opens: sign in with the Google account you use in Porter.
    codex mcp login porter
  3. Check: codex mcp list shows porter as logged in. Start codex. Ask: “Which Google Analytics accounts can you see?”

The same URL works in Windsurf, Cline, Zed and any client that supports remote MCP servers over HTTP.

Official Google Analytics MCP server

Google’s server has no hosted URL. You install it on your own machine from Google’s analytics-mcp repository on GitHub and run it with pipx.

Use Google’s server if you’re a developer who wants free, local, read-only access and is happy to manage credentials. Use Porter’s URL (https://mcp.portermetrics.com/mcp) when you want GA4 next to Search Console and ad spend, across client properties, with dashboards and approved fixes. The two can run side by side.

Porter’s URL goes into the server URL field of any MCP client; Google’s runs as a local command.

Prompts

Google Analytics MCP prompts

Porter’s Google Analytics skills are working prompts, not tutorials. Each one turns live GA4 data into a report, a diagnosis or an approved tracking fix, and you can paste it as written. Reporting and research prompts only read the property. Automation prompts propose a change and wait for your approval.

Reporting skills

Connection test

List every GA4 property I can access. Then show Sessions, Engagement rate and Key events by Week for the last 4 full weeks, ending two days ago.

Channel report

For the last 28 days ending two days ago, show Sessions, Engaged sessions, Engagement rate and Key events by Session default channel group.

Landing page engagement

Show the 20 landing pages with the most Sessions in the last 28 days, with Engagement rate and Key events. Flag pages with high Sessions and low Engagement rate.

Traffic drop diagnosis

Sessions dropped last week. Compare Sessions and Key events by Date, Device category and Session default channel group with the week before, and find where the drop started.

Client property comparison

Compare Sessions, Engagement rate and Key events for the last 28 days across every GA4 property I’ve connected, ranked by Key events.

Weekly report

Write a weekly GA4 report: what changed in Sessions and Key events, which channels and landing pages moved it, and what to check next.

Research skills

Search Console vs GA4 engagement

For my top 20 landing pages in the last 28 days, show Search Console Clicks and Average position. Next to them, show GA4 Sessions, Engagement rate and Key events.

AI assistant traffic

Show Sessions, Engagement rate and Key events by Session source and Month and year for the last 6 months. Keep sources like chatgpt.com, perplexity.ai and claude.ai.

Key event audit

List the key events on this property. Then show Event count by Event name and Page path for the last 28 days, and flag key events that never fired.

Automation skills

Mark a key event

The event generate_lead fires but isn’t a key event. Mark it as a key event on my GA4 property after I approve.

Add a custom dimension

Create an event-scoped custom dimension called Plan type from the parameter plan_type. Show me the settings and create it only after I approve.

Tracking alert agent

Every Monday, compare Key events by Event name with the week before. Alert me when any key event drops by more than half.

Weekly summary

Every Monday, write a 10-line GA4 summary of Sessions, Key events and the top movers, ready to paste into our team channel.
Who this is for

Who this is for

Marketers who need the why behind the traffic. Porter’s Google Analytics connection fits four groups. Agencies report on many client properties, and in-house marketers own the website numbers. SEO and content marketers track organic and AI traffic, and analysts keep tracking clean. Each group below gets four jobs it can hand over.

Agencies and freelancers

  • Every client property: one answer across all of them, without switching GA4 views.
  • Client reports: a live link the client opens on Monday that you never rebuilt.
  • Tracking fixes: the missing key event gets marked in the same chat that found it.
  • Onboarding audits: key events, custom dimensions and streams listed in one pass.

In-house marketers

  • Channel answers: which channel moved Key events this month, without building an exploration.
  • Landing pages: pages with traffic but no engagement surface on their own.
  • Ad spend next to traffic: Meta and Google Ads spend beside the sessions they bought.
  • Executive reports: one link, already current when leadership opens it.

SEO and content marketers

  • Search Console next to GA4: clicks and position beside what visitors did after landing.
  • AI assistant traffic: sessions from ChatGPT, Perplexity and Claude, tracked by month.
  • Content that converts: Key events by landing page, so the next brief starts from evidence.
  • Traffic drops: the day and the channel, before the meeting where someone asks.

Analysts and marketing ops

  • Field-level access: 288 fields plus custom definitions, named the way GA4 names them.
  • Key event audits: events that stopped firing show up as a list.
  • Warehouse destinations: GA4 lands in BigQuery, next to everything else.
  • Alerts: a key event drop reaches you on Monday, not at month end.

When to use Google’s own instead

You’re a developer, read-only access is enough, and you’re happy to run Python with a Cloud project. Google’s server is free, open source and enough for that job.

Comparison

Official Google Analytics MCP vs. Porter

Google publishes an open-source Google Analytics MCP server that runs on your own machine. Google’s Analytics MCP setup guide describes it as read-only and lists its requirements (as of November 2026). It suits developers, and it can run next to Porter in the same AI client.

Google’s server gives your AI read access to GA4 from your laptop. Porter gives it your marketing operation: GA4, Search Console, ad spend, dashboards and approved fixes from one hosted URL.

The basics are the same on both: Google’s official Analytics APIs, your existing GA4 access, every report field GA4 exposes, and a server any MCP client can use. Here is where they part.

PorterGoogle’s official MCP (as of November 2026)
Same job, different reach
SetupGoogle sign-in, one URLPython 3.10+, a Cloud project with the Admin and Data APIs, Application Default Credentials
Where it runsHosted by PorterOn your machine, through pipx
Changes to GA4Key events, custom dimensions and metrics, audiences, streams, Google Ads links, user accessProperty annotations only, behind an --allow-write flag
Approval controlsEvery change shown first and approvedRead-only by default
Clients in its docsClaude, ChatGPT, Gemini, n8n, any remote MCP clientAntigravity, Claude Desktop, Claude Code
PriceIncluded in every Porter plan, the free plan tooOpen source
Only one side
Search Console and other channels30+ sources: Search Console, Google Ads, Meta Ads, HubSpot and moreGA4 only
Cross-channel in one conversationYesNot in its docs
Blending sources into one numberYesNot in its docs
Live dashboards at their own linkYesNot in its docs
Scheduled reports and alertsYesNot in its docs
Attribution to CRM revenueYesNot in its docs
Data Studio, Sheets, BigQueryYesMCP clients only
Skills: whole tasks already writtenYesYou write the prompt

Use Google’s own if you’re a developer, need GA4 only, and read-only access is enough. Everything under Only one side is what happens when the job grows past that.

If Google’s own server asks for Python and a Cloud project

  • Python comes first. Google’s guide asks for Python 3.10 or higher and pipx or uv to run the server.
  • Then a Cloud project. You enable the Google Analytics Admin API and Data API in a Google Cloud project.
  • Then credentials. You set up Application Default Credentials with the analytics.readonly scope, using your own account or a service account.
  • Writes stay narrow. Google’s repository adds one write tool, create_property_annotation, and only with the --allow-write flag.
  • Porter needs a Google sign-in only. Paste Porter’s URL, sign in, and ask the same question.

And the third-party MCPs?

Plenty of servers rank for this search, and they split three ways. The job tells you which one you’re looking at.

  • Reporting connectors. They read GA4 into the chat and change nothing.
  • Managed servers. They host the server for you, usually around GA4 alone.
  • Open-source servers. Free to download and yours to run: you keep the credentials and update them when the API changes.

Porter reads, reports and fixes tracking from one hosted server, on every plan.

Google Analytics MCP pricing

The Google Analytics MCP is included in every Porter plan, the free-forever plan too. Reporting is billed per connected account, and each GA4 property counts as one account.

  • 14-day trial: everything unlimited, no credit card.
  • Free forever: unlimited connected accounts, 30 days of history (15 days in AI chats), 100 automation credits a month.
  • Paid Reporting: from $15 per account a month, or $12.50 billed annually.
  • Unlimited questions: AI chats, queries and dashboards are included. Reads are free; each completed change uses 1 automation credit.
5 accounts
Monthly billing
$40
Annual billing, per month
$33.33
Per account
$8.00

Reporting price for connected accounts, in USD. AI chats, queries and dashboards are unlimited. Annual billing is 10 months for 12.

The more accounts you connect, the lower the price per account. See the full calculator on Porter pricing.

Frequently asked questions

Is there an MCP for Google Analytics?

Yes. Google publishes an open-source server you run locally, and Porter hosts one at https://mcp.portermetrics.com/mcp. Both read GA4 through Google's official APIs. Porter adds a Google sign-in instead of a Cloud project, Search Console and ad data in the same chat, and key event fixes after approval.

What is the Google Analytics MCP server URL?

Porter's server URL is https://mcp.portermetrics.com/mcp, and you paste it into Claude, ChatGPT or any MCP client. Google's own server has no hosted URL. You install it from Google's analytics-mcp repository on GitHub and run it on your machine with Python and your own credentials.

Does Google have an official Google Analytics MCP?

Yes. Google's Google Analytics MCP server is open source and runs locally with Python 3.10 or higher, a Cloud project and Application Default Credentials. Google describes it as read-only. Its only write tool, property annotations, needs an --allow-write flag (as of November 2026).

Is GA4 MCP the same as Google Analytics MCP?

Yes. Google Analytics 4, or GA4, is the current version of Google Analytics, so both searches point to the same kind of server. Porter's Google Analytics connection reads GA4 properties, and its fields use the names you see in GA4, like Sessions and Key events.

What is MCP in Google Analytics? Is MCP an agent?

MCP is the Model Context Protocol, an open standard that lets AI apps like Claude read data from other tools. MCP is not the agent. Claude and ChatGPT are the agents, and MCP is how they reach your GA4 property through a server like Porter's.

How do I connect Claude to Google Analytics?

Install the Porter plugin from Claude Settings → Customize → Plugins. Add the portermetrics/porter marketplace, install Porter Metrics, connect the Porter connector and sign in with Google. Then ask about last month's sessions. Use the manual custom connector only when Claude asks for one.

Is the Google Analytics API free?

Porter's MCP costs nothing on any Porter plan, and it reaches GA4 through Google's official APIs within Google's property quotas. What you pay Porter for is Reporting, per connected property, and Automation credits when Claude changes settings. The free plan covers 30 days of history and 100 credits a month.

Start free

Connect Google Analytics to Claude or ChatGPT and ask why traffic moved, which pages convert and what to fix today.

Start free: unlimited GA4 properties, no credit card.

For agencies: every client property answers in one chat, and the Monday report is a link.
For SEO and content marketers: Search Console and GA4 finally sit in the same answer.
For analysts: broken key events reach you as a fix to approve, not a surprise in the report.