# Google_analytics

> Google_analytics is a freemium MCP server for analytics and data. MCP server giving AI clients read access to Google Analytics 4 reports and realtime data. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $49 a month
- **Platforms:** API, CLI, Web, self-hosted
- **Website:** https://pipeworx.io/packs/google_analytics
- **Repository:** https://github.com/pipeworx-io/mcp-google_analytics
- **MCP Registry name:** io.github.pipeworx-io/google_analytics
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-18

## About

The README describes this as a Pipeworx pack that exposes four GA4 tools to MCP clients. Its reporting tool lets you pick dimensions such as city or page path and metrics such as active users or sessions for a date range, returning aggregated rows. Companion tools list the GA4 properties you can access, pull live active-user counts for a property, and enumerate the dimensions and metrics a property supports so queries can be built correctly.

The server runs through the Pipeworx gateway, so it is reached either as a hosted streamable-HTTP endpoint or through a local npm stdio bridge that forwards calls to that gateway. The README notes that the endpoint also lists shared gateway meta-tools alongside the four pack tools, and that anonymous calls are capped daily while a free key raises the cap. It is an unofficial integration, not affiliated with Google.

This suits developers and analysts who want an assistant to answer traffic questions against their own GA4 properties without writing API code. Access to a property depends on the account behind the connection.

## Features

- **Dimension and metric reports:** Runs GA4 reports by chosen dimensions and metrics over a date range and returns aggregated rows.
- **Realtime user activity:** Returns current active user count and real-time engagement for a given property ID.
- **Property discovery:** Lists the GA4 properties the connected account can access, with IDs and account info.
- **Metadata lookup:** Returns available dimension and metric names with descriptions and data types for query building.
- **Hosted or local connection:** Connects as a remote streamable-HTTP endpoint or a local npm stdio bridge.

## Good for

- Ask an assistant for top landing pages or traffic sources over the last month
- Check how many users are active on a site right now
- Find the property ID for a GA4 account before running reports
- Look up which GA4 dimensions and metrics are valid before building a query

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http google_analytics https://gateway.pipeworx.io/google_analytics/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://gateway.pipeworx.io/google_analytics/mcp
```

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "google_analytics": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/google_analytics/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "google_analytics": {
      "serverUrl": "https://gateway.pipeworx.io/google_analytics/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "google_analytics": {
      "type": "http",
      "url": "https://gateway.pipeworx.io/google_analytics/mcp"
    }
  }
}
```

## Tools

- `ga_run_report`: Query GA4 analytics data by dimensions and metrics for a date range.
- `ga_list_properties`: List all GA4 properties you can access.
- `ga_get_realtime`: Check live user activity in a GA4 property right now.
- `ga_get_metadata`: Discover available dimensions and metrics for a GA4 property.

## FAQ

### How many tools does the endpoint list?

The README says the pack provides four tools, but a single-pack endpoint also lists roughly 30 shared Pipeworx meta-tools alongside them.

### Does it need an API key?

The npm bridge works anonymously capped at 50 calls a day. A free Pipeworx key raises that to 200 calls a day.

### Is this an official Google product?

No. The README states it is an independent, unofficial integration not affiliated with or endorsed by Google.

### Is Google_analytics free?

Google_analytics has a free plan, with paid plans for more usage or features. Paid plans start at $49 a month.

### How do I add Google_analytics to Claude Code?

Run this command in your terminal: claude mcp add --transport http google_analytics https://gateway.pipeworx.io/google_analytics/mcp

### What are the best alternatives to Google_analytics?

The closest alternatives to Google_analytics are GA4 Analytics MCP, Google Analytics 4, QuerySail: Google Analytics, Tag Pilot GA4 and QueryAtlas.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [GA4 Analytics MCP](https://ai-powered.com/mcp/ga4-analytics-mcp): GA4 Analytics MCP is an open-source MCP server for analytics and data.
- [Google Analytics 4](https://ai-powered.com/mcp/google-analytics-4): Google Analytics 4 is a freemium MCP server for analytics and data.
- [QuerySail: Google Analytics](https://ai-powered.com/mcp/querysail-google-analytics): QuerySail: Google Analytics is an MCP server for analytics and data.
- [Tag Pilot GA4](https://ai-powered.com/mcp/tag-pilot-ga4): Tag Pilot GA4 is an open-source MCP server for analytics and data.
- [QueryAtlas](https://ai-powered.com/mcp/queryatlas): QueryAtlas is a freemium MCP server for analytics and data.
- [anacraft — Google Analytics 4](https://ai-powered.com/mcp/anacraft-google-analytics-4): anacraft — Google Analytics 4 is a paid MCP server for analytics and data.

---
Source: https://ai-powered.com/mcp/google-analytics-3
