Google_analytics
v0.2.1Google Analytics MCP Pack
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
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.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End date (YYYY-MM-DD or relative: "today", "yesterday") |
metrics * | array | List of metric names (e.g., ["activeUsers", "sessions", "screenPageViews"]) |
property_id * | string | GA4 property ID (numeric, e.g., "123456789") |
start_date * | string | Start date (YYYY-MM-DD or relative: "today", "yesterday", "7daysAgo", "30daysAgo") |
dimension_filter | object | Optional dimension filter object (GA4 FilterExpression format) |
dimensions | array | List of dimension names (e.g., ["city", "pagePath", "date"]) |
limit | number | Maximum number of rows to return (default 100, max 10000) |
order_bys | array | Optional ordering. Each item: { dimension: { dimensionName, orderType? } } or { metric: { metricName }, desc? } |
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.
| Parameter | Type | Description |
|---|---|---|
page_size | number | Maximum number of account summaries to return (default 50) |
page_token | string | Token for fetching the next page of results |
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").
| Parameter | Type | Description |
|---|---|---|
property_id * | string | GA4 property ID (numeric) |
dimensions | array | Realtime dimensions (e.g., ["city", "unifiedScreenName", "platform"]) |
limit | number | Maximum number of rows (default 100) |
metrics | array | Realtime metrics (e.g., ["activeUsers", "screenPageViews"]). Defaults to ["activeUsers"]. |
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.
| Parameter | Type | Description |
|---|---|---|
property_id * | string | GA4 property ID (numeric) |