Answers
Can I query my Google Analytics 4 data from Cursor or Claude?
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?
- For Google's server: a Google Cloud project, two APIs, credentials, then
claude mcp add. - 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."