Skip to content
Cursor

Google Analytics 4 for Cursor

io.github.stucchi/google-analytics

Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

client:Cursor transport:stdio runtime:pypi

Install Google Analytics 4 in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "google-analytics": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "google-analytics-4-mcp"
      ],
      "env": {
        "GA_CREDENTIALS": "<GA_CREDENTIALS>",
        "GA_CREDENTIALS_PATH": "<GA_CREDENTIALS_PATH>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Google Analytics 4 in other clients