Simple, privacy-first website analytics.
## Fathom MCP Server: Privacy-First Analytics The **Fathom MCP Server** integrates Fathom's privacy-focused analytics into Google Antigravity. This enables simple, GDPR-compliant website analytics without cookies or invasive tracking. ### Why Fathom MCP? Fathom respects visitor privacy: - **No Cookies**: GDPR compliant by default - **Simple**: Clean, focused dashboard - **Fast**: Lightweight tracking script - **Accurate**: No ad blockers blocking it - **EU Isolation**: EU data stays in EU ### Key Features #### 1. Get Site Stats ```python import requests headers = {"Authorization": f"Bearer {api_token}"} # Get aggregated stats response = requests.get( "https://api.usefathom.com/v1/aggregations", headers=headers, params={ "entity": "pageview", "entity_id": site_id, "aggregates": "visits,uniques,pageviews", "date_from": "2024-01-01", "date_to": "2024-03-01" } ) stats = response.json() print(f"Visits: {stats['visits']}") print(f"Unique visitors: {stats['uniques']}") ``` #### 2. Page Analytics ```python # Get top pages response = requests.get( "https://api.usefathom.com/v1/aggregations", headers=headers, params={ "entity": "pageview", "entity_id": site_id, "aggregates": "pageviews", "field_grouping": "pathname", "sort_by": "pageviews:desc", "limit": 10 } ) for page in response.json(): print(f"{page['pathname']}: {page['pageviews']} views") ``` #### 3. Track Events ```python # Track custom event response = requests.post( "https://api.usefathom.com/v1/events", headers=headers, json={ "site_id": site_id, "event_id": "SIGNUP_BTN", "value": 1 } ) ``` ### Configuration ```json { "mcpServers": { "fathom": { "command": "npx", "args": ["-y", "@anthropic/mcp-fathom"], "env": { "FATHOM_API_TOKEN": "your-api-token", "FATHOM_SITE_ID": "your-site-id" } } } } ``` ### Use Cases **Privacy Analytics**: GDPR-compliant tracking. **Simple Metrics**: Essential stats without complexity. **Marketing**: Track campaigns and conversions. The Fathom MCP Server brings privacy-first analytics to Antigravity.
{
"mcpServers": {
"fathom": {}
}
}