The MCP Fathom Analytics server provides access to your Fathom Analytics data through an AI assistant. With it, you can:
- Retrieve account information using
get-account
- List all sites associated with your account via
list-sites
- View events for specific sites using
list-events
- Generate aggregated analytics reports with flexible filtering, grouping, and sorting options using
get-aggregation
- Monitor real-time visitor data with
get-current-visitors
, including content and referrer details
Allows access to Fathom Analytics data including account information, sites management, events tracking, aggregated analytics reports, and real-time visitor tracking
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.
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:
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:
- 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
Aggregation Examples
The aggregation tool is highly flexible. Here are some example use cases:
- Daily pageview statistics for the last 30 days:
- Performance of individual pages:
- Traffic from specific countries:
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.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An unofficial server that allows AI assistants to access Fathom Analytics data, enabling users to retrieve account information, site statistics, events, aggregated reports, and real-time visitor tracking.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityProvides comprehensive access to Roam Research's API functionality. This server enables AI assistants like Claude to interact with your Roam Research graph through a standardized interface.Last updated -181657TypeScriptMIT License
- -securityAlicense-qualityA server that enables AI assistants like Claude to safely run Python code and access websites, processing data for better AI understanding while providing helpful error messages.Last updated -3PythonGPL 3.0
- -securityFlicense-qualityA server that enables AI assistants to control a browser through tools, allowing them to perform web automation tasks like navigation, typing, clicking, and taking screenshots.Last updated -TypeScript
- -securityAlicense-qualityProvides seamless integration between AI assistants and Prometheus, enabling natural language interactions with your monitoring infrastructure. This server allows for effortless querying, discovery, and analysis of metrics.Last updated -8415TypeScriptMIT License