Google Analytics MCP Server

The experimental official Google Analytics 4 MCP server: reports, funnels and realtime data on request

  • 3,581 ★ on the repository
  • Last commit
  • Apache-2.0
MCP serverOfficial

Extended access

Why this level

  • Reads analytics data using Google credentials
  • Stores a path to a credentials file
All reasons and checks

googleanalytics/google-analytics-mcp

Install

Manual install

claude mcp add analytics-mcp \
  --scope user \
  -e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" \
  -e "GOOGLE_PROJECT_ID=YOUR_PROJECT_ID" \
  -- pipx run analytics-mcp

Set up ADC first with gcloud auth application-default login

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Reads analytics data using Google credentials
  • Stores a path to a credentials file

This is third-party code. Review the repository files before installing.

What it does

The server runs locally and calls the Google Analytics Admin API and Data API with read-only scope. The agent lists accounts and properties, reads property details and linked Google Ads accounts. It runs standard, funnel and realtime reports and reads custom dimensions and metrics. You can ask about traffic and events in plain language instead of building reports by hand.

Who it is for. For marketers, analysts and product managers who track site data in GA4.

Good fit when

  • You need a quick answer about traffic or events without building a report
  • You need to check property configuration and custom dimensions
  • You want a funnel or realtime view

Not a fit when

  • Your site analytics runs on Yandex Metrica
  • You need to change GA4 settings; the server is read-only

Example request

What were the most popular events in my GA4 property over the last 180 days?

MCP

Transport
stdio
Authentication
OAuth

Environment variables

GOOGLE_APPLICATION_CREDENTIALS required, secret
Path to the ADC credentials JSON
GOOGLE_PROJECT_ID
Google Cloud project ID

Limitations

The project is marked experimental. It needs a Google Cloud project with the Analytics APIs enabled, Application Default Credentials and pipx. Google Cloud access from Russia is restricted, so VPN-free use is not guaranteed.

How to disable. Run claude mcp remove analytics-mcp or delete the analytics-mcp block from ~/.gemini/settings.json.

FAQ

Can the agent change anything in Analytics?

No, credentials use a read-only scope and the tools only read data and configuration.

Which APIs must be enabled?

The Google Analytics Admin API and Data API in your Google Cloud project.

Discussion

No questions or reviews yet.

Google, Meta Ads and GA4 MCP

Google + Meta Ads + GA4 MCP

Needs a VPN

Remote MCP server for Google Ads, Meta Ads and Google Analytics 4 in one connection, OAuth login without API keys

MCP serverExtended access6.3KRepository stars

MCP server for Google Ads: analyze campaigns, metrics and keywords with GAQL queries right in the chat with an agent

MCP serverExtended access717Repository stars

Google Search Console MCP

Google Search Console MCP Server for SEOs

An MCP server for Google Search Console: queries and pages with clicks and positions, URL indexing checks, sitemaps and ready SEO skills

MCP serverExtended access2.1KRepository stars

Yandex Metrika MCP

Yandex Metrika MCP Server

Russian stack

MCP server for Yandex Metrika reports: traffic, sources, search phrases, goals, geography, devices and content analytics

MCP serverExtended access23Repository stars

An MCP server for Google Ads, Reddit Ads and GA4: the agent reads reports and edits campaigns, and only you turn on real spend

MCP serverBroad access290Repository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialAuthenticationRepository starsMain difference
Google Analytics MCP Server (this entry)yesOAuth3,581
walkerOS: event collection plugin for Claude Codeyes347the walkeros plugin for Claude Code
Search Console MCP: Google, Bing and GA4 data for agentsnoOAuth315an MCP server that gives an agent Google Search Console

README in short

The README lists the server tools in groups: account info, core reports and realtime reports. Setup has three steps: pipx, enabling APIs and ADC credentials via gcloud, then wiring it into Gemini CLI or Claude Code. Sample prompts and a video walkthrough link are included. Apache-2.0 licensed.

README badge

Report a problem

Foxx AIGoogle Analytics MCP Server
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.