Google Analytics Data API MCP Server logo

Google Analytics Data API MCP Server

by MCP-Mirror

This MCP server provides an interface to access the Google Analytics Data API using the Model Context Protocol (MCP). It offers tools and resources to retrieve reports and real-time data from Google Analytics 4 properties.

View on GitHub

Last updated: N/A

What is Google Analytics Data API MCP Server?

This is an MCP (Model Context Protocol) server that allows you to access the Google Analytics Data API. It provides tools and resources to retrieve reports and real-time data from your GA4 properties.

How to use Google Analytics Data API MCP Server?

To use this server, you need to set up a Google Cloud project, enable the Analytics Data API, create a service account, and grant it access to your GA4 property. Then, clone the repository, install dependencies, configure environment variables, and start the server. Finally, configure your Claude Desktop to use the server.

Key features of Google Analytics Data API MCP Server

  • Retrieve reports based on date range, metrics, and dimensions

  • Get real-time data

  • Access Google Analytics property metadata

  • Integration with Claude Desktop

Use cases of Google Analytics Data API MCP Server

  • Analyzing website traffic

  • Monitoring user engagement

  • Generating custom reports

  • Integrating analytics data into Claude workflows

FAQ from Google Analytics Data API MCP Server

What is the Model Context Protocol (MCP)?

MCP is a protocol for communication between applications and data sources.

What is Google Analytics Data API?

The Google Analytics Data API is a modern API to access Google Analytics 4 (GA4) report data programmatically.

How do I get my GA4 property ID?

You can find your GA4 property ID in the Google Analytics interface under Admin > Property Settings.

What are the required environment variables?

You need to set GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, and GA_PROPERTY_ID environment variables.

Where can I find more detailed setup instructions?

Refer to the setup guide in the docs/setup-guide.md file.