Best for
- Analysts and teams that need to query GA4 properties through AI assistants.
- Workflows that benefit from GA4 schema discovery and server-side aggregation.
This stdio server provides GA4 queries, schema discovery, and analytical assistance. It requires service account credentials and a property ID; the README states that telemetry is enabled by default.
Strongest · Documentation 13/20 Weakest · Reliability 8/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Python
GOOGLE_APPLICATION_CREDENTIALS
Set this to the absolute path of a Google Cloud service account JSON key with GA4 property access; obtain the key from Google Cloud.
GA4_PROPERTY_ID
Set this to the numeric GA4 property ID to query; find it in Google Analytics property settings.
DO_NOT_TRACK
Set to `1` to disable telemetry before startup.
DISABLE_TELEMETRY
Set to `1` to disable telemetry before startup.
NO_TELEMETRY
Set to `1` to disable telemetry before startup.
GA_MCP_TELEMETRY
Set to `false` to disable telemetry before startup.
Configure the MCP client to run command uvx with argument google-analytics-mcp, and set GA4_PROPERTY_ID and GOOGLE_APPLICATION_CREDENTIALS in its environment. The README also provides examples for Claude Code, Cursor, Google Antigravity, and VS Code clients.
{"mcpServers":{"google-analytics":{"command":"uvx","args":["google-analytics-mcp"],"env":{"GA4_PROPERTY_ID":"your_ga4_property_id","GOOGLE_APPLICATION_CREDENTIALS":"/path/to/service_account.json"}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"google-analytics": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GA4_PROPERTY_ID": "your_ga4_property_id",
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service_account.json"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.google-analytics] command = "uvx" args = ["google-analytics-mcp"] [mcp_servers.google-analytics.env] GA4_PROPERTY_ID = "your_ga4_property_id" GOOGLE_APPLICATION_CREDENTIALS = "/path/to/service_account.json"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add google-analytics -e GA4_PROPERTY_ID=your_ga4_property_id -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json -- uvx google-analytics-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that `get_ga4_data` and `search_schema` appear in your client’s tool list. Call `list_properties` and check that it returns GA4 property information to verify the connection.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
This MCP server connects AI assistants to Google Analytics 4 data about website traffic, user behavior, and performance. It offers report queries, dimension and metric discovery, server-side aggregation, and analytical guides.
Manage UniFi Network controllers through MCP.
Manage UniFi networks and devices through MCP.
Ask your affiliate networks in plain English from your AI workspace.
Run 119 Horosa astrology and metaphysics techniques locally.
Source revision ebabee7c3db7 Data synced 2026-12-05 Read the FMRS scoring method Markdown