Labsco
MCP SERVER

Google Analytics MCP Server

by AST-Consulting

Ask Google Analytics for numbers directly — sessions, users, conversions — and walk the account, property and stream tree that produced them.

SEO, Web & Product Analytics
Summary
GA numbers without the report builder.

It answers analytics questions from the API rather than the interface, and exposes a property's own definitions — custom metrics, conversion events, streams — so you can tell what a number is actually counting.

What it is

A read layer over the Google Analytics APIs. Reports come back for the metrics and dimensions you name, and the configuration around them — properties, data streams, custom definitions — is addressable in the same session.

What you get
  • Analytics reports for the metrics and dimensions you name: sessions, users, pageviews, conversions
  • The account hierarchy — every account you can reach, and the properties under each
  • Data streams configured on a property, so you know which site or app fed the number
  • Custom dimensions and custom metrics defined on a property
  • The conversion events a property is tracking
Requirements

Node.js v18 or later, Google OAuth2 credentials (client ID and secret), and a valid access and refresh token pair. The repository ships an oauth-helper script that mints them; Google's OAuth playground works too.