MCP Fathom Analytics

MCP Fathom Analytics

By mackenly GitHub

MCP server for Fathom Analytics

mcp fathom-analytics
Overview

What is MCP Fathom Analytics?

MCP Fathom Analytics is an unofficial Model Context Protocol (MCP) server designed to access Fathom Analytics data through an AI assistant, utilizing the @mackenly/fathom-api SDK.

How to use MCP Fathom Analytics?

To use MCP Fathom Analytics, integrate it with Claude Desktop by adding the MCP server configuration in JSON format, including your Fathom API key.

Key features of MCP Fathom Analytics?

  • Retrieve account information and details about Fathom Analytics accounts.
  • Manage and list all Fathom Analytics sites.
  • Access event data for specific sites.
  • Generate aggregated analytics reports with flexible filtering options.
  • Get real-time data about current site visitors.

Use cases of MCP Fathom Analytics?

  1. Analyzing daily pageview statistics over a specified period.
  2. Evaluating the performance of individual pages on a site.
  3. Tracking traffic sources from specific countries.

FAQ from MCP Fathom Analytics?

  • Is MCP Fathom Analytics officially supported by Fathom Analytics?

No, it is an unofficial implementation and not affiliated with Fathom Analytics.

  • How can I contribute to MCP Fathom Analytics?

Contributions are welcome! You can submit a Pull Request on the GitHub repository.

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.

No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details