GoogleAnalytics-mcp-server
0
This project is an MCP server designed to facilitate interaction with the Google Analytics Data API v1. It provides tools for generating reports, managing audiences, and querying metadata, making it easy to explore and analyze Google Analytics data.
Google Analytics Data API MCP Server
A Model Context Protocol (MCP) server for interacting with the Google Analytics Data API v1. This server enables running reports, managing audiences, and accessing metadata.
Features
- Run standard and pivot reports
- Batch reporting capabilities
- Access metadata about dimensions and metrics
- Create, list, update, and delete audiences
- Check compatibility between dimensions and metrics
- Resource endpoints for GA data exploration
Prerequisites
- Node.js 14 or higher
- Google Analytics 4 property
- Google Cloud service account with permissions
Setup
- Clone the repository
- Install dependencies
- Configure environment variables with Google Analytics credentials
Usage
- Start the server and test with MCP Inspector
Available Tools
- Queries and audience management through resource endpoints