Gacli

•

Manages Google Analytics 4 data and administration through a comprehensive command-line interface, additionally functioning as an MCP server for AI integration.

Gacli provides a robust command-line interface for interacting with both the Google Analytics 4 Data API and Admin API. It enables users to run reports, fetch realtime data, manage property settings, custom dimensions/metrics, and audience exports with ease. Beyond its core CLI functionality, gacli stands out by integrating an MCP server, allowing popular LLM clients like Claude Desktop and Cursor to leverage its capabilities as a tool. It also features an interactive REPL for exploring the GA4 metric and dimension catalog, simplifying data discovery and analysis.

主要功能

01Comprehensive Google Analytics 4 Data and Admin API access
020 GitHub stars
03Offers an interactive 'explore' REPL for metric and dimension catalog browsing
04Supports various output formats including table, JSON, NDJSON, CSV, and ASCII charts
05Integrates with AI assistants (Claude, Cursor, Zed) via native skill packages and an MCP server
06Flexible authentication methods: OAuth 2.0 and service accounts

使用案例

01Automating Google Analytics 4 data extraction and report generation for analysis
02Programmatically managing GA4 properties, streams, and custom configurations from the command line
03Enabling AI assistants to interact with and manage Google Analytics 4 data for enhanced workflows