Google Analytics MCP Server

Stableanalytics
130 starsTypeScriptcommunity
GitHub
About

Overview

The Google Analytics MCP Server enables AI agents to query Google Analytics 4 properties. It provides tools for running reports, accessing real-time data, managing custom dimensions, and tracking conversion funnels. Essential for data-driven marketing and website optimization.
Capabilities

Tools & Capabilities

run_report

Run a GA4 report with dimensions and metrics

get_realtime

Get real-time analytics data

list_properties

List GA4 properties

get_conversions

Get conversion data

Setup

Installation

bash
Install
npx -y mcp-server-google-analytics
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "ga": {
      "command": "npx",
      "args": ["-y", "mcp-server-google-analytics"],
      "env": {
        "GA_PROPERTY_ID": "properties/123456",
        "GOOGLE_APPLICATION_CREDENTIALS": "./sa.json"
      }
    }
  }
}

Quick Info

Authorcommunity
LanguageTypeScript
StatusStable
Stars 130
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
Google Analytics MCP Server - MCP Server Directory - CortexAgent