← Back to browse

google-analytics-mcp

Indexed by io.github.surendranb

About

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

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsGOOGLE_APPLICATION_CREDENTIALS GA4_PROPERTY_ID
Claude Code
claude mcp add --env GOOGLE_APPLICATION_CREDENTIALS= --env GA4_PROPERTY_ID= google-analytics-mcp -- uvx google-analytics-mcp
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"google-analytics-mcp","command":"uvx","args":["google-analytics-mcp"],"env":{"GOOGLE_APPLICATION_CREDENTIALS":"","GA4_PROPERTY_ID":""}}'
JSON
{
  "mcpServers": {
    "google-analytics-mcp": {
      "command": "uvx",
      "args": [
        "google-analytics-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "",
        "GA4_PROPERTY_ID": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.