Google Analytics MCP server
{
"mcpServers": {
"getmcpads-google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server@latest"
],
"env": {
"GA4_PROPERTY_ID": "<ga4_property_id>",
"GA4_CLIENT_ID": "<ga4_client_id>",
"GA4_CLIENT_SECRET": "<ga4_client_secret>",
"GA4_REFRESH_TOKEN": "<ga4_refresh_token>"
}
}
}
}{
"mcpServers": {
"getmcpads-google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server@latest"
],
"env": {
"GA4_PROPERTY_ID": "<ga4_property_id>",
"GA4_CLIENT_ID": "<ga4_client_id>",
"GA4_CLIENT_SECRET": "<ga4_client_secret>",
"GA4_REFRESH_TOKEN": "<ga4_refresh_token>"
}
}
}
}{
"mcpServers": {
"getmcpads-google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server@latest"
],
"env": {
"GA4_PROPERTY_ID": "<ga4_property_id>",
"GA4_CLIENT_ID": "<ga4_client_id>",
"GA4_CLIENT_SECRET": "<ga4_client_secret>",
"GA4_REFRESH_TOKEN": "<ga4_refresh_token>"
}
}
}
}{
"servers": {
"getmcpads-google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server@latest"
],
"env": {
"GA4_PROPERTY_ID": "${input:ga4_property_id}",
"GA4_CLIENT_ID": "${input:ga4_client_id}",
"GA4_CLIENT_SECRET": "${input:ga4_client_secret}",
"GA4_REFRESH_TOKEN": "${input:ga4_refresh_token}"
}
}
},
"inputs": [
{
"id": "ga4_property_id",
"type": "promptString",
"description": "Ga4 property id",
"password": true
},
{
"id": "ga4_client_id",
"type": "promptString",
"description": "Ga4 client id",
"password": true
},
{
"id": "ga4_client_secret",
"type": "promptString",
"description": "Ga4 client secret",
"password": true
},
{
"id": "ga4_refresh_token",
"type": "promptString",
"description": "Ga4 refresh token",
"password": true
}
]
}{
"mcpServers": {
"getmcpads-google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server@latest"
],
"env": {
"GA4_PROPERTY_ID": "<ga4_property_id>",
"GA4_CLIENT_ID": "<ga4_client_id>",
"GA4_CLIENT_SECRET": "<ga4_client_secret>",
"GA4_REFRESH_TOKEN": "<ga4_refresh_token>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @getmcpads/google-analytics-mcp-serverversion 1.0.2
Google Analytics 4: 27 read-only tools across the Data API and the Admin API.
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.