Google Analytics 4 MCP Server: ask Claude about your data
The Detrics MCP server gives Claude read-only access to your Google Analytics 4 account. You ask in plain language and Claude answers from your live data, not a stale export.
Available on the free plan: 35 queries/month, no credit card.
Ask your agent about Google Analytics 4
Traffic dropped this week according to Google Analytics 4. Find out why.
Which pages lost the most visits in Google Analytics 4 this month?
What were my top traffic sources in Google Analytics 4 this month?
Compare my Google Analytics 4 active users against last quarter
What you can analyze in Google Analytics 4
E-commerce Revenue Tracking
Monitor purchase revenue, item revenue, and purchase quantities with complete funnel metrics. Track add to carts, checkouts, cart-to-view rates, and purchase-to-view rates for optimization.
User Acquisition & Retention
Analyze first user source, session source, and campaign attribution. Track new users, active users, engagement duration, and average session duration.
Event & Conversion Analytics
Monitor event counts, conversions, and event values by event name. Track custom events and goal completions throughout the user journey.
Content Performance Metrics
Analyze page paths, landing pages, and page titles. Track page views, engagement duration, and bounce rates for content optimization.
Technology & Platform Insights
Break down by device category, operating system, browser, and screen resolution. Compare mobile device brands and models across platforms.
Geographic & Demographic Analysis
Track performance by country, region, and city. Monitor language preferences and demographic insights for complete audience understanding.
What Claude can see in Google Analytics 4
84 metrics and 168 dimensions, including:
Need full history and SQL? See the Google Analytics 4 BigQuery connector
How the Google Analytics 4 MCP server works
Connect Google Analytics 4 once and query it in plain language.
Connect your first datasource
Link any of 32+ marketing and ecommerce platforms in a couple of clicks.
Connect Detrics to Claude
Add Detrics as an MCP connector in Claude. Your marketing data is ready to query in plain language.
Start talking to your data
Ask Claude for any report in plain language. It builds the dashboard from your real numbers, no hallucinations.
Technical setup for developers
Add Detrics to any MCP-compatible client using your API key from app.detrics.io/mcp:
{
"mcpServers": {
"detrics": {
"command": "npx",
"args": ["-y", "detrics"],
"env": {
"DETRICS_API_KEY": "dk_••••••••"
}
}
}
}Available tools include list_connections, list_accounts, list_fields, and query_marketing_data. All Google Analytics 4 access is read-only.
Frequently Asked Questions
Ask your first Google Analytics 4 question today
- Works with Claude, Cursor, Windsurf & more
- Read-only access, OAuth 2.0 secured
- Free plan with 35 queries/month
