Builders: list your MCP server or AI tool for free.Submit a listing
Analytics and dataMCP serverOfficial

Google Analytics MCP Server

Run GA4 reports and check property settings from an AI client in plain language

By Google AnalyticsLast checked Local or Remote server

In short: Google's open-source MCP server for Google Analytics 4. Ask an AI client for traffic, conversion and funnel reports straight from your GA4 properties.

What it does

The Google Analytics MCP Server is an open-source project from the Google Analytics team. It connects an AI client to the Google Analytics Admin API and Data API, so you can ask for a report in plain language and get numbers from your own GA4 properties.

A typical request looks like this: “Compare sessions and key events by channel for the last 28 days against the previous period.” The client picks the right dimensions and metrics, runs the report through the server and explains the result.

Good uses for marketing teams

  • Weekly channel reports without building a Looker Studio dashboard first
  • Quick checks after a launch, using realtime reports
  • Funnel questions, such as where visitors drop off between landing page and sign-up
  • Spotting which campaigns bring traffic that converts, using conversion and attribution data

Things to know

  • You need a Google Cloud project and Application Default Credentials. This is the slowest part of the setup for most teams.
  • The server runs locally by default. It can also be hosted as a shared HTTP service with per-user Google sign-in, which needs engineering help.
  • Keep the default read-only mode unless you have a clear reason to let an AI client change property settings.
  • Answers are only as good as the client’s choice of metrics. Check the dimensions and date range it used before you share a number.

What it can do

  • List the Google Analytics accounts and GA4 properties your credentials can see
  • Run standard reports with any dimensions, metrics and date ranges the Data API supports
  • Run funnel reports and conversion reports with ad cost and attribution data
  • Run realtime reports to check traffic in the last few minutes
  • Read custom dimensions, custom metrics and key events defined on a property
  • List the Google Ads accounts linked to a property
  • Create annotations, custom dimensions and key events when you start it with the allow-write flag

How to set it up

  1. Install pipx so you can run the Python package without managing a virtual environment.
  2. In a Google Cloud project, enable the Google Analytics Admin API and the Google Analytics Data API.
  3. Set up Application Default Credentials with the gcloud CLI for a user or service account that can see your GA4 properties. Include the analytics.readonly scope.
  4. Add the server to your AI client with the configuration below, replacing the credentials path and project ID.
  5. Restart the client and ask it to list your GA4 properties to confirm the connection works.

Example client configuration from the publisher’s docs. Replace the placeholder values with your own.

{
  "mcpServers": {
    "analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
        "GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
      }
    }
  }
}

Works with

Based on the publisher’s documentation and the transport the server uses. Check the publisher’s docs for the latest list.

Questions about Google Analytics MCP Server

Can the Google Analytics MCP server change my GA4 settings?

Only if you allow it. By default the server runs read-only tools. Write tools, such as creating annotations or key events, need the allow-write flag and credentials with the analytics.edit scope.

Does it work with Universal Analytics properties?

No. It uses the Google Analytics Admin and Data APIs, which cover GA4 properties.

Sources

We checked this listing against these pages on 29 November 2026.

Spotted something out of date? Email listings@marketingmcphub.com.