Google_analytics

v0.2.1
io.github.pipeworx-io/google_analytics Checked 1 day ago Published 1 month ago

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

ParameterTypeDescription
end_date *stringEnd date (YYYY-MM-DD or relative: "today", "yesterday")
metrics *arrayList of metric names (e.g., ["activeUsers", "sessions", "screenPageViews"])
property_id *stringGA4 property ID (numeric, e.g., "123456789")
start_date *stringStart date (YYYY-MM-DD or relative: "today", "yesterday", "7daysAgo", "30daysAgo")
dimension_filterobjectOptional dimension filter object (GA4 FilterExpression format)
dimensionsarrayList of dimension names (e.g., ["city", "pagePath", "date"])
limitnumberMaximum number of rows to return (default 100, max 10000)
order_bysarrayOptional 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.

ParameterTypeDescription
page_sizenumberMaximum number of account summaries to return (default 50)
page_tokenstringToken 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").

ParameterTypeDescription
property_id *stringGA4 property ID (numeric)
dimensionsarrayRealtime dimensions (e.g., ["city", "unifiedScreenName", "platform"])
limitnumberMaximum number of rows (default 100)
metricsarrayRealtime 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.

ParameterTypeDescription
property_id *stringGA4 property ID (numeric)