Connectors
Google Analytics 4 MCP connector
The Google Analytics 4 connector lets AI agents query GA4 properties and manage their configuration through InsightfulPipe's hosted MCP server at https://google-analytics.insightfulmcp.com/. Reports run on the GA4 Data API runReport, and Admin API actions cover key events, custom dimensions and metrics, audiences, channel groups, data streams and product links.
Google Analytics 4 MCP server reference
- Endpoint
https://google-analytics.insightfulmcp.com/- Server name
google-analytics-mcp- Actions
- 62 (26 read, 36 write). Workspace owners, admins and operators choose which actions each connected account exposes, and destructive actions are off by default.
Add it from a terminal, then click Authorize access in the browser window that opens:
claude mcp add --transport http google-analytics-mcp https://google-analytics.insightfulmcp.com/
gemini mcp add --transport http google-analytics-mcp https://google-analytics.insightfulmcp.com/
codex mcp add google-analytics-mcp --url https://google-analytics.insightfulmcp.com/What agents can do
- Custom reports:
get_reportrunsrunReportwith any dimensions and metrics, date ranges, filters, ordering, comparisons and cohorts, and pages through up to 1,000,000 rows. - Predefined reports: traffic sources, pages, events, ecommerce, geo, tech and user demographics.
- Property configuration: read and update the property, data retention and enhanced measurement settings, and manage data streams.
- Key events, custom dimensions and custom metrics: list, create, update, and delete or archive.
- Audiences and channel groups: list, create, update and archive audiences, and manage custom channel groups.
- Links and Measurement Protocol: manage Google Ads links, BigQuery links and Measurement Protocol secrets.
Before you connect
- A Google login with access to the GA4 property. Configuration changes also need edit access to the property in Google Analytics.
- Universal Analytics properties are not supported.
Connect Google Analytics
- In the InsightfulPipe app, open Connectors, choose Google Analytics and click Connect.
- Choose Read Only or Read + Write.
- Sign in with Google and approve access.
- Select one or more GA4 properties. Each property becomes its own connection.
- Add the MCP server to Claude, ChatGPT or another client, then click Authorize access.
Permissions and safety
- Read Only grants
analytics.readonly. Read + Write addsanalytics.editfor Admin API changes. - Admin actions are locked to the connected property. The exception is
create_property, which creates a property under any account your Google login can edit; the new property is not connected automatically. list_accountsand the two Measurement Protocol secret reads count as write actions: the first lists every account your Google login administers, and the others return a reusable secret.- Twelve actions are destructive and off by default:
delete_property(moves the property to the GA4 trash),delete_data_stream,delete_key_event,delete_channel_group,delete_google_ads_link,delete_bigquery_link,delete_measurement_protocol_secret,archive_audience,archive_custom_dimension,archive_custom_metric,update_data_retention_settingsandacknowledge_user_data_collection.
Limits
- Reports use
runReportonly. There are no realtime, pivot or batch reports. - Audiences, channel groups, BigQuery links and enhanced measurement use the Admin API v1alpha, which Google can change without notice.
- Audience updates cover the name, description and event trigger only, and membership duration must be 1 to 540 days.
- Admin list actions return 50 records per page.
create_bigquery_linkalso needs BigQuery permissions in Google Cloud.
Example prompts
- "Using Google Analytics, show sessions, engaged sessions and key events by default channel group for the last 28 days."
- "Which landing pages had the highest bounce rate last week with at least 500 sessions?"
- "List the custom dimensions on this property and create an event-scoped dimension for plan_type."
- "Compare purchase revenue by device category this month versus last month."
Troubleshooting
- "This account is connected read-only, so this action cannot be enabled for it." Reconnect the property with Read + Write to change configuration.
- "This action is disabled for this connected account." An owner, admin or operator must enable it in Configure actions for this account.
- Recent days look low: compare complete days and extend the date range before drawing conclusions.