mcp-google-analytics
A Model Context Protocol server for Google Analytics 4 that provides both read and write capabilities. It integrates with the Google Analytics Data API for reports and Measurement Protocol v2 for sending events, allowing agents to run reports, audit setups, and send server-side events.
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 2 GitHub stars
What you can do with it
- Run reports and funnels
- Audit custom dimensions and key events
- Send ecommerce and conversion events server-side
- Verify events in the realtime report
Source and maintenance
- Last repository push
- Latest release
- v1.3.1
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-google-analytics 1.3.0
{
"version": "1.3.0",
"transport": "stdio",
"identifier": "mcp-google-analytics",
"registryType": "npm",
"environmentVariables": [
{
"name": "GA_SERVICE_ACCOUNT_JSON",
"format": "string",
"description": "Service account JSON for reading reports: file path or inline JSON (needed for read tools)"
},
{
"name": "GA_PROPERTY_ID",
"format": "string",
"description": "Numeric GA4 property ID, e.g. 123456789 (needed for read tools)"
},
{
"name": "GA_MEASUREMENT_ID",
"format": "string",
"description": "Measurement ID of the data stream, e.g. G-XXXXXXXXXX (needed for event-sending tools)"
},
{
"name": "GA_API_SECRET",
"format": "string",
"description": "Measurement Protocol API secret (needed for event-sending tools)"
}
]
}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": {
"mcp-google-analytics": {
"command": "npx",
"args": [
"-y",
"mcp-google-analytics@1.3.0"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<YOUR_GA_API_SECRET>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-google-analytics": {
"command": "npx",
"args": [
"-y",
"mcp-google-analytics@1.3.0"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<YOUR_GA_API_SECRET>"
}
}
}
}VS Code
{
"servers": {
"mcp-google-analytics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-analytics@1.3.0"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<YOUR_GA_API_SECRET>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-google-analytics": {
"command": "npx",
"args": [
"-y",
"mcp-google-analytics@1.3.0"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "<YOUR_GA_SERVICE_ACCOUNT_JSON>",
"GA_PROPERTY_ID": "<YOUR_GA_PROPERTY_ID>",
"GA_MEASUREMENT_ID": "<YOUR_GA_MEASUREMENT_ID>",
"GA_API_SECRET": "<YOUR_GA_API_SECRET>"
}
}
}
}Let your agent find its tools
Find servers like mcp-google-analytics from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.