Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.
Google Analytics 4 MCP Server
Published by get-mcp-adsGoogle Analytics 4 MCP server: 27 read tools, no write tools.
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 2.1.2
- SOURCE CHECKED
- Nov 27, 2026
Quick answers
How do I add Google Analytics 4 MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'GA4_CLIENT_ID=<your-ga4-client-id>' --env 'GA4_CLIENT_SECRET=<your-ga4-client-secret>' --env 'GA4_REFRESH_TOKEN=<your-ga4-refresh-token>' --transport stdio google-analytics-4 -- npx -y @getmcpads/google-analytics-mcp-serverReplace the <your-…> placeholder with your own GA4_CLIENT_ID and GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<your-ga4-client-id>",
"GA4_CLIENT_SECRET": "<your-ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<your-ga4-refresh-token>"
}
}
}
}Replace the <your-…> placeholder with your own GA4_CLIENT_ID and GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN.
CodexCommand
Run this in your terminal:
codex mcp add google-analytics-4 --env 'GA4_CLIENT_ID=<your-ga4-client-id>' --env 'GA4_CLIENT_SECRET=<your-ga4-client-secret>' --env 'GA4_REFRESH_TOKEN=<your-ga4-refresh-token>' -- npx -y @getmcpads/google-analytics-mcp-serverReplace the <your-…> placeholder with your own GA4_CLIENT_ID and GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"google-analytics-4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<your-ga4-client-id>",
"GA4_CLIENT_SECRET": "<your-ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<your-ga4-refresh-token>"
}
}
}
}Replace the <your-…> placeholder with your own GA4_CLIENT_ID and GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@getmcpads/google-analytics-mcp-server"
],
"env": {
"GA4_CLIENT_ID": "<your-ga4-client-id>",
"GA4_CLIENT_SECRET": "<your-ga4-client-secret>",
"GA4_REFRESH_TOKEN": "<your-ga4-refresh-token>"
}
}
}
}Replace the <your-…> placeholder with your own GA4_CLIENT_ID and GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use Google Analytics 4 MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does Google Analytics 4 MCP Server need an API key?
To run it on your computer, set GA4_CLIENT_ID, GA4_CLIENT_SECRET and GA4_REFRESH_TOKEN first, with values from the publisher.
Is Google Analytics 4 MCP Server official?
It's published by get-mcp-ads. The Official MCP Registry accepts names under com.getmcpads only from someone who proved they control getmcpads.com. We last checked its listing on Nov 27, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · @getmcpads/google-analytics-mcp-server@2.1.2