MCP server

Google Analytics MCP Server: Reports for AI Agents

The Google Analytics MCP server lets an AI agent read Google Analytics account details and run core, funnel and realtime reports through the Admin and Data APIs.

Run
pipx run analytics-mcp
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the Google Analytics MCP server?

The Google Analytics MCP server is an open source server from the googleanalytics GitHub organization. It lets an AI agent list accounts and properties, run reports, funnels and realtime reports, and read key events. You run it with pipx run analytics-mcp, using Google Application Default Credentials.

The repo describes it as source code for running a local or remote multi-tenant MCP server that talks to Google Analytics APIs. It uses the Analytics Admin API and the Analytics Data API to give an AI agent a set of read tools, and a few opt-in write tools.

By default it runs locally over stdio as the analytics-mcp package. It can also run as a shared HTTP service where each end user signs in with their own Google account.

What it changes in your workflow

  • Ask which properties you have, then request a traffic report in plain language instead of building it in the Google Analytics interface.
  • Run funnel and conversions reports, including ad costs, ROAS and attribution models, through the Data API.
  • Check realtime activity with a realtime report.
  • Write tools, such as creating a property annotation or a key event, stay off until you pass the --allow-write flag.

Setup at a glance

Google Analytics MCP
Where it runsLocally through pipx run analytics-mcp, or as an HTTP service
AuthGoogle Application Default Credentials with the analytics.readonly scope
Write accessOff by default; needs --allow-write and the analytics.edit scope
Google CloudEnable the Analytics Admin API and Analytics Data API in your project
Hosted optionDocker image for Cloud Run, plus an optional built-in OAuth 2.1 server

Who it is for

Best for

  • Marketers and developers who want Google Analytics numbers inside the agent they already use.
  • Teams that need per-user Google sign-in on a shared service, using the HTTP and OAuth modes.
  • Analysts who want funnels and conversions queried through prompts rather than the Google Analytics UI.

Not for

  • Sites that use another analytics tool. It reads Google Analytics only.
  • Quick no-config setups. You must enable APIs and configure credentials in Google Cloud first.
  • Search queries and rankings. For on-page checks see the web SEO skill.

Use it with UiChemy

Read Google Analytics results for pages you built with UiChemy and let the agent suggest what to change. Composer, Figma to WordPress and AI to WordPress produce the pages; this server reports how they perform. Click Get Started on uichemy.com. For tuning, see the web quality audit skill.