Google Analytics 4 MCP Server
by get-mcp-adscom.getmcpads/google-analyticsv2.0.1
Google Analytics 4 MCP server: 27 read tools.
context tax
queued
security
queued
cold start
queued
freshness
Active13d ago
Install Google Analytics 4 MCP server
Install in Claude Code
claude mcp add google-analytics -e GA4_CLIENT_ID='<ga4-client-id>' -e GA4_CLIENT_SECRET='<ga4-client-secret>' -e GA4_REFRESH_TOKEN='<ga4-refresh-token>' -- npx -y @getmcpads/google-analytics-mcp-serverInstall in Cursor
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<ga4-client-id>",
"GA4_CLIENT_SECRET": "<ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<ga4-refresh-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<ga4-client-id>",
"GA4_CLIENT_SECRET": "<ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<ga4-refresh-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"google-analytics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<ga4-client-id>",
"GA4_CLIENT_SECRET": "<ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<ga4-refresh-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<ga4-client-id>",
"GA4_CLIENT_SECRET": "<ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<ga4-refresh-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GA4_CLIENT_ID | yes | — | OAuth client ID. |
| GA4_CLIENT_SECRET | yes | yes | OAuth client secret. |
| GA4_REFRESH_TOKEN | yes | yes | OAuth refresh token, analytics.readonly scope. |
| GA4_PROPERTY_ID | — | — | Default GA4 property ID. |
Freshness
Active — last maintenance signal 13d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-26 · 13d ago · GitHub
Latest release
2026-09-23 · 16d ago · GitHub · v2.0.1
Package published
no data · npm/PyPI
Registry entry updated
2026-09-23 · 16d ago · official registry · v2.0.1
FAQ
›How do I install the Google Analytics 4 MCP server in Claude Code?
Run: claude mcp add google-analytics -e GA4_CLIENT_ID='<ga4-client-id>' -e GA4_CLIENT_SECRET='<ga4-client-secret>' -e GA4_REFRESH_TOKEN='<ga4-refresh-token>' -- npx -y @getmcpads/google-analytics-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Google Analytics 4 require an API key?
Yes. It expects GA4_CLIENT_ID, GA4_CLIENT_SECRET, GA4_REFRESH_TOKEN, of which 2 are secrets.
›Can I use Google Analytics 4 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Google Analytics 4 in the official MCP registry?
Yes, as com.getmcpads/google-analytics.
Alternatives to Google Analytics 4
Other data & analytics MCP servers.