GA4 Analytics MCP

v26.11.13
com.renzojohnson/ga4-mcp Checked 3 hours ago Published 18 days ago

GA4 MCP server: Google Analytics 4 reports, realtime data, property admin and Search Console.

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

ping

Checks server connectivity and auth status

get_account_summaries

Retrieves all Google Analytics accounts and properties accessible to the authenticated user.

get_property_details

Returns details about a GA4 property including display name, timezone, currency, and industry category.

ParameterTypeDescription
property_id *string | numberGA4 property ID

run_report

Runs a Google Analytics 4 Data API report.

ParameterTypeDescription
date_ranges *arrayDate ranges
dimensions *arrayDimension names
metrics *arrayMetric names
property_id *string | numberGA4 property ID
currency_codestring
dimension_filterobject
limitnumber
metric_filterobject
offsetnumber
order_bysarray
return_property_quotaboolean

run_realtime_report

Runs a GA4 realtime report.

ParameterTypeDescription
dimensions *array
metrics *array
property_id *string | numberGA4 property ID
dimension_filterobject
limitnumber
metric_filterobject
offsetnumber
order_bysarray
return_property_quotaboolean

get_custom_dimensions_and_metrics

Retrieves custom dimensions and custom metrics for a GA4 property.

ParameterTypeDescription
property_id *string | numberGA4 property ID

gsc_list_sites

Lists all sites (properties) the authenticated user has access to in Google Search Console.

gsc_search_analytics

Queries Google Search Console search analytics data: impressions, clicks, CTR, and position for queries, pages, countries, and devices.

ParameterTypeDescription
end_date *stringEnd date in YYYY-MM-DD format
site_url *stringSite URL as defined in GSC (e.g. "https://example.com/" or "sc-domain:example.com")
start_date *stringStart date in YYYY-MM-DD format
aggregation_typestringHow data is aggregated: auto, byProperty, byPage
data_statestringData state: final, all (includes partial data)
dimension_filter_groupsarrayDimension filter groups
dimensionsarrayDimensions to group by: query, page, country, device, searchAppearance, date
row_limitnumberMax rows to return (default 1000, max 25000)
start_rownumberZero-based row offset for pagination
typestringSearch type: web, image, video, news, discover, googleNews

gsc_inspect_url

Inspects a URL in Google Search Console. Returns index status, crawl info, mobile usability, and rich results.

ParameterTypeDescription
inspection_url *stringFull URL to inspect (must be under the site_url property)
site_url *stringSite URL as defined in GSC (e.g. "https://example.com/" or "sc-domain:example.com")
language_codestringLanguage for issue messages (default: en-US)

gsc_list_sitemaps

Lists all sitemaps submitted for a site in Google Search Console.

ParameterTypeDescription
site_url *stringSite URL as defined in GSC (e.g. "https://example.com/" or "sc-domain:example.com")

ga4_admin

GA4 property administration. Read: list_data_streams(property_id), list_key_events(property_id), list_audiences(property_id), list_firebase_links(property_id), get_measurement_protocol_secret(property_id, stream_id, secret_id). Write: create_property(account_id, display_name, time_zone?, currency_code?), update_property(property_id, display_name?, time_zone?, currency_code?), create_data_stream(property_id, type?, display_name, default_uri?), update_data_stream(property_id, stream_id, display_name), create_measurement_protocol_secret(property_id, stream_id, display_name?), create_key_event(pro…

ParameterTypeDescription
action *stringAdmin action to perform
paramsobjectAction parameters: see tool description

gsc_add_site

Adds a site to Google Search Console. Use URL prefix (e.g. "https://example.com/") or domain property (e.g. "sc-domain:example.com").

ParameterTypeDescription
site_url *stringSite URL to add (URL prefix or sc-domain: format)

gsc_submit_sitemap

Submits a sitemap URL for a site in Google Search Console.

ParameterTypeDescription
site_url *stringSite URL as defined in GSC
sitemap_url *stringFull URL of the sitemap to submit

indexing_notify

Notifies Google to crawl or remove a URL via the Indexing API. Requires service account with indexing scope.

ParameterTypeDescription
url *stringFull URL to notify Google about
typestringNotification type (default: URL_UPDATED)

indexing_status

Checks the last crawl/notification status for a URL via the Indexing API.

ParameterTypeDescription
url *stringURL to check notification status for