Meta Pixel

Google Analytics 4 MCP server

Connect Google Analytics 4 to your assistant to compare sessions and key events by channel and check reports against the right property ID.

Choose your AI assistant

What can you do with Google Analytics 4?

LoomaScale’s Model Context Protocol (MCP) server gives your assistant tools to work with Google Analytics 4 using the access you grant.

What you need before you start

Use a Google identity with access to your GA4 property. Reporting needs the numeric property ID, not a web stream's G- measurement ID.

How to read the report

Use a session acquisition report to establish the traffic mix, then investigate named events separately when necessary. Reporting definitions and attribution can differ from advertising platforms, so do not treat a discrepancy as a broken connection by default.

See it in action

Your AI assistant
You
Did the extra paid search traffic bring in more purchases?
LoomaScale

Paid search sessions rose from 800 to 1,000 while purchases stayed at 20. Check the landing pages for the extra traffic before crediting the campaign with more sales.

Set up the connection

  1. Open Connections in LoomaScale and authorize Google Analytics 4 with a login that can access the data you want to use. Open LoomaScale connections
  2. Follow the setup guide for your assistant and authorize LoomaScale in the browser. Choose your AI assistant
  3. Run a prompt below and check the first result before continuing.

Remote MCP endpoint

For manual setup, add this URL as a remote HTTP server in your MCP client and complete the OAuth sign-in.

https://api.loomascale.com/mcp/ga4

What should you ask first?

Use LoomaScale to call ga4_get_account_summaries. List my GA4 property names and numeric IDs, then ask which property to use. Read its reporting time zone and currency. Do not edit settings.

For the selected GA4 property, report sessions, engagedSessions and keyEvents by sessionDefaultChannelGroup over the last 7 complete days and the previous 7. State property ID, dates and time zone. Identify material changes and any unavailable or restricted data. Do not change configuration or claim a causal explanation from the report alone.

Questions people ask before they start

What should I check first?

Select a returned resource such as properties/123456789. Keep that property in subsequent reports and use its time zone for date boundaries.

Who controls access to the data?

Your provider login determines which accounts or resources LoomaScale can reach. Review the permissions during sign-in. You can disconnect the source in LoomaScale.

Explore other MCP servers