Google Analytics logo

Google Analytics

Query GA4 reports, properties, metadata, and real-time activity through MCP.

Install Google Analytics

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "google-analytics-2": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-google_analytics"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio google-analytics-2 -- npx -y @pipeworx/mcp-google_analytics

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

Google_analytics connects MCP clients to Google Analytics 4 through the Pipeworx gateway. It lists accessible properties, runs dimension-and-metric reports, inspects available GA4 fields, and retrieves current activity. Use it when an agent needs structured GA4 data or live engagement metrics without building direct API calls. The package can run through a hosted MCP endpoint or a local stdio bridge that forwards requests to the gateway.

Use cases

  • Run GA4 reports for selected dimensions and metrics
  • Find accessible GA4 property IDs before querying data
  • Check current active users and real-time engagement
  • Inspect valid GA4 fields before building a report

Key features

  • GA4 report queries with date ranges
  • Accessible property discovery
  • Real-time user activity checks
  • Dimension and metric metadata lookup
  • Hosted MCP and local stdio connection options
  • Optional Pipeworx gateway meta-tools

Tools4

What Google Analytics lets your agent do. Expand a tool for its parameters.

Verified live~833 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 77d

What it can do

From the 4 tools this server returned when we ran it; 4 declare their own safety hints.

Makes network requests · 4Read-only tools · 4
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age204 days
Maintainers1

Observed 2026-11-06 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @pipeworx/mcp-google_analytics (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads846Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Google Analytics works

What Google_analytics does

Google_analytics exposes selected Google Analytics 4 operations as MCP tools. Agents can identify accessible properties, inspect the dimensions and metrics supported by a property, run reports for a chosen date range, and check current activity. Report results are returned as aggregated rows containing dimension and metric values.

The integration is an independent, unofficial connection delivered through Pipeworx. It works with a connected Google Analytics account and uses the Pipeworx gateway as the access layer.

How it works

A hosted MCP connection uses the scoped endpoint https://gateway.pipeworx.io/google_analytics/mcp. The full gateway endpoint, https://gateway.pipeworx.io/mcp, is also available when an agent needs direct access to the wider Pipeworx catalog. Both routes reach the same gateway; the scoped route lists the Google Analytics tools directly.

The scoped endpoint also exposes shared Pipeworx meta-tools, including routing and discovery functions. These additional tools can let an agent reach other catalog sources through ask_pipeworx, so the tool list may be larger than the four Google Analytics operations. The connection's initialization response defines the exact scope available at connection time.

Setup and configuration

Add the hosted endpoint to an MCP client with a server entry such as:

config.json
{
  "mcpServers": {
    "google_analytics": {
      "url": "https://gateway.pipeworx.io/google_analytics/mcp"
    }
  }
}

For local stdio use, install or run @pipeworx/mcp-google_analytics through npx:

config.json
{
  "mcpServers": {
    "google_analytics": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-google_analytics"]
    }
  }
}

The local bridge still requires network access and does not provide offline operation. It can make anonymous calls, limited to 50 per day. A Pipeworx account and PIPEWORX_API_KEY raise the allowance to 200 calls per day. Add the key as an environment variable in the MCP server configuration. Set PIPEWORX_META_TOOLS=1 if the local bridge should list the shared gateway tools as well as the Google Analytics tools.

Without an MCP client, authenticate with a Pipeworx Bearer key and call the gateway's tool HTTP endpoints. A connected Google Analytics account is required for these requests.

Tools and capabilities

  • ga_list_properties returns accessible GA4 property IDs, names, creation dates, and account details.
  • ga_run_report queries a property using selected dimensions, metrics, and a date range, then returns aggregated rows.
  • ga_get_realtime reports active users and other real-time engagement values for a specified property.
  • ga_get_metadata lists property-specific dimensions and metrics with descriptions and data types.

A typical workflow is to list properties first, use metadata to validate field names, and then run a report against the selected property.

Limitations and notes

The integration depends on the Pipeworx gateway and an internet connection. It is not affiliated with, endorsed by, or published by Google Analytics. The local package's calls are forwarded to the hosted endpoint, and authenticated usage is metered through Pipeworx. Scoped connections include shared gateway meta-tools in addition to the pack-specific tools; use the full gateway when direct listing of the wider catalog is preferable.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Analytics

Google_analytics is an MCP server that connects AI clients to Google Analytics 4 through the Pipeworx gateway. Its main tools list accessible properties, run reports using dimensions and metrics, retrieve real-time activity, and inspect available metadata. It supports hosted MCP connections and a local stdio package.

Install it by adding the hosted Pipeworx MCP URL to your client, or run the local bridge with `npx -y @pipeworx/mcp-google_analytics`. The local option forwards requests to the gateway, so it needs network access and a connected Google Analytics account.

No, an API key is not required for anonymous local calls, but those calls are limited to 50 per day. Set `PIPEWORX_API_KEY` after creating a Pipeworx account to raise the allowance to 200 calls per day.

Call `ga_list_properties` to retrieve the GA4 properties available to the connected account. The response includes property IDs, names, creation dates, and account information that can be used to select a property for other tools.

Yes, Google_analytics can be configured in Cursor using the hosted MCP endpoint or the local `npx` stdio bridge. The hosted configuration points Cursor to `https://gateway.pipeworx.io/google_analytics/mcp`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Analytics AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-analytics-2?style=directory)](https://allmcps.com/mcp/google-analytics-2)
HTML Embed
<a href="https://allmcps.com/mcp/google-analytics-2"><img src="https://allmcps.com/api/badge/google-analytics-2?style=directory" alt="Google Analytics on AllMCPs" /></a>