Google Analytics MCP servers

Google publishes an open-source Google Analytics MCP server that uses the GA4 Admin and Data APIs. You run it yourself with pipx and your own Google Cloud credentials, and it is read-only unless you turn on its write tools.

Docs reviewed Nov 20, 20264 optionsAnalytics and attribution

Short answer

Best for GA4 reporting from an assistant Google Analytics MCP

It is Google's own server, runs standard, funnel, conversions and realtime reports, and changes nothing in your property by default.

All 4 options compared

Official first. Everything here comes from each server's own docs.

Google Analytics MCPGoogle Analytics
Official

Google's open-source MCP server for Google Analytics 4, installed with pipx and signed in through Google Application Default Credentials. It can also be hosted as a multi-tenant HTTP service where each user signs in with Google OAuth.

  • List your GA accounts and properties and read property details
  • Run standard reports and funnel reports with the Data API
  • Run conversions reports with ad costs, conversions, ROAS and attribution models
  • Run realtime reports

Setup takes a Google Cloud project with the Analytics Admin and Data APIs enabled, plus gcloud credentials with the analytics.readonly scope. Write tools need the --allow-write flag, the analytics.edit scope and the Editor role (Marketer or Editor for key events).

Local or self-hostedRead-only
Gateway

Connect an AI agent to multiple business applications through one MCP integration.

Hosted (remote URL)
Gateway

Expose selected app actions to AI assistants through a managed integration server.

Hosted (remote URL)OAuthRead and write
Pipedream MCPPipedream
Gateway

Connect AI clients to app actions with managed account authentication.

Connection details in the docs

Composio Connect: A Google Analytics toolkit with 84 tools for accounts, properties, audiences, custom dimensions, key events, data streams and reports, signed in with Google OAuth. Source, checked Nov 20, 2026.

Zapier MCP: GA4 actions to run a report, create a conversion event, send Measurement Protocol events and find a conversion. Source, checked Nov 20, 2026.

Pipedream MCP: Six Google Analytics actions, including Run Report in GA4, Create Key Event and Create GA4 Property, each exposed as an MCP tool. Source, checked Nov 20, 2026.

Set it up

Google Analytics MCP

Gemini CLI
  1. Install pipx, then enable the Google Analytics Admin API and Google Analytics Data API in your Google Cloud project.
  2. Set up Application Default Credentials for a user with access to your GA properties, for example: gcloud auth application-default login --scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform --client-id-file=YOUR_CLIENT_JSON_FILE
  3. Copy the credentials file path that gcloud prints.
  4. Add the block below to ~/.gemini/settings.json, with your credentials path and Google Cloud project ID.
  5. Start Gemini CLI and type /mcp to check that analytics-mcp is listed.
{
  "mcpServers": {
    "analytics-mcp": {
      "command": "pipx",
      "args": ["run", "analytics-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
        "GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
      }
    }
  }
}

From the vendor's docs.

Claude Code
  1. Install pipx, enable the two Analytics APIs and set up Application Default Credentials as in the Gemini CLI steps.
  2. Run the command below with your credentials path and Google Cloud project ID.
  3. To allow write tools, add --allow-write after analytics-mcp and include the analytics.edit scope in your credentials.
claude mcp add analytics-mcp \
  --scope user \
  -e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" \
  -e "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" \
  -- pipx run analytics-mcp

From the vendor's docs.

Prompts to start with

Channel report

For my GA4 property, show sessions, engaged sessions and key events by session default channel group for the last 28 days compared with the previous 28 days.

Landing pages

List the 20 landing pages with the most sessions in the last 30 days, with engagement rate and key events for each.

Funnel drop-off

Run a funnel report from page_view to add_to_cart to begin_checkout to purchase for the last 30 days and tell me where most users drop off.

Paid performance

Run a conversions report for the last 30 days showing ad cost, conversions and ROAS by campaign.

Live check

Show realtime active users by country and by page for the last 30 minutes.

Questions

Is there an official Google Analytics MCP server?

Yes. Google maintains analytics-mcp at github.com/googleanalytics/google-analytics-mcp. It uses the Google Analytics Admin API and Data API and is published on PyPI as analytics-mcp.

Can it change my GA4 property?

Not by default. Three write tools, create_property_annotation, create_custom_dimension and create_key_event, are available only when you start the server with --allow-write and your credentials include the analytics.edit scope.

Do I need an API key?

No. The server uses Google Application Default Credentials, either your user account through an OAuth client or service account impersonation, with the analytics.readonly scope. You also need a Google Cloud project with the Analytics Admin and Data APIs enabled.

Is there a hosted version?

Google does not host one, but you can run it yourself as a multi-tenant HTTP service with --transport http, where each user signs in with their own Google account. The repo includes a Dockerfile and Cloud Run deployment steps.