MCP server
Ga4
io.github.mharnett/ga4
Checked 26 Oct 2026, 08:31 UTC · Still published on its registry; checked against OSV.dev; never run by us
Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams.
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Runs on your computer
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code
- Last checked
- 26 Oct 2026, 08:31 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. It then runs the package on your computer with your permissions. For other apps, copy the setup below.
Claude Code
claude mcp add ga4 --env GA4_PROPERTY_ID=YOUR_VALUE --env GOOGLE_APPLICATION_CREDENTIALS=YOUR_VALUE -- npx -y mcp-ga4@2.0.1
Claude Desktop
{"mcpServers":{"ga4":{"command":"npx","args":["-y","mcp-ga4@2.0.1"],"env":{"GA4_PROPERTY_ID":"YOUR_VALUE","GOOGLE_APPLICATION_CREDENTIALS":"YOUR_VALUE"}}}}
Codex (config.toml)
[mcp_servers.ga4]
command = "npx"
args = ["-y","mcp-ga4@2.0.1"]
env = { GA4_PROPERTY_ID = "YOUR_VALUE", GOOGLE_APPLICATION_CREDENTIALS = "YOUR_VALUE" }
Gemini CLI
{"mcpServers":{"ga4":{"command":"npx","args":["-y","mcp-ga4@2.0.1"],"env":{"GA4_PROPERTY_ID":"YOUR_VALUE","GOOGLE_APPLICATION_CREDENTIALS":"YOUR_VALUE"}}}}
Cursor
{"mcpServers":{"ga4":{"command":"npx","args":["-y","mcp-ga4@2.0.1"],"env":{"GA4_PROPERTY_ID":"YOUR_VALUE","GOOGLE_APPLICATION_CREDENTIALS":"YOUR_VALUE"}}}}
VS Code
{"servers":{"ga4":{"type":"stdio","command":"npx","args":["-y","mcp-ga4@2.0.1"],"env":{"GA4_PROPERTY_ID":"YOUR_VALUE","GOOGLE_APPLICATION_CREDENTIALS":"YOUR_VALUE"}}}}
Runs on your computer with your permissions: check the package and its source before installing. Replace YOUR_VALUE with your own GA4_PROPERTY_ID, GOOGLE_APPLICATION_CREDENTIALS.
Browse
Related MCP servers
- Google_analytics
Google Analytics MCP Pack - iDos Games
Configure cross-platform and web3 games on iDos Games: live config, tokens, NFTs, AI assets, builds. - Google Analytics (unofficial)
Connect Google Analytics to ChatGPT. Query GA4 data in plain English and get instant insights. - oriiion
Your marketing, a message away - api.video MCP by usefulapi
Manage videos and live streams, inspect captions, players and webhooks, and read play analytics. - ecomdly
E-commerce skills for AI agents: feeds, Google Shopping, GA4. Your private Brain when signed in. - emdly
Search, install and submit Markdown skills for AI agents; private Brain files when signed in. - Google_ads
Google Ads MCP Pack
Badge for your README
[](https://aptlynx.net/servers/io.github.mharnett/ga4)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents