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.
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:
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 READMErun-reportRuns a standard GA4 report with configurable metrics, dimensions, and date ranges.
run-realtime-reportGets real-time data for the past 30 minutes.
get-metadataRetrieves available metrics and dimensions for a GA4 property.
Comparable tools
Installation
Installation
pip install mcp-server-ga4Authentication
Set up Google Cloud authentication:
gcloud auth application-default loginClaude 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
Last updated · Auto-generated from public README + GitHub signals.