# Google_analytics [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/pipeworx-io/mcp-google_analytics  
**GitHub Stars:** 0  
**npm Downloads (last month):** 846  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/google-analytics-2

## Description
Google Analytics MCP Pack

## Tools
Capabilities this server exposes over MCP:

- **ga_run_report** — Query GA4 analytics data by dimensions (e.g., "city", "pagePath") and metrics (e.g., "activeUsers", "sessions") for a date range. Returns aggregated data rows with dimension and metric values.
- **ga_list_properties** — List all GA4 properties you can access. Returns property IDs, names, creation dates, and account info. Use to find the property ID for ga_run_report queries.
- **ga_get_realtime** — Check live user activity in a GA4 property right now. Returns current active user count and real-time engagement metrics. Specify property ID (e.g., "123456789").
- **ga_get_metadata** — Discover available dimensions and metrics for a GA4 property. Returns field names, descriptions, and data types to build accurate ga_run_report queries.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "google-analytics": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-google_analytics"]
  }
}
```

## Documentation

## 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:

```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`:

```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.

_Full upstream README: https://allmcps.com/mcp/google-analytics-2/readme_

