KosmoKrator

analytics

Fathom Analytics MCP, CLI, and Lua Integration for AI Agents

Fathom Analytics integration docs for AI agents: MCP gateway setup, Fathom Analytics CLI commands, Lua API reference, credentials, and function schemas.

6 functions 6 read 0 write Bearer token auth

Fathom Analytics for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
fathom
route_slug
fathom
package
fathom
auth_strategy
bearer_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Fathom Analytics MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Fathom Analytics.

Fathom Analytics CLI Matrix

Use these pages for direct Fathom Analytics CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
fathom.fathom_list_sites Read read 2 List all websites tracked in Fathom Analytics. Returns site IDs, names, and domains you can query for analytics data.
fathom.fathom_get_site Read read 1 Get details for a specific Fathom Analytics site by ID. Returns site name, domain, tracking code, and other configuration.
fathom.fathom_list_pageviews Read read 5 List pageviews for a Fathom Analytics site with date filtering and pagination. Returns individual pageview records including URL, referrer, and device info.
fathom.fathom_get_aggregate Read read 7 Get aggregated analytics data from Fathom. Supports pageviews, visits, visitors, bounce rate, and more. Can group results by page, country, browser, device type, etc.
fathom.fathom_list_events Read read 3 List custom events tracked in Fathom Analytics for a site. Returns event names, event IDs, and configuration details.
fathom.fathom_get_current_user Read read 0 Get the currently authenticated Fathom user profile. Returns user name, email, and account details. Useful for verifying API connectivity.