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_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Fathom Analytics CLIHeadless setup and direct function calls. Fathom Analytics MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Fathom Analytics MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Fathom Analytics.
Claude Code Fathom Analytics MCP setup for Claude Code. Cursor Fathom Analytics MCP setup for Cursor. Codex Fathom Analytics MCP setup for Codex. OpenAI Agents Fathom Analytics MCP setup for OpenAI Agents SDK. Claude Agent SDK Fathom Analytics MCP setup for Claude Agent SDK. Vercel AI SDK Fathom Analytics MCP setup for Vercel AI SDK. LangChain Fathom Analytics MCP setup for LangChain. LangGraph Fathom Analytics MCP setup for LangGraph. CrewAI Fathom Analytics MCP setup for CrewAI. MCP clients Fathom Analytics MCP setup for Generic MCP Clients.
Fathom Analytics CLI Matrix
Use these pages for direct Fathom Analytics CLI workflows in scripts, CI, cron, and agent wrappers.
CI Fathom Analytics CLI for CI. Cron Jobs Fathom Analytics CLI for cron jobs. Shell Scripts Fathom Analytics CLI for shell scripts. Headless Automation Fathom Analytics CLI for headless automation. Coding Agents Fathom Analytics CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
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. |