Is this the official Google Analytics MCP server?
No. It is a community project by surendranb under the MIT license. Google's official, experimental server lives at `github.com/googleanalytics/google-analytics-mcp`.
@surendranb
Basic information
Google Analytics 4 data to AI agents, agentic workflows, and MCP clients. Give agents analysis-ready access to website traffic, user behavior, and performance data with schema discovery, server-side aggregation, and safe defaults that reduce data wrangling.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"ga4-analytics": {
"command": "npx",
"args": [
"-y",
"google-analytics-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "",
"GA4_PROPERTY_ID": ""
}
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Google Analytics MCP Server (google-analytics-mcp) is a community google analytics mcp server that connects Google Analytics 4 data to Claude, Cursor, VS Code and other MCP clients. You ask about traffic, channels and conversions in plain language, and it runs read-only GA4 Data API reports.
The project is maintained by surendranb and released under the MIT license. It is published on PyPI as google-analytics-mcp and on npm as @surendranb/google-analytics-mcp. It adds live schema discovery, server-side aggregation and built-in analytical "skills" on top of the GA4 Data API. It is not Google's own server. Google publishes a separate, experimental official Google Analytics MCP server.
Prerequisites: Python 3.10+ (or Node.js for the npm wrapper), a GA4 property with data, and Google Cloud credentials.
gcloud auth application-default login.client_email from the JSON key. In Google Analytics, go to Admin → Property Access Management → Add users, paste the email and choose the Viewer role.GA4_PROPERTY_ID from Admin → Property details. This is not the G- measurement ID.GA4_PROPERTY_ID and GOOGLE_APPLICATION_CREDENTIALS, the absolute path to the JSON key.The README lists several ways to run the ga4 mcp server:
# Universal installer (configures Claude Desktop, Cursor, Claude Code, Antigravity, VS Code, Zed, Windsurf)
curl -fsSL "https://ga4.builditwithai.xyz/install" | bash
# Or run directly
uvx google-analytics-mcp
npx -y @surendranb/google-analytics-mcp
claude mcp add google-analytics -- uvx google-analytics-mcp
Make sure GA4_PROPERTY_ID and GOOGLE_APPLICATION_CREDENTIALS are set for the server process.
Add this to claude_desktop_config.json, then restart Claude Desktop:
{
"mcpServers": {
"google-analytics": {
"command": "uvx",
"args": ["google-analytics-mcp"],
"env": {
"GA4_PROPERTY_ID": "123456789",
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/key.json"
}
}
}
}
Use the same entry in ~/.cursor/mcp.json or a project .cursor/mcp.json. Reload Cursor and check that google-analytics shows as connected.
In .vscode/mcp.json, VS Code uses a servers block:
{
"servers": {
"google-analytics": {
"type": "stdio",
"command": "uvx",
"args": ["google-analytics-mcp"],
"env": {
"GA4_PROPERTY_ID": "123456789",
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/key.json"
}
}
}
}
The project docs also include guides for Codex, Gemini, Copilot, Antigravity, Kiro, OpenCode and other clients. To check the setup, ask "List my GA4 properties."
traffic-diagnosis, channel-acquisition, ecommerce-analysis and ai-referral-analysisuvx, pip, or the npm wrapperDO_NOT_TRACK=1 or MCP_TELEMETRY_OPT_OUT=1get_ga4_data runs reports with dimensions, metrics, date ranges and a row limit. run_realtime_report queries the last 30 minutes.list_accounts, list_properties and get_property_metadata show which accounts and properties the credentials can reach, and the full field schema of a property. The client guides also describe search_schema for finding the right field name.skills_list, search_skills and skill_read load guided analysis recipes, such as an ordered checklist for a traffic drop.GA4_PROPERTY_ID (numeric) and GOOGLE_APPLICATION_CREDENTIALS (absolute path to an existing JSON file) in the client's env block, then restart the client.client_email as a Viewer under Property Access Management, using the property that matches GA4_PROPERTY_ID.503 Reauthentication is needed: your gcloud Application Default Credentials expired. Run gcloud auth application-default login.search_schema or get_property_metadata to find the GA4 name, then retry.uvx google-analytics-mcp in a terminal to confirm the runtime works, check the command spelling, and reload the window.No. It is a community project by surendranb under the MIT license. Google's official, experimental server lives at `github.com/googleanalytics/google-analytics-mcp`.
Yes. The server is open source, and it uses the Google Analytics Data API with your own Google Cloud credentials.
A Google Cloud service account JSON key (or gcloud Application Default Credentials) with Viewer access to the GA4 property, plus the numeric `GA4_PROPERTY_ID`.
No. It targets Google Analytics 4 properties through the GA4 Data API.
Yes. The README documents Claude Code, Claude Desktop, Cursor and VS Code, and the installer can configure several clients automatically.
No. The tools only read report data and metadata. They cannot change or delete your analytics configuration.
Local. It runs on your machine over stdio and sends queries directly from your machine to the GA4 Data API.
It sends anonymous, non-PII diagnostic telemetry, with no queries or credentials included. Set `DO_NOT_TRACK=1` or `MCP_TELEMETRY_OPT_OUT=1` to opt out.
UK procurement intelligence for AI assistants: search live UK government tenders, find contract renewals with expiry dates and incumbent suppliers, and profile public-sector buyers and suppliers. Covers Find a Tender, Co

Website analytics and SEO in one. Every visit counted, no sampling. Each to-do says what leaked and the change to make, with the numbers behind it, you can visit us on Convertlyft.com first 5,000 Visits to your website f

Remote MCP server for Romanian company data: search 2.7M Romanian companies by CUI, county, CAEN industry, revenue and founding date; get company profiles, balance sheets, ANAF tax debts, legal representatives and due di
HasData's hosted Zillow MCP server lets AI agents search homes for sale, rentals and sold listings, then retrieve property details, price history and Zillow estimates as structured JSON.

Connect your AI to millions of laws and court cases! Lawstronaut is the infrastructure layer that connects AI agents and software to millions of legal documents across 150+ jurisdictions, structured legal data, continuou
Comments