Google Analytics MCP Server (GA4) for ChatGPT & Claude

Query GA4 in plain English inside ChatGPT and Claude with a hosted Google Analytics MCP server.

Description

Safe MCP is a hosted, read-only Google Analytics 4 MCP server. It lets Claude, ChatGPT, and other MCP-compatible clients query GA4 properties in plain English without exporting CSVs or handing over static API keys.

Features

  • Read-only GA4 reporting for standard metrics and dimensions
  • Property and stream discovery for connected Google Analytics accounts
  • Funnel analysis with chart rendering
  • Standalone conversion-rate significance testing
  • OAuth-based authentication with per-user GA4 access
  • Hosted operation with privacy and support pages

Setup

Claude.ai

  1. Open Claude and add the remote MCP server URL https://api.safe-mcp.com/mcp.
  2. Complete the OAuth flow when Claude prompts for authentication.
  3. Run one discovery query first to verify the correct GA4 property is available.

Claude Desktop

  1. Add the Safe MCP server URL https://api.safe-mcp.com/mcp in Claude Desktop MCP settings.
  2. Save the connection and complete OAuth when prompted.
  3. Ask for a small GA4 report before running larger analytical prompts.

Claude Code / local MCP testing

  1. Use the same remote MCP URL: https://api.safe-mcp.com/mcp.
  2. Ensure your OAuth client allows the Claude/local callback URLs listed in the deployment guide.
  3. Confirm /mcp and both OAuth metadata routes respond before testing tools.

Authentication

Safe MCP uses OAuth authorization code flow with PKCE. The server requests read-only GA4 access and a paid-access entitlement scope. The first successful sign-in links the Google account to the MCP user, after which Claude can call the server tools directly.

Working examples

Example 1: Discover accessible properties

Prompt:

List the Google Analytics accounts, properties, and streams available in my connected GA4 app.

Expected tool:

ga4_get_account

Example 2: Run a standard GA4 report

Prompt:

For GA4 property 481373915, show the top 10 landing pages by sessions for the last 30 days.

Expected tool:

ga4_get_data

Example 3: Run a funnel report

Prompt:

Run a funnel report for property 481373915 for the last 30 days with two steps: session_start, then purchase.

Expected tool:

ga4_run_funnel_report

Example 4: Compare two conversion rates

Prompt:

Run a significance test comparing Group A with 120 conversions out of 1000 visitors versus Group B with 150 conversions out of 1000 visitors.

Expected tool:

stats_significance_test

Privacy

Review the privacy policy at /privacy.html. Safe MCP is designed for read-only GA4 access and should not be used to modify analytics configuration.

Support

  • Support email: daniel@davia.ventures
  • Support/legal page: /imprint.html

Notes

  • Use Safe MCP for interactive analysis, not bulk data export.
  • For the cleanest results, start with one property and one focused question per prompt.
  • If your deployment uses custom firewall rules, allow Claude client traffic before submission.

Start with Safe MCP

If you need fast, reliable Google Analytics answers inside ChatGPT or Claude, Safe MCP gives you a direct path from question to action.