analytics
Fathom Analytics MCP Integration for OpenAI Agents SDK
Connect Fathom Analytics to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Fathom Analytics to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Fathom Analytics MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-fathom": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=fathom",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=fathom --write=deny Why Use KosmoKrator Here
Expose only Fathom Analytics instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Fathom Analytics Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Fathom Analytics integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__fathom__fathom_list_sites | fathom.fathom_list_sites | Read | List all websites tracked in Fathom Analytics. Returns site IDs, names, and domains you can query for analytics data. |
integration__fathom__fathom_get_site | fathom.fathom_get_site | Read | Get details for a specific Fathom Analytics site by ID. Returns site name, domain, tracking code, and other configuration. |
integration__fathom__fathom_list_pageviews | fathom.fathom_list_pageviews | Read | List pageviews for a Fathom Analytics site with date filtering and pagination. Returns individual pageview records including URL, referrer, and device info. |
integration__fathom__fathom_get_aggregate | fathom.fathom_get_aggregate | Read | Get aggregated analytics data from Fathom. Supports pageviews, visits, visitors, bounce rate, and more. Can group results by page, country, browser, device type, etc. |
integration__fathom__fathom_list_events | fathom.fathom_list_events | Read | List custom events tracked in Fathom Analytics for a site. Returns event names, event IDs, and configuration details. |
integration__fathom__fathom_get_current_user | fathom.fathom_get_current_user | Read | Get the currently authenticated Fathom user profile. Returns user name, email, and account details. Useful for verifying API connectivity. |