MCP Catalogs
Home

mcp-server-ga4

by harshfolio·19·Score 35

An MCP server enabling LLMs to access and analyze Google Analytics 4 data through GA4 Data API.

ai-llmproductivitydeveloper-tools
8
Forks
0
Open issues
14 mo ago
Last commit
2d ago
Indexed

Overview

This MCP server provides seamless integration between large language models and Google Analytics 4 data, allowing LLMs to run reports, access real-time data, and retrieve metadata through the GA4 Data API. It features secure authentication using Google Cloud's Application Default Credentials and supports customizable reports with various dimensions, metrics, and date ranges. The server is designed for easy deployment and can be configured via command line arguments or environment variables.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Generate natural language summaries of website traffic and user behavior data from GA4
you:Create automated reports by having an LLM query GA4 data based on specific business questions
you:Integrate real-time analytics capabilities into AI-powered assistants for immediate insights
you:How do I authenticate with Google Analytics?
you:What data can I access with this server?

When to choose this

Choose this if you need to integrate Google Analytics 4 data into AI applications through MCP protocol and already have GA4 set up with proper authentication.

When NOT to choose this

Don't choose this if you need GA4 data from multiple accounts or require write access to GA4 (this server is read-only only).

Tools this server exposes

3 tools extracted from the README
  • run-report

    Runs a standard GA4 report with configurable metrics, dimensions, and date ranges.

  • run-realtime-report

    Gets real-time data for the past 30 minutes.

  • get-metadata

    Retrieves available metrics and dimensions for a GA4 property.

Comparable tools

ga-mcpanalytics-api-integrationgoogle-analytics-connector

Installation

Installation

pip install mcp-server-ga4

Authentication

Set up Google Cloud authentication:

gcloud auth application-default login

Claude Desktop Configuration

{
    "mcpServers": {
        "ga4": {
            "command": "mcp-server-ga4",
            "args": ["--property-id", "YOUR_GA4_PROPERTY_ID"]
        }
    }
}

FAQ

How do I authenticate with Google Analytics?
The server uses Google Cloud's Application Default Credentials (ADC). Run 'gcloud auth application-default login' to set up authentication after enabling the Google Analytics Data API in your Google Cloud project.
What data can I access with this server?
You can run standard GA4 reports with custom dimensions and metrics, access real-time data for the past 30 minutes, and retrieve metadata about available metrics and dimensions for your GA4 property.

Compare mcp-server-ga4 with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.