HomeOther › google-analytics-mcp

google-analytics-mcp

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Python
★ 242 stars Last pushed 2026-09-21 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (pypi 2.8.2)

uvx google-analytics-mcp

Or add to your MCP client config:

{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_VALUE>",
        "GA4_PROPERTY_ID": "<YOUR_VALUE>"
      }
    }
  }
}
  • GOOGLE_APPLICATION_CREDENTIALS required secret — Absolute path to your Google Cloud service account JSON key with GA4 property access.
  • GA4_PROPERTY_ID required — Numeric GA4 Property ID to query, for example 123456789.

Related servers

Data from the Official MCP Registry