Google Analytics 4 MCP Server for CursorGive Cursor instant access to 12 tools to Batch Run Reports, Check Compatibility, Get Conversions, and more
Cursor is an AI-first code editor built on VS Code that integrates LLM-powered coding assistance directly into the development workflow. Its Agent mode enables autonomous multi-step coding tasks, and MCP support lets agents access external data sources and APIs during code generation.
Ask AI about this App Connector for Cursor
The Google Analytics 4 app connector for Cursor is a standout in the Industry Titans category — giving your AI agent 12 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
Vinkius Desktop App
The modern way to manage MCP Servers — no config files, no terminal commands. Install Google Analytics 4 and 3,400+ MCP Servers from a single visual interface.




{
"mcpServers": {
"google-analytics-4": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
}
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Google Analytics 4 MCP Server
Connect your Google Analytics 4 property to any AI agent and access web analytics through natural conversation.
Cursor's Agent mode turns Google Analytics 4 into an in-editor superpower. Ask Cursor to generate code using live data from Google Analytics 4 and it fetches, processes, and writes. all in a single agentic loop. 12 tools appear alongside file editing and terminal access, creating a unified development environment grounded in real-time information.
What you can do
- Custom Reports — Run fully customizable GA4 reports with any combination of dimensions, metrics, and date ranges
- Real-Time Analytics — Monitor active users and current page views in real time
- Page Performance — Retrieve the top 25 pages ranked by views for any time period
- Traffic Sources — Analyze session sources and mediums to understand where visitors come from
- User Demographics — View user distribution by country for geographic insights
- Device Breakdown — See user distribution across desktop, mobile, and tablet
- Conversions — Track conversion events with counts and revenue data
- Advanced Reporting — Run pivot reports and batch multiple reports in a single request
- Metadata & Compatibility — List all available dimensions and metrics, and verify compatibility before building reports
The Google Analytics 4 MCP Server exposes 12 tools through the Vinkius. Connect it to Cursor in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 12 Google Analytics 4 tools available for Cursor
When Cursor connects to Google Analytics 4 through Vinkius, your AI agent gets direct access to every tool listed below — spanning web-analytics, event-tracking, conversion-analysis, and more. Every call is secured with network, filesystem, subprocess, and code evaluation entitlements inside a sandboxed runtime. Beyond a simple connection, you get a full AI Gateway with real-time visibility into agent activity, enterprise governance, and optimized token usage.
Batch run reports
Check report compatibility
Get conversions
Get device breakdown
Get available dimensions and metrics
Get top pages by views
Get traffic sources
Get user demographics
List audience exports
Run pivot report
Run realtime report
Data JSON must include dateRanges, dimensions, and metrics arrays. Run a custom report
Connect Google Analytics 4 to Cursor via MCP
Follow these steps to wire Google Analytics 4 into Cursor. The entire setup takes under two minutes — your credentials stay safe behind the Vinkius.
Open MCP Settings
Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) → search "MCP Settings"Add the server config
mcp.json file that opensSave the file
Start using Google Analytics 4
Why Use Cursor with the Google Analytics 4 MCP Server
Cursor AI Code Editor provides unique advantages when paired with Google Analytics 4 through the Model Context Protocol.
Agent mode turns Cursor into an autonomous coding assistant that can read files, run commands, and call MCP tools without switching context
Cursor's Composer feature can generate entire files using real-time data fetched through MCP. no copy-pasting from external dashboards
MCP tools appear alongside built-in tools like file reading and terminal access, creating a unified agentic environment
VS Code extension compatibility means your existing workflow, keybindings, and extensions all work alongside MCP tools
Google Analytics 4 + Cursor Use Cases
Practical scenarios where Cursor combined with the Google Analytics 4 MCP Server delivers measurable value.
Code generation with live data: ask Cursor to generate a security report module using live DNS and subdomain data fetched through MCP
Automated documentation: have Cursor query your API's tool schemas and generate TypeScript interfaces or OpenAPI specs automatically
Infrastructure-as-code: Cursor can fetch domain configurations and generate corresponding Terraform or CloudFormation templates
Test scaffolding: ask Cursor to pull real API responses via MCP and generate unit test fixtures from actual data
Example Prompts for Google Analytics 4 in Cursor
Ready-to-use prompts you can give your Cursor agent to start working with Google Analytics 4 immediately.
"Show me the top 10 pages by views this month and where the traffic is coming from."
"How many conversions did we get this week and which pages drove them?"
"What devices are our users on and which countries are generating the most traffic?"
Troubleshooting Google Analytics 4 MCP Server with Cursor
Common issues when connecting Google Analytics 4 to Cursor through the Vinkius, and how to resolve them.
Tools not appearing in Cursor
Server shows as disconnected
Google Analytics 4 + Cursor FAQ
Common questions about integrating Google Analytics 4 MCP Server with Cursor.
What is Agent mode and why does it matter for MCP?
Where does Cursor store MCP configuration?
mcp.json file. You can configure servers at the project level (.cursor/mcp.json in your project root) or globally (~/.cursor/mcp.json). Project-level configs take precedence.