Google Analytics MCP
Google Analytics MCP is an MCP server that adds data and analytics tools to AI assistants such as Claude Desktop, Claude Code and Cursor. GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults. It has 243 GitHub stars, is released under the MIT license and runs locally with uvx google-analytics-mcp.
github.com/surendranb/google-analytics-mcp (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
- Needs API key
- Data & analytics
- MIT
- Active
Install Google Analytics MCP
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"google-analytics-mcp": {
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GA4_PROPERTY_ID=your-value --transport stdio google-analytics-mcp -- uvx google-analytics-mcpCursor
{
"mcpServers": {
"google-analytics-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "google_application_credentials",
"description": "GOOGLE_APPLICATION_CREDENTIALS",
"password": true
}
],
"servers": {
"google-analytics-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "${input:google_application_credentials}",
"GA4_PROPERTY_ID": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALSsecret | Yes | Absolute path to your Google Cloud service account JSON key with GA4 property access. |
GA4_PROPERTY_ID | Yes | Numeric GA4 Property ID to query, for example 123456789. |
About Google Analytics MCP
Model Context Protocol (MCP) server for Google Analytics 4: real-time query exploration, schema discovery, metric aggregation, and audience insights for AI agents.
- ai-agent
- analytics
- claude-mcp
- ga4
- gemini-extension
- google-analytics
- mcp-server
- model-context-protocol
- ai-agents
- claude
Similar MCP servers
More data & analytics MCP servers
Vibe Prospecting
explorium-ai/vibeprospecting-mcp
B2B company and contact data for lead lists, enrichment, research, and outreach.
Maintained · last commit Sep 15, 2026
OfficialData & analyticsJavaScriptMuxinc MCP Server
muxinc/mux-ts
The official MCP Server for the Mux API.
Active · last commit Oct 5, 2026
OfficialData & analyticsTypeScriptOSS Snowflake MCP Server
Snowflake-Labs/mcp
MCP Server for Snowflake from Snowflake Labs.
Maintained · last commit May 15, 2026
OfficialData & analyticsPythonBetterlytics
betterlytics/betterlytics
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
Active · last commit Oct 25, 2026
OfficialData & analyticsTypeScriptFacebook Ads Library MCP
proxy-intell/facebook-ads-library-mcp
MCP Server for Facebook ADs Library - Get instant answers from FB's ad library.
Active · last commit Oct 24, 2026
Data & analyticsPythonMCP BigQuery Server
ergut/mcp-bigquery-server
A Model Context Protocol (MCP) server that provides secure, read-only access to BigQuery datasets.
Maintained · last commit May 22, 2026
Data & analyticsTypeScript
How do I install the Google Analytics MCP MCP server?
Add the command uvx google-analytics-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Google Analytics MCP free?
The server is open source under the MIT license, so running it is free. It needs credentials (GOOGLE_APPLICATION_CREDENTIALS) for the service it connects to, which may require a paid account.
Is Google Analytics MCP actively maintained?
The most recent commit was on Oct 25, 2026. The latest release is v2.11.3, published Aug 18, 2026. appsgit only lists MCP servers with a commit in the last six months.