Navigation
MCP Fathom Analytics: Real-Time Insights & Performance Optimization - MCP Implementation

MCP Fathom Analytics: Real-Time Insights & Performance Optimization

MCP Fathom Analytics: Real-time server insights & performance optimization. Secure, scalable, trusted by data-driven pros.

Research And Data
4.4(97 reviews)
145 saves
67 comments

Ranked in the top 6% of all AI tools in its category

About MCP Fathom Analytics

What is MCP Fathom Analytics: Real-Time Insights & Performance Optimization?

MCP Fathom Analytics is an unofficial server implementation that bridges Fathom Analytics data with AI-driven tools via the Model Context Protocol (MCP). It leverages the @mackenly/fathom-api SDK to access real-time metrics and historical performance data. Designed for developers and analysts, this open-source solution enables seamless integration of Fathom's analytics into workflows without requiring official platform support.

Key Features of MCP Fathom Analytics: Real-Time Insights & Performance Optimization

At its core, the platform offers:

  • Account & Site Management: Retrieve account details and list all monitored sites
  • Event Tracking: Analyze specific site events with granular filtering
  • Aggregation Engine: Create custom reports with dynamic grouping across dates, pages, and geolocations
  • Real-Time Monitoring: Instant visitor tracking for current session analysis

MCP Fathom Analytics Features

How to Use MCP Fathom Analytics: Real-Time Insights & Performance Optimization

Integration follows a straightforward workflow:

  1. Install via npm: npx mcp-fathom-analytics
  2. Configure environment variables with your Fathom API key
  3. Implement in AI workflows using MCP's standardized interfaces

For example, configuring Claude Desktop requires adding this configuration block to your environment setup:

FOO_SERVICE_API_KEY=your_fathom_api_key

Use Cases of MCP Fathom Analytics: Real-Time Insights & Performance Optimization

Common applications include:

  • Performance Audits: Compare daily traffic patterns over custom date ranges
  • Conversion Analysis: Track button clicks or form submissions across page variants
  • Geolocation Reporting: Identify top performing regions using aggregated visitor data
  • Live Dashboard Feeds: Pull real-time session data for dynamic visualization tools

MCP Fathom Analytics FAQ

FAQ from MCP Fathom Analytics: Real-Time Insights & Performance Optimization

Is this an official Fathom product? No, it's a community-driven implementation built on publicly available APIs.

Can I contribute? Absolutely! The project welcomes pull requests via its GitHub repository.

What's the data latency? Real-time feeds update every 15 seconds, with historical data available back to Fathom's earliest records.

Does it support multi-site accounts? Yes, returns all sites linked to the provided API key by default.

Content

MCP Fathom Analytics

An unofficial Model Context Protocol (MCP) server for accessing Fathom Analytics data through an AI assistant. This implementation uses the @mackenly/fathom-api unofficial SDK to interact with the Fathom Analytics API. Not affiliated, endorsed, or supported by Fathom Analytics. Published to npm as an npx script.

Fathom Analytics MCP server

Features

The MCP server provides the following Fathom Analytics tools:

Account Information

  • get-account: Retrieve details about your Fathom Analytics account

Sites Management

  • list-sites: List all your Fathom Analytics sites

Events

  • list-events: List events for a specific site

Analytics

  • get-aggregation: Generate aggregated analytics reports with flexible filtering and grouping options

Visitor Tracking

  • get-current-visitors: Get real-time data about current site visitors

Usage

If you're using Claude Desktop, you can add the MCP server using the json config (more info). Here's an example:

{
    "mcpServers": {
        "fathom-analytics": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-fathom-analytics"
            ],
            "env": {
                "FATHOM_API_KEY": "your_api_key_here"
            }
        }
    }
}

You can find more information about other MCP Clients here: Model Context Protocol Example Clients

API Structure

The MCP server uses the @mackenly/fathom-api SDK to interface with the Fathom Analytics API endpoints:

  1. Account API : https://api.usefathom.com/v1/account
  2. Sites API : https://api.usefathom.com/v1/sites
  3. Events API : https://api.usefathom.com/v1/sites/SITE_ID/events
  4. Aggregation API : https://api.usefathom.com/v1/aggregations
  5. Current Visitors API : https://api.usefathom.com/v1/current_visitors

Aggregation Examples

The aggregation tool is highly flexible. Here are some example use cases:

  1. Daily pageview statistics for the last 30 days :
{
  "entity": "pageview",
  "entity_id": "SITE_ID",
  "aggregates": "pageviews,uniques,visits",
  "date_grouping": "day",
  "date_from": "2023-08-01 00:00:00"
}
  1. Performance of individual pages :
{
  "entity": "pageview",
  "entity_id": "SITE_ID",
  "aggregates": "pageviews,uniques,avg_duration",
  "field_grouping": "pathname",
  "sort_by": "pageviews:desc",
  "limit": 10
}
  1. Traffic from specific countries :
{
  "entity": "pageview",
  "entity_id": "SITE_ID",
  "aggregates": "visits",
  "field_grouping": "country_code",
  "sort_by": "visits:desc"
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related MCP Servers & Clients