Google Analytics logo

Google Analytics MCP Server

Google Analytics' official MCP server queries GA4 reports, dimensions and metrics. It is an official, vendor-maintained server. Works in Claude and Cursor.

Google Analytics

What Google Analytics can do

Google Analytics' official MCP server queries GA4 reports, dimensions, metrics

Tools Google Analytics exposes

4 tools · from docs

The exact tools this MCP server gives your AI.

run_reportRun a GA4 reportread
get_realtimeRead realtime dataread
list_dimensionsList dimensionsread
list_metricsList metricsread

Try asking Claude

Example prompts once Google Analytics is connected.

Pull a GA4 report.
Check traffic by channel.
Read conversions.

Set up Google Analytics

Pick your client. Every snippet is copy-ready.

Claude Desktop → Settings → Developer → Edit Config (claude_desktop_config.json).

{
  "mcpServers": {
    "google-analytics": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ]
    }
  }
}

Permissions & safety

Read-onlyAuth: OAuth 2.1

Runs locally, so your data stays on your machine and only what the AI needs is sent to the model.

This server is read-only, so it cannot change your data.

Troubleshooting

“command not found” when the client starts the server
Install the runtime it needs (Node.js for npx, uv for uvx) and make sure it’s on your PATH.
Tools don’t appear after adding it
Fully restart the client (Claude Desktop, Cursor). Local servers load on startup.
A tool returns nothing for your Google Analytics data
Confirm the account you authorised actually contains that data, and that your plan includes it.

FAQ

Google Analytics runs as a local MCP server. Get its install command from https://github.com/googleanalytics/google-analytics-mcp, add it to your client's MCP config, then restart the client.

More Web & Product Analytics MCP servers

Want Search Console and GA4 together with Google Maps rankings in Claude?

Try GBPAudit.AI
A
Written by Ari · Founder

Running a digital business since 2019 and a local SEO agency, Ari built and shipped GBPAudit.AI as a Claude connector. Every server here is connected and its tools read before it's listed.

Something wrong with this listing? Report it.