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.
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).
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
G Gemini CLI
Install pipx, then enable the Google Analytics Admin API and Google Analytics Data API in your Google Cloud project.
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
Copy the credentials file path that gcloud prints.
Add the block below to ~/.gemini/settings.json, with your credentials path and Google Cloud project ID.
Start Gemini CLI and type /mcp to check that analytics-mcp is listed.
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.