MCP server
Google Analytics 4 MCP server
Google publishes an official MCP server for Google Analytics 4 that runs on your own computer.
Server details
Publisher
The official server.
Runs
On your computer
It runs on your own computer.
Sign-in
OAuth
Python 3.10+ with pipx or uv, the Analytics Admin and Data APIs enabled in a Google Cloud project, Application Default Credentials with the analytics.readonly scope, and at least the Viewer role on the property. Write tools need the --allow-write flag and the analytics.edit scope.
Google Analytics 4 MCP server tools
get_account_ summaries Retrieves information about the user’s Google Analytics accounts and properties.
get_property_ details Returns details about a property.
list_google_ ads_ links Returns a list of links to Google Ads accounts for a property.
list_property_ annotations Returns annotations for a property.
create_property_ annotation Creates an annotation for a property (requires passing the --allow-write flag and the analytics.edit scope).
list_key_ events Returns the key events (formerly conversions) defined on a property.
create_custom_ dimension Creates a custom dimension on a property (requires passing the --allow-write flag and the analytics.edit scope, and the Editor role on the property).
create_key_ event Marks an event as a key event on a property (requires passing the --allow-write flag and the analytics.edit scope, and the Marketer or Editor role on the property).
run_report Runs a Google Analytics report using the Data API.
run_funnel_ report Runs a Google Analytics funnel report using the Data API.
run_conversions_ report Runs a Google Analytics conversions report (ad costs, conversions, ROAS and attribution models) using the Data API.
get_custom_ dimensions_ and_ metrics Retrieves the custom dimensions and metrics for a specific property.
run_realtime_ report Runs a Google Analytics realtime report using the Data API.
Add it to Claude, ChatGPT or Cursor
It runs on your own computer. Install it as the docs linked above describe, then add it to an app that runs local MCP servers, such as Claude Desktop or Cursor.
Kipwise’s Google Analytics 4 MCP server
Kipwise runs Kipwise for Google Ads, Analytics & Search Console, a remote MCP server at https://agent.kipwise.com/mcp/google-marketing. Add it to Claude as a custom connector and sign in with Slack. It needs a Kipwise Agent plan or trial, and workspaces whose data is in the EU region can’t connect yet. Set it up in Claude.
google_analytics_ list_ properties List the Google Analytics 4 properties the user’s Google account can access, with each property id, display name and account.
google_analytics_ run_ report Run a GA4 report for a property: comma-separated GA4 metrics and dimensions over a date range, up to 100 rows.
Worth knowing
It runs on your computer and is read-only by default. Three write tools, for annotations, custom dimensions and key events, appear only with --allow-write and the analytics.edit scope.
Google Analytics 4 in Slack, without running a server
Kipwise Agent works with Google Analytics 4 from a Slack thread, with no MCP server to run. Each person connects their own Google Analytics 4 account, and anything that changes data waits for an Approve card. See Google Analytics 4 in Slack.
@Kipwise connect Google Analytics 4
Each person connects their own Google Analytics 4 account. Nobody shares a login.
@Kipwise what can you do in Google Analytics 4?
Run reports on traffic and active users.
Questions
Is there an official Google Analytics 4 MCP server?
Yes. Google publishes it.
What do I need to use the Google Analytics 4 MCP server?
Python 3.10+ with pipx or uv, the Analytics Admin and Data APIs enabled in a Google Cloud project, Application Default Credentials with the analytics.readonly scope, and at least the Viewer role on the property. Write tools need the --allow-write flag and the analytics.edit scope.
Can I use Google Analytics 4 from Slack without an MCP server?
Yes. Kipwise Agent connects to Google Analytics 4 directly from a Slack thread. Each person connects their own Google Analytics 4 account, and anything that changes data waits for an Approve card.
What does Kipwise Agent cost?
$29 a month per workspace, or $290 a year (2 months free). That includes $20 of AI credit every month, shared by the whole workspace. Add it to Slack and the free trial starts on your first message: $10 of AI credit for 14 days, no card needed.