Sign inGet started
Answers

Can I query my Google Analytics 4 data from Cursor or Claude?

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

Yes: with Google's open-source MCP server you run yourself, or with nextanalytica, which reads GA4 as a source next to your own visits.

Updated

Yes, two ways. Google's open-source Google Analytics MCP server runs on your computer with Python and Google Cloud credentials, or on a server you host, and reads any GA4 report. nextanalytica is hosted: connect GA4 as a source and your agent reads its daily sessions, key events, pages, countries and devices, back to the property's start, next to nextanalytica's own visits.

How do you do it?

  1. For Google's server: a Google Cloud project, two APIs, credentials, then claude mcp add.
  2. For nextanalytica: connect GA4 in Sources, then add the MCP address.

What can you ask your agent?

  • "Compare this month's GA4 sessions with last year's, by channel."

Next steps