LogoSTMCP
Download
google-analytics-mcp

Google Analytics MCP Server

Google Analytics MCP Server connects GA4 data to Claude, Cursor and other MCP clients, enabling natural language queries for website traffic, user behavior, and analytics with access to 200+ GA4 dimensions and metrics.

Tools

1. get_ga4_data

Retrieve GA4 data with custom dimensions and metrics, including smart data volume warnings and server-side aggregation.

2. list_dimension_categories

Browse available dimension categories.

3. list_metric_categories

Browse available metric categories.

4. get_dimensions_by_category

Get dimensions for a specific category.

5. get_metrics_by_category

Get metrics for a specific category.

Open Graph image for Google Analytics MCP Server

JSON Config

{
  "mcpServers": {
    "ga4-analytics": {
      "command": "python3",
      "args": ["-m", "ga4_mcp_server"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/service-account-key.json",
        "GA4_PROPERTY_ID": "123456789"
      }
    }
  }
}

Useful Links

Information