Google Analytics Data API MCP Server logo

Google Analytics Data API MCP Server

by eno-graph

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

View on GitHub

Last updated: N/A

What is Google Analytics Data API MCP Server?

This is a Model Context Protocol (MCP) server that provides an interface for accessing the Google Analytics Data API. It allows users to retrieve reports and real-time data from Google Analytics 4 (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 Claude Desktop to use the server by adding it to the mcpServers configuration.

Key features of Google Analytics Data API MCP Server

  • Retrieves reports based on specified date ranges, metrics, and dimensions

  • Retrieves real-time data

  • Provides access to Google Analytics property metadata

  • Supports integration with Claude Desktop

Use cases of Google Analytics Data API MCP Server

  • Generating custom reports for specific time periods

  • Monitoring real-time user activity on a website or app

  • Analyzing user behavior and trends

  • Integrating Google Analytics data into Claude workflows

FAQ from Google Analytics Data API MCP Server

What is the purpose of this MCP server?

It provides an interface to access the Google Analytics Data API, allowing you to retrieve data programmatically.

What are the prerequisites for using this server?

You need a Google Cloud project with the Analytics Data API enabled, a service account with proper permissions, and the required environment variables configured.

How do I install the server?

Clone the repository, install dependencies using npm install, and build the project using npm run build.

How do I configure Claude Desktop to use this server?

Add the server configuration to the mcpServers section of your Claude Desktop configuration file, specifying the command, arguments, and environment variables.

What kind of data can I retrieve using this server?

You can retrieve reports based on specified metrics and dimensions, as well as real-time data about active users.