SuperAPI AI Directory

mcp-fathom-analytics

This is an unofficial MCP (Model Context Protocol) server that allows AI assistants to access Fathom Analytics data. It uses the unofficial SDK @mackenly/fathom-api to interact with the Fathom Analytics API and is published to npm via an npx script. The server provides tools for account information, site management, visitor tracking, and more, including retrieving account details, listing sites, listing events, generating aggregation reports, and getting real-time visitor data. Users can configure and use it in MCP clients such as Claude Desktop to query analytics data through natural language.

Open website

About this tool

Purpose

mcp-fathom-analytics is an unofficial Model Context Protocol (MCP) server designed to enable AI assistants to access Fathom Analytics data. It exposes the API capabilities of Fathom Analytics to AI clients that support MCP (such as Claude Desktop) through the MCP protocol, allowing users to query website analytics data with natural language.

Main Capabilities

This MCP server provides the following Fathom Analytics tools:

  • get-account: Retrieve detailed information about the Fathom Analytics account.
  • list-sites: List all Fathom Analytics sites.
  • list-events: List events for a specific site.
  • get-aggregation: Generate aggregation analytics reports, with support for flexible filtering and grouping options.
  • get-current-visitors: Retrieve real-time data on current site visitors.

Usage

This server is published to npm as an npx script. If using Claude Desktop, the MCP server can be added through JSON configuration. More information about other MCP clients can be found in the Model Context Protocol example clients.

Internally, the server uses the @mackenly/fathom-api SDK to interact with Fathom Analytics API endpoints. The APIs involved include:

  • Account API:https://api.usefathom.com/v1/account
  • Sites API:https://api.usefathom.com/v1/sites
  • Events API:https://api.usefathom.com/v1/sites/SITE_ID/events
  • Aggregation API:https://api.usefathom.com/v1/aggregations
  • Current Visitors API:https://api.usefathom.com/v1/current_visitors

The aggregation tool is very flexible. Example use cases include:

  • Daily pageview statistics for the past 30 days
  • Performance of individual pages
  • Traffic from specific countries

Applicable Scenarios

Suitable for users who need to query Fathom Analytics data through an AI assistant, such as website owners, marketers, or data analysts who want to obtain account overviews, site lists, event data, aggregation reports, and real-time visitor information in a conversational way.

Limitations

  • This is an unofficial project and is not affiliated with, endorsed by, or supported by Fathom Analytics.
  • This project uses the unofficial SDK @mackenly/fathom-api.
  • Other specific feature limitations, pricing details, or platform compatibility are not currently provided.

License and Contributions

This project uses the MIT License, and Pull Requests for contributions are welcome.