Fathom Analytics from your shell.
List sites and conversion events, pull aggregate stats with time grouping and filters, and read current visitor counts — all from Bash over the Fathom Analytics MCP. Privacy-friendly analytics, scriptable without the dashboard.
cogny --who
TWO PATHSFathom’s single-page dashboard is great for a quick look, but pulling a specific date-grouped breakdown or an event’s conversions means re-filtering and exporting by hand. The CLI returns those aggregates as JSON you can schedule or feed to an agent. Connect Fathom Analytics 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 Fathom Analytics tool over JSON-RPC. First 15 calls are free.
$ npx @cogny/cli init --agent claude-codecogny tools call
3 EXAMPLESReal tool names from the Fathom Analytics MCP. Send --input JSON, get JSON back.
mcp__Fathom_Analytics__aggregateAggregate pageviews, visits, uniques, and bounce rate by day.mcp__Fathom_Analytics__current_visitorsLive visitor count, optionally broken down by page.mcp__Fathom_Analytics__list_eventsList configured conversion events for a site.cogny tools list
MOREA sample of the rest of the Fathom Analytics surface. Run cogny tools list --json for every tool and its input schema.
mcp__Fathom_Analytics__list_sitesmcp__Fathom_Analytics__list_email_reportscogny --faq
No — it is the Cogny CLI calling the Fathom Analytics MCP over the cogny-mcp-proxy. You connect your Fathom API token once in Cogny and then call every tool from Bash with no API plumbing of your own.
Yes. Set entity to "event" and entity_id to the event ID in aggregate to pull that conversion’s stats; use list_events first to discover the IDs configured on the site.
date_from / date_to use "YYYY-MM-DD HH:MM:SS" in UTC, and field_grouping can be hour, day, month, or year. The data is privacy-first — no per-visitor PII, just aggregates.
related CLIs
Building an agent? The full tool map for all servers is one fetch: /cli/llms.txt