mcp-server-ga4

mcp-server-ga4

3

The MCP Server for Google Analytics 4 is designed to provide an interface for fetching and analyzing GA4 metrics using the Model Context Protocol. It includes tools for retrieving page views, active users, and more, as well as resources to assist in data analysis and report generation.

MCP Server for Google Analytics 4

  • Key Features:

    • Tools to fetch various GA4 metrics including page views, active users, events, and user behavior.
    • Resources provide metadata, available dimensions, and metrics.
    • Prompts available for data analysis, report creation, and dimension selection.
  • Setup:

    • Requires a GA4 property and Google Cloud service account.
    • Node.js 20 and pnpm are prerequisites.
    • Installation involves cloning the repository and configuring credentials.
  • Usage:

    • Supports integration with Claude for Desktop.
    • Filtering and pagination options are available.
  • Troubleshooting advises on authentication, connectivity, and data retrieval issues.

  • Testing can be done using the MCP Inspector.

  • Licensed under MIT.