Skip to content
Marketing & Analytics

Google Analytics MCP

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

FreeOpen 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's read-only, so it can't break anything. 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's labelled experimental. In practice that means the setup may change, not that it's 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 that show where visitors drop off
  • 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 (the text window where you run Claude Code) in your project folder, then paste this command to connect it:

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"
      }
    }
  }
}

The first time you use it, you'll be asked to sign in or paste an API key (a private code from the app that lets Claude use your account).

Who it's for

Marketers and site owners who want answers from GA4 without learning its custom report builder.

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.

Made Google Analytics MCP?

Add this badge to your website so your visitors can read the review.

Featured on samdespo.com

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

    Deploy your site, read the logs and find out why a build failed, all from Claude.

    Free
  • Ahrefs MCP

    Marketing & Analytics

    Lets Claude pull keywords, backlinks, rankings and AI search visibility from Ahrefs.

    Paid