Google Analytics 4

v2.1.2
com.getmcpads/google-analytics Checked 7 hours ago Published 23 days ago

Google Analytics 4 MCP server: 27 read tools, no write tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ga4_health_check ga4 health check

Read-only GA4 health check. Verifies configured credentials, accessible properties, and metadata/property access without exposing OAuth tokens.

ParameterTypeDescription
propertyIdstringOptional property ID to check metadata and property details for

ga4_list_properties ga4 list properties

List all GA4 properties accessible with the current credentials. Returns property ID, display name, timezone, and currency.

ga4_run_report ga4 run report

Run a GA4 analytics report with intelligent query planning. Supports 52 metrics, 63 dimensions, auto-pagination. Use ga4://metrics and ga4://dimensions resources for available fields. Max 9 dimensions + 10 metrics per request.

ParameterTypeDescription
metrics *arrayMetric keys (e.g., sessions, activeUsers, totalRevenue)
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
autoPaginatebooleanWhen true, omit the limit so the GA4 client paginates through all rows using offset.
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
dimensionsarrayDimension keys (e.g., date, sessionSource, country)
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
offsetintegerOptional 0-based row offset for explicit pagination.
orderBystringMetric or dimension key to sort by
orderDirectionstringSort direction for the selected ordering field.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_run_realtime_report ga4 run realtime report

Run a read-only GA4 Data API realtime report. Realtime supports only a limited subset of dimensions and metrics.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
dimensionFilterobjectNative realtime-compatible GA4 FilterExpression JSON.
dimensionsarrayRealtime dimension API names, e.g. eventName, city, deviceCategory
keepEmptyRowsbooleanKeep provider rows whose selected metrics are all zero, where supported.
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
metricFilterobjectNative realtime-compatible GA4 FilterExpression JSON.
metricsarrayRealtime metric API names, e.g. activeUsers, eventCount
minuteRangesarrayOptional named realtime minute ranges; zero is the current minute.
orderBysarrayNative GA4 OrderBy JSON.

ga4_get_metadata ga4 get metadata

Get the complete list of dimensions and metrics available for a specific GA4 property. Useful for discovering custom dimensions/metrics.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)

ga4_get_custom_definitions ga4 get custom definitions

List custom dimensions and custom metrics exposed by GA4 Data API metadata. Read-only fallback for custom definition inventory.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)

ga4_get_key_events ga4 get key events

Inventory GA4 key events/conversions using metadata-aware Data API reports. Returns best-effort event names and counts.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_get_ecommerce_diagnostics ga4 get ecommerce diagnostics

Read-only ecommerce coverage diagnostics for core ecommerce events, revenue metrics, and item-level reporting over a date range.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_get_event_parameters ga4 get event parameters

Best-effort event parameter inventory from GA4 metadata plus event reports. Documents Data API limitations for raw parameters.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
eventNamesarrayOptional event names to sample, e.g. purchase, add_to_cart
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_run_funnel_recipe ga4 run funnel recipe

Run a read-only configurable funnel recipe using one GA4 report per eventName/pagePath step and return simple step counts.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
steps *arrayOrdered funnel steps. Each step needs eventName or pagePath.
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
metricstringMetric used for the analysis; use a name from the platform metric catalogue.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_get_audience_export_diagnostics ga4 get audience export diagnostics

Read-only Audience Export diagnostics. Lists existing audience exports, state counts, and optionally samples rows from an existing export.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
audienceExportNamestringOptional resource name, e.g. properties/123456789/audienceExports/abc123
includePersonalIdentifiersbooleanExplicitly include user/device identifiers in the optional sample. False redacts them by default.
includeRowSamplebooleanIf true, query a small row sample from audienceExportName. Can include user-level export dimensions.
pageSizeintegerMaximum items requested per page. Follow the returned pagination information for remaining results.
sampleLimitintegerMaximum records included in the diagnostic sample.

ga4_get_audience_diagnostics ga4 get audience diagnostics

Read-only audience diagnostics from Admin API audiences, Data API recurring audience lists, and observed audienceName report fallback.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
includeDefinitionsbooleanInclude full Admin API audience definitions when available
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
recurringAudienceListNamestringOptional resource name, e.g. properties/123456789/recurringAudienceLists/abc123
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)

ga4_get_bigquery_export_diagnostics ga4 get bigquery export diagnostics

Detect GA4 BigQuery export links and diagnose export modes, stream coverage, excluded events, and dataset location.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
includeDataStreamsbooleanInclude data stream summaries to compare against BigQuery exportStreams

ga4_get_server_side_tagging_diagnostics ga4 get server side tagging diagnostics

Best-effort read-only server-side tagging diagnostics from data streams, Measurement Protocol secrets, event rules, and stream settings.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
includeRulesbooleanFetch event create/edit rules for web streams
includeSettingsbooleanFetch enhanced measurement and data redaction settings for web streams

ga4_run_advanced_funnel_report ga4 run advanced funnel report

