Google Analytics 4 MCP server: 27 read tools, no write tools.
Google Analytics 4 MCP Server
Published by mindstoneGoogle Analytics 4 MCP server with reporting, schema discovery, and admin visibility tools
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.2.1
- 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 'GOOGLE_APPLICATION_CREDENTIALS=<your-google-application-credentials>' --transport stdio google-analytics-4 -- npx -y @mindstone/mcp-server-google-analyticsReplace the <your-…> placeholder with your own GOOGLE_APPLICATION_CREDENTIALS.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-google-analytics"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<your-google-application-credentials>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_APPLICATION_CREDENTIALS.
CodexCommand
Run this in your terminal:
codex mcp add google-analytics-4 --env 'GOOGLE_APPLICATION_CREDENTIALS=<your-google-application-credentials>' -- npx -y @mindstone/mcp-server-google-analyticsReplace the <your-…> placeholder with your own GOOGLE_APPLICATION_CREDENTIALS.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"google-analytics-4": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-google-analytics"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<your-google-application-credentials>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_APPLICATION_CREDENTIALS.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"google-analytics-4": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-google-analytics"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "<your-google-application-credentials>"
}
}
}
}Replace the <your-…> placeholder with your own GOOGLE_APPLICATION_CREDENTIALS.
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 GOOGLE_APPLICATION_CREDENTIALS first, with values from the publisher.
Is Google Analytics 4 MCP Server official?
It's published by mindstone. The Official MCP Registry accepts names under io.github.mindstone only from the GitHub account or organisation mindstone. 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 · @mindstone/mcp-server-google-analytics@0.2.1