AdYour product here, seen by people installing AI tools every day Sponsor slots open: 12 of 12, from $249 a month

ga4

Community

MCP server by mharnett · updated · ★ 0 · 107 downloads a week

Score 30

Google Analytics 4 MCP: reports, realtime data, custom dimensions, data streams. ga4 is a community project by mharnett, not verified by a company domain.

Yours? Claim it
Maintenance

Last commit 22 days ago

Licence

MIT: permissive, fine for commercial use

Quality

Clear description, published package or server URL, original repository

Security

Not checked yet. What we check

What you need

SettingNeededWhat it is
GA4_PROPERTY_IDEnvironment variableRequiredGA4 property ID (numeric)
GOOGLE_APPLICATION_CREDENTIALSEnvironment variableRequiredPath to service account JSON credentials file

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Install ga4

Built from the published package, never by AI
claude mcp add ga4 -e GA4_PROPERTY_ID=YOUR_GA4_PROPERTY_ID -e GOOGLE_APPLICATION_CREDENTIALS=YOUR_GOOGLE_APPLICATION_CREDENTIALS -- npx -y mcp-ga4

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install ga4 in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ga4 block.

Alternatives to ga4

All alternatives →

ga4: common questions

How do I install ga4?

In Claude Code run claude mcp add ga4 -e GA4_PROPERTY_ID=YOUR_GA4_PROPERTY_ID -e GOOGLE_APPLICATION_CREDENTIALS=YOUR_GOOGLE_APPLICATION_CREDENTIALS -- npx -y mcp-ga4. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is ga4 the official server?

ga4 is a community project by mharnett, not verified by a company domain.

Is ga4 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ga4 safe to use?

It scores 30 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.

What are alternatives to ga4?

Similar MCP servers: Power BI Authoring MCP Server (Local), Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Excel MCP Server.

Does ga4 work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.