Run the GA4 Data API v1alpha runFunnelReport endpoint with optional breakdown/next-action, falling back to read-only step counts if unavailable.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)
steps *arrayOrdered funnel steps using eventName, pagePath, or fieldName+fieldValue
breakdownDimensionstringOptional breakdown dimension, e.g. deviceCategory or sessionDefaultChannelGroup
breakdownLimitintegerMaximum breakdown values to include in the funnel response.
datePresetstringNamed reporting period. Use the custom date range when you need exact start and end dates.
endDatestringEnd date YYYY-MM-DD or relative (today, yesterday)
fallbackToStepCountsbooleanIf the advanced funnel is unavailable, return independent step counts with the limitation made explicit.
isOpenFunnelbooleanAllow users to enter at any funnel step instead of requiring the first step.
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
nextActionDimensionstringOptional next action dimension, commonly eventName
nextActionLimitintegerMaximum next actions returned for each funnel step.
startDatestringStart date YYYY-MM-DD or relative (7daysAgo, yesterday)
visualizationTypestringSupported funnel visualization mode.

ga4_get_channel_groups ga4 get channel groups

List custom channel groups defined for a GA4 property.

ParameterTypeDescription
propertyId *stringGA4 property ID (numeric, e.g., 123456789)

ga4_validate_query ga4 validate query

Validate a metric/dimension combination BEFORE executing. Checks max limits (9 dims, 10 metrics), ecommerce rules, and dimension compatibility.

ParameterTypeDescription
metrics *arrayMetric keys to validate
dimensionsarrayDimension keys to validate

ga4_run_pivot_report ga4 run pivot report

Run a read-only GA4 Data API pivot report with native filters, ordering, quota state, multiple date ranges, and up to 250,000 pivot cells. Every pivot requires an explicit limit.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
report *objectNative GA4 report request object for this endpoint.

ga4_batch_run_reports ga4 batch run reports

Run 1-5 independent read-only GA4 Core reports for the same property in one official Data API batch request.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
reports *arrayNative GA4 report request objects to execute in one batch.

ga4_batch_run_pivot_reports ga4 batch run pivot reports

Run 1-5 independent read-only GA4 pivot reports for the same property in one official Data API batch request.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
reports *arrayNative GA4 report request objects to execute in one batch.

ga4_check_compatibility ga4 check compatibility

Ask the official GA4 Data API which dimensions and metrics are compatible with a proposed Core report selection.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
compatibilityFilterstringLimit compatibility results to the requested GA4 compatibility category.
dimensionFilterobjectNative GA4 FilterExpression JSON.
dimensionsarrayNative reporting dimensions. Validate compatibility with the selected metrics.
metricFilterobjectNative GA4 FilterExpression JSON.
metricsarrayNative or documented calculated metric names to request. Check compatibility with the selected dimensions.

ga4_get_property_quotas_snapshot ga4 get property quotas snapshot

Read the current GA4 Data API property quota snapshot from the official v1alpha endpoint. This does not run a report, but Google still charges one property-quota token to the category with the most remaining quota.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.

ga4_list_accounts ga4 list accounts

List raw GA4 Analytics Admin accounts accessible to the authenticated user (read-only, auto-paginated).

ParameterTypeDescription
pageSizeintegerMaximum items requested per page. Follow the returned pagination information for remaining results.

ga4_list_admin_resources ga4 list admin resources

List an allowlisted GA4 Admin collection in read-only mode: streams, custom definitions, key events, audiences, product links, annotations, channel groups, expanded datasets, subproperty/rollup configuration, and access bindings.

ParameterTypeDescription
collection *stringAllowlisted administrative resource collection to read.
propertyId *stringNumeric GA4 property ID or properties/{id}.
includePersonalIdentifiersbooleanAccess bindings only. Explicitly include user/email identifiers; false redacts them by default.
pageSizeintegerMaximum items requested per page. Follow the returned pagination information for remaining results.

ga4_get_property_configuration ga4 get property configuration

Read GA4 property details plus selected singleton Admin settings (attribution, retention, Google Signals, reporting identity, or user-provided-data settings).

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
settingsarrayProperty configuration surfaces to inspect.

ga4_list_audience_exports ga4 list audience exports

List existing GA4 Audience Export snapshots and Recurring Audience Lists without creating new exports.

ParameterTypeDescription
propertyId *stringNumeric GA4 property ID or properties/{id}.
includeRecurringbooleanInclude recurring audience-export configurations.
pageSizeintegerMaximum items requested per page. Follow the returned pagination information for remaining results.

ga4_query_audience_export ga4 query audience export

Query rows from an existing GA4 Audience Export. User/device identifiers are redacted by default; include them only through explicit opt-in.

ParameterTypeDescription
audienceExportName *stringFull GA4 audience-export resource name returned by list_audience_exports.
includePersonalIdentifiersbooleanExplicitly return user/device identifiers. False redacts identifier columns by default.
limitintegerMaximum number of returned items or rows. The declared bounds and default apply; use pagination for additional results.
offsetintegerZero-based number of rows to skip before returning results.