Google's experimental Google Analytics MCP server uses the GA Admin and Data APIs to list accounts and properties, run standard, funnel and realtime reports, and read custom dimensions and metrics. It runs locally via pipx and authenticates with Google Application Default Credentials from gcloud.
Connect
- 1Add the server to Codex
codex mcp add google-analytics --env GOOGLE_APPLICATION_CREDENTIALS=YOUR_GOOGLE_APPLICATION_CREDENTIALS --env GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- pipx run analytics-mcp
Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.
Tools 7
get_account_summariesget_property_detailslist_google_ads_linksrun_reportrun_funnel_reportget_custom_dimensions_and_metricsrun_realtime_reportThings to ask
- “What were the top 10 landing pages by sessions last week?”
- “How many users are on the site right now?”
- “Compare conversions by channel this month vs last month”
- “Which custom dimensions are defined on my GA4 property?”