Google Analytics MCP: Documentation
Updated:
Connection
pipx run analytics-mcp (stdio). Auth: Application Default Credentials (ADC) with OAuth 2.0 and the analytics.readonly scope — requires a Google Cloud project with the Analytics Admin API and Analytics Data API enabled. Works with Gemini CLI, Claude Code and other MCP clients.
Tools
get_account_summaries— lists the accounts and properties you can access.get_property_details— details for a specific property.list_google_ads_links— linked Google Ads accounts.run_report— an ad-hoc report via the GA4 Data API.run_funnel_report— a funnel built from given steps.run_realtime_report— real-time current-user data.get_custom_dimensions_and_metrics— the property's custom dimensions and metrics.
Agent flow
"How many users are on the site right now, and from which sources?", "build a conversion report for the checkout funnel over the last week", "what custom metrics are configured on this property?".
Pricing
The MCP server itself is free; it operates within your normal Google Analytics plan (GA4 is free, GA360 is paid). Status is experimental — the tool interface may still change.