G

Google Analytics MCP Server

Query GA4 traffic, conversions, and audience data from AI agents.

free 61/100 Monitoring & Observability analytics google ga4 traffic conversions marketing

A Model Context Protocol server for Google Analytics 4. Enables AI agents to query traffic data, conversion metrics, audience segments, page performance, and real-time analytics via natural language.

Supports custom report generation, landing page analysis, user behavior tracking, and campaign performance monitoring without navigating the GA4 UI.

Install

pip install analytics-mcp

MCP Client Config

{
  "mcpServers": {
    "google-analytics": {
      "command": "analytics-mcp",
      "args": [],
      "env": {
        "GA_PROPERTY_ID": "<your-property-id>",
        "GOOGLE_APPLICATION_CREDENTIALS": "<path-to-service-account-key>"
      }
    }
  }
}

Required Environment Variables

  • GA_PROPERTY_ID
  • GOOGLE_APPLICATION_CREDENTIALS

Capabilities

Tools

run_reportget_realtime_datalist_propertiesget_audience_overviewget_top_pages

Compatible With

Claude Desktop Claude Code Cursor Windsurf

Pricing

Server and GA4 are free. GA360 has enterprise pricing.

Metrics

1,731

GitHub Stars

0

Installs

0

Weekly

14

Open Issues