google-analytics-mcp
An open-source MCP server that provides AI agents with analysis-ready access to Google Analytics 4 data. It supports schema discovery, server-side aggregation, and safe defaults to reduce data wrangling. Agents can run multi-dimensional reports, list accounts and properties, and fetch metadata to explore website traffic, user behavior, and performance data.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 244 GitHub stars
What you can do with it
- Run multi-dimensional GA4 reports with automated metric totals
- List all accessible Google Analytics accounts and permission levels
- Fetch complete dimension and metric metadata for schema discovery
- Explore website traffic and user behavior data for AI agents
Source and maintenance
- Last repository push
- Latest release
- v2.11.7
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
google-analytics-mcp 2.11.7
{
"version": "2.11.7",
"transport": "stdio",
"identifier": "google-analytics-mcp",
"registryType": "pypi",
"environmentVariables": [
{
"name": "GOOGLE_APPLICATION_CREDENTIALS",
"format": "string",
"isRequired": true,
"description": "Absolute path to your Google Cloud service account JSON key with GA4 property access."
},
{
"name": "GA4_PROPERTY_ID",
"format": "string",
"isRequired": true,
"description": "Numeric GA4 Property ID to query, for example 123456789."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"google-analytics-mcp-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp==2.11.7"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Cline
{
"mcpServers": {
"google-analytics-mcp-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp==2.11.7"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}VS Code
{
"servers": {
"google-analytics-mcp-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp==2.11.7"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"google-analytics-mcp-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp==2.11.7"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<YOUR_GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<YOUR_GA4_PROPERTY_ID>"
}
}
}
}Let your agent find its tools
Find servers like google-analytics-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.