# QuerySail: Google Analytics MCP [Health: Active]

**Category:** 🎯 Marketing  
**Repository:** https://github.com/querysail/querysail-ga4  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/querysail-google-analytics-mcp

## Description
Hosted, read-only Google Analytics 4 MCP server. Connect your Google account and query traffic, engagement, conversions, realtime activity, properties, dimensions and metrics using natural language.

## Tools
Capabilities this server exposes over MCP:

- **list_properties** — Lists the Google Analytics 4 properties your connected Google accounts can read, with exact property IDs and their Analytics accounts.
- **list_fields** — Lists the dimensions and metrics a property can report on, including its custom dimensions, custom metrics and key events.
- **run_report** — Users, sessions, views, engagement, events, key events, revenue and any other Data API metric, broken down by date, channel, source/medium, landing page, page, country, device, event and more, with filters.
- **compare_report** — Compares two periods (previous period, same weekdays a year earlier, or custom dates) and lists the channels, sources, pages or countries that gained or lost the most.
- **run_realtime_report** — Active users, views and events in the last 30 minutes, by country, city, device, page or event.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "querysail-google-analytics-mcp": {
    "url": "https://mcp.querysail.com/ga4/mcp"
  }
}
```

## Documentation

## What QuerySail: Google Analytics MCP does

QuerySail: Google Analytics MCP exposes Google Analytics 4 data through a hosted MCP service at `https://mcp.querysail.com/ga4/mcp`. It uses Streamable HTTP and OAuth 2.1 with dynamic client registration, allowing supported clients to connect to the remote endpoint and open a browser-based sign-in flow.

The service is designed for read-only analytics work. Agents can inspect account and property access, discover reportable dimensions and metrics, retrieve historical reports, compare date ranges, and view activity from the last 30 minutes. It supports questions about users, sessions, views, engagement, events, key events, revenue, acquisition sources, pages, devices, locations, and other Google Analytics Data API metrics.

## How it works

Create a QuerySail account, connect Google Analytics from **Account → Connections**, and authorize the Google account that has access to the relevant GA4 properties. The MCP client then connects to the hosted endpoint and uses OAuth to authenticate. Multiple accessible Google Analytics accounts and properties can be discovered through the property-listing tool.

Reports are fetched from Google when requested. Non-realtime results may be cached for up to 15 minutes, while realtime reports are not cached. The service uses Google's `analytics.readonly` permission scope, separate from Search Console access.

## Setup and configuration

No local server installation, Google Cloud project, or manually pasted API key is required. Add the endpoint as a remote HTTP MCP server in a compatible client:

- Claude Desktop: use **Customize → Connectors → Add custom connector**.
- Claude Code: add the endpoint with `claude mcp add --transport http` or install the QuerySail plugin.
- Codex: use `codex mcp add` followed by `codex mcp login`.
- Cursor: add a server entry to `~/.cursor/mcp.json`.
- VS Code: use **MCP: Add Server** with the HTTP transport or edit `mcp.json`.
- Cline: add it under **MCP Servers → Remote Servers** using Streamable HTTP.
- ChatGPT: enable Developer mode and add the endpoint as a connection URL.

Clients that only accept local commands can use the `mcp-remote` Node.js bridge. The repository also includes a Claude Code plugin and a `querysail-google-analytics` agent skill for routing analytics questions to the appropriate tool.

## Tools and capabilities

- `list_properties` finds readable GA4 properties and shows their exact property IDs and Analytics accounts.
- `list_fields` returns available dimensions and metrics, including custom dimensions, custom metrics, and key events for a selected property.
- `run_report` retrieves metrics such as users, sessions, views, engagement, events, key events, and revenue. Results can be broken down by dates, channels, source and medium, landing pages, pages, countries, devices, events, and other supported fields, with filters.
- `compare_report` compares a period with the previous period, matching weekdays from the prior year, or custom dates. It identifies channels, sources, pages, or countries with the largest gains or losses.
- `run_realtime_report` reports active users, views, and events from the previous 30 minutes, grouped by country, city, device, page, or event.

## Limitations and notes

The tools cannot create or modify properties, data streams, key events, audiences, or other Google Analytics settings. Universal Analytics properties are not supported. Google may apply sampling or thresholding to some reports, and the service passes those indicators to the assistant. Google Analytics property API quotas still apply.

The hosted service is separate from the public repository, which contains listing files, client configurations, and related integration files rather than the service implementation. Google refresh tokens are encrypted at rest; users can hide properties, disconnect Google, or delete their account. The repository files use the MIT license, while use of the hosted service is governed by QuerySail's terms.

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

