Google Analytics Data API MCP Server
by mattcoatsworth
This is a Model Context Protocol (MCP) server for interacting with the Google Analytics Data API v1. It provides tools and resources for querying Google Analytics data, managing audiences, and accessing metadata.
Last updated: N/A
What is Google Analytics Data API MCP Server?
A Model Context Protocol (MCP) server designed to facilitate interaction with the Google Analytics Data API v1. It enables users to query Google Analytics data, manage audiences, and access metadata through a standardized protocol.
How to use Google Analytics Data API MCP Server?
To use this server, clone the repository, install dependencies using npm install
, configure the .env
file with your Google Analytics credentials, and start the server with npm start
. You can then use the available tools and resources to query data and manage audiences.
Key features of Google Analytics Data API MCP Server
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
Comprehensive resource endpoints for exploring GA data
Use cases of Google Analytics Data API MCP Server
Generating custom reports from Google Analytics data
Automating audience management tasks
Integrating Google Analytics data into other applications
Exploring and understanding Google Analytics metadata
FAQ from Google Analytics Data API MCP Server
What is the purpose of this server?
What is the purpose of this server?
This server provides a convenient way to interact with the Google Analytics Data API v1 using the Model Context Protocol (MCP).
What are the prerequisites for using this server?
What are the prerequisites for using this server?
You need Node.js 14 or higher, a Google Analytics 4 property, and a Google Cloud service account with appropriate permissions.
How do I configure the server?
How do I configure the server?
Create a .env
file based on .env.example
and fill in your Google Analytics credentials.
How do I run the server?
How do I run the server?
Run npm start
in the project directory.
What kind of reports can I generate?
What kind of reports can I generate?
You can run standard reports, pivot reports, and batch reports.