Google Analytics MCP
Verified · npm:@surendranbMCP server by surendranb · updated · ★ 243 · 36 downloads a week
Model Context Protocol (MCP) server for Google Analytics 4 (GA4) data and schema discovery via NPX. Spawns the Python package through uvx with full stdio passthrough. Google Analytics MCP is published by npm:@surendranb from its verified domain in the official MCP Registry.
Last commit 4 days ago
MIT: permissive, fine for commercial use
Clear description, published package or server URL, 243 stars, original repository
Downloads a script from the internet and runs it
Install Google Analytics MCP
Built from the published package, never by AIclaude mcp add google-analytics-mcp -- npx -y @surendranb/google-analytics-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-analytics-mcp": {
"command": "npx",
"args": [
"-y",
"@surendranb/google-analytics-mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Google Analytics MCP in Claude Desktop
{
"mcpServers": {
"google-analytics-mcp": {
"command": "npx",
"args": [
"-y",
"@surendranb/google-analytics-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-analytics-mcp": {
"command": "npx",
"args": [
"-y",
"@surendranb/google-analytics-mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-analytics-mcp -- npx -y @surendranb/google-analytics-mcp{
"mcpServers": {
"google-analytics-mcp": {
"command": "npx",
"args": [
"-y",
"@surendranb/google-analytics-mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Google Analytics MCP in Antigravity CLI
gemini mcp add google-analytics-mcp npx -y @surendranb/google-analytics-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-analytics-mcp block.
Weekly newsletter
Like Google Analytics MCP? Get the best new MCP servers every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL "https://ga4.builditwithai.xyz/install" | bash
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Google Analytics MCP
All alternatives →Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Codebase intelligence for AI coding agents — graph, git history, docs, decisions, code health.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
MCP server for mobile app automation: verify, control, and debug iOS, Android, TV, and desktop apps
Google Analytics MCP: common questions
How do I install Google Analytics MCP?
In Claude Code run claude mcp add google-analytics-mcp -- npx -y @surendranb/google-analytics-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Analytics MCP the official server?
Google Analytics MCP is published by npm:@surendranb from its verified domain in the official MCP Registry.
Is Google Analytics MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Google Analytics MCP safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Google Analytics MCP?
Similar MCP servers: mockserver, XcodeBuildMCP, Repowise, SmartBear MCP.
Does Google Analytics MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
