Skip to content
Sam DespoNewsletter
Marketing & Analytics

Google Analytics MCP

Lets Claude pull reports from Google Analytics 4 and explain what the numbers mean.

Open sourceBy Google Analytics team
View on the web

What is it?

Google Analytics 4 holds the answers but hides them behind a confusing interface. This server, published by the Google Analytics team, lets Claude run the reports for you and talk through what changed and why.

It is read-only, so nothing can be broken. Setup is the hard part: you need a Google Cloud project with the Analytics APIs switched on, a one-off sign-in with Google's command-line tool, and Python on your machine. Budget 20 minutes.

It is labelled experimental, which in practice means the setup may change rather than that it is unreliable.

What Claude can do once it's connected

  • List your GA4 properties and their settings
  • Run standard reports: traffic, pages, channels, conversions
  • Build funnel reports
  • Check what is happening on the site right now
  • Compare periods and explain the change in plain words

Install in Claude Code

Open your terminal in the project folder and run:

Command
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

Or add this to your project's .mcp.json:

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

You'll be asked to sign in or paste an API key the first time you use it.

Who it's for

Marketers and site owners who want answers from GA4 without learning Explorations.

Best for

  • Monthly traffic reports
  • Explaining a dip
  • Funnel analysis
  • Channel comparisons

Why it made the list

It comes from Google's own analytics team, and it turns the least-loved marketing interface into a conversation.

More MCPs like this

  • DataForSEO MCP

    Marketing & Analytics

    Gives Claude live search rankings, keyword volumes and backlink data for any site.

    Paid
  • HubSpot MCP

    Marketing & Analytics

    Lets Claude find and update contacts, deals and tickets in your HubSpot CRM.

    Free
  • Vercel MCP

    Coding & Deployment

    Lets Claude deploy your site, read deployment logs and check why a build failed.

    Free
  • Klaviyo MCP

    Marketing & Analytics

    Lets Claude report on your email campaigns and flows, and draft new ones in Klaviyo.

    Freemium