Google Analytics 4
Google Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@mindstone/mcp-server-google-analyticsclaude mcp add google-analytics-4 -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -- npx -y @mindstone/mcp-server-google-analytics@0.2.1
{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-google-analytics@0.2.1"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<GOOGLE_APPLICATION_CREDENTIALS>",
"GA4_PROPERTY_ID": "<GA4_PROPERTY_ID>"
}
}
}
}
Environment variables
GOOGLE_APPLICATION_CREDENTIALSrequired Absolute path to ADC or service-account JSON fileGA4_PROPERTY_IDDefault GA4 property ID (e.g. 123456789)
Frequently asked questions
What is Google Analytics 4?
Google Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools
How do I install Google Analytics 4?
It runs on your machine. In Claude Code: claude mcp add google-analytics-4 -e 'GOOGLE_APPLICATION_CREDENTIALS=<GOOGLE_APPLICATION_CREDENTIALS>' -e 'GA4_PROPERTY_ID=<GA4_PROPERTY_ID>' -- npx -y @mindstone/mcp-server-google-analytics@0.2.1. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Google Analytics 4 need an API key?
Yes. It expects GOOGLE_APPLICATION_CREDENTIALS, which you set in its configuration.
Is Google Analytics 4 open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains Google Analytics 4?
It is published by mindstone. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.