Google Analytics

Google Analytics

Official
Data & Analytics
Credentials

Query GA4 account details and run core, funnel, and realtime reports.

Google Analytics

Query GA4 account details and run core, funnel, and realtime reports. With Lunar.dev MCPX, the MCP Gateway for secure and governed tool access, you connect the Google Analytics MCP server to Claude, ChatGPT, Cursor, and any MCP client through one gateway that routes, authenticates, and governs every Google Analytics tool call against your policies.

Why MCPX

MCPX is Lunar.dev's MCP Gateway. It sits between your AI agents and your MCP servers as a single gateway for every tool call, routing, authenticating, and governing traffic against your policies. Connect Google Analytics once and govern it everywhere: role-based access per agent with on-behalf-of attribution, real-time visibility, and an immutable audit trail of who did what, all deployable inside your own VPC.

Tools content

  • get_account_summaries · Read-only
    Retrieves information about the user's Google Analytics accounts and properties.
  • list_google_ads_links · Read-only
    Returns a list of links to Google Ads accounts for a property.
  • get_property_details · Read-only
    Returns details about a property.
  • list_property_annotations · Read-only
    Returns annotations for a property (notes left on GA4 for specific dates or periods).
  • get_custom_dimensions_and_metrics · Read-only
    Returns the property's custom dimensions and metrics.
  • run_report · Read-only
    Runs a Google Analytics Data API report.
  • run_realtime_report · Read-only
    Runs a Google Analytics Data API realtime report.
  • run_funnel_report · Read-only
    Run a Google Analytics Data API funnel report.
  • run_conversions_report · Read-only
    Runs a Google Analytics Data API conversions report (for conversions, ad performance, ROAS, or attribution).

Frequently asked questions

What is the Google Analytics MCP server?

Query GA4 account details and run core, funnel, and realtime reports. Through Lunar.dev MCPX, Google Analytics connects to any MCP-compatible AI client behind a single governed gateway.

How do I connect Google Analytics to MCPX?

Add the Google Analytics server in the MCPX control plane or your app.yaml, then point your AI client at your MCPX gateway. MCPX handles Credentials and routes every Google Analytics call through the gateway.

Is the Google Analytics MCP server official?

Yes. Google Analytics is an official, vendor-published MCP server, and MCPX governs it like any other server in your catalog.

What authentication does Google Analytics use with MCPX?

Google Analytics uses Credentials. MCPX enforces authentication at the gateway with token-based auth, OAuth, and role-based profiles, so you control which agents can invoke it.

How many tools does Google Analytics expose in MCPX?

Google Analytics exposes 7 tools. In MCPX you can enable or disable each tool per agent for least-privilege access.

Server details

CategoryData & Analytics
AuthCredentials
Connectionstdio
Tools7 available