Google Analytics 4 queried from the terminal.
Run GA4 reports and realtime reports, list dimensions, metrics, conversion events and audiences, and build audiences — from Bash over the GA4 MCP. The Data API without the boilerplate.
cogny --who
TWO PATHSThe GA4 Explore UI is slow and the Data API needs a service account and client library. The CLI gives you the same reports as one JSON call you can schedule or pipe. Connect Google Analytics 4 once in Cogny Solo and let your coding agent — or scheduled reports — do the querying for you.
❯ start SoloSelf-onboard with one command. The CLI issues a key, wires nothing, and exposes every Google Analytics 4 tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Google Analytics 4 MCP. Send --input JSON, get JSON back.
mcp__Google_Analytics_4__tool_run_reportA GA4 Data API report: dimensions × metrics over a date range.mcp__Google_Analytics_4__tool_run_realtime_reportUsers on the site right now, by dimension.mcp__Google_Analytics_4__tool_list_conversion_eventsWhich events are marked as conversions.cogny tools list
MOREA sample of the rest of the Google Analytics 4 surface. Run cogny tools list --json for every tool and its input schema.
mcp__Google_Analytics_4__tool_list_account_summariesmcp__Google_Analytics_4__tool_get_metadatamcp__Google_Analytics_4__tool_list_custom_dimensionsmcp__Google_Analytics_4__tool_list_custom_metricsmcp__Google_Analytics_4__tool_list_audiencesmcp__Google_Analytics_4__tool_create_audiencemcp__Google_Analytics_4__tool_list_data_streamsmcp__Google_Analytics_4__tool_list_google_ads_linkscogny --faq
It wraps it. `tool_run_report` maps to a runReport call; `tool_run_realtime_report` to a realtime report. You get the rows as JSON without a service account or the google-analytics-data client.
Yes. The CLI is a normal binary — wire `cogny tools call tool_run_report --input ...` into cron, a Makefile, or your agent and capture stdout.
On Cogny Solo, standard MCP calls are unmetered under fair use. The first 15 calls are free on the freemium tier before you pick a plan.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt