npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

datafast-mcp-server

v1.2.1

Published

MCP server for Datafast analytics API

Readme

Datafast MCP Server

An MCP (Model Context Protocol) server for the Datafast analytics API. This server allows AI assistants like Claude to query your website analytics data.

Installation

npm install
npm run build

Configuration

Add the server to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "datafast": {
      "command": "bunx",
      "args": ["datafast-mcp-server", "YOUR_DATAFAST_API_KEY"]
    }
  }
}

Replace YOUR_DATAFAST_API_KEY with your actual API key from Website Settings > API in your Datafast dashboard.

Available Tools

Analytics Tools

| Tool | Description | |------|-------------| | get_overview | Get aggregate analytics metrics (visitors, sessions, bounce rate, revenue, conversion rate) | | get_realtime | Get real-time visitor count (last 5 minutes) | | get_pages | Get analytics broken down by page path | | get_referrers | Get analytics by referrer source | | get_countries | Get analytics by country | | get_regions | Get analytics by region/state | | get_cities | Get analytics by city | | get_devices | Get analytics by device type (desktop, mobile, tablet) | | get_browsers | Get analytics by browser | | get_operating_systems | Get analytics by operating system | | get_goals | Get analytics by custom goals | | get_campaigns | Get analytics by UTM campaigns |

Common Parameters

Date Range Parameters

  • startAt: Start date in ISO 8601 format (e.g., 2024-01-01)
  • endAt: End date in ISO 8601 format (e.g., 2024-01-31)
  • timezone: Timezone for aggregation (e.g., America/New_York)

Pagination Parameters

  • limit: Maximum results (1-1000, default: 100)
  • offset: Number of results to skip

Filter Parameters

  • country: Filter by country name(s)
  • region: Filter by region(s)
  • city: Filter by city/cities
  • device: Filter by device type
  • browser: Filter by browser name
  • os: Filter by operating system
  • referrer: Filter by referrer URL
  • utm_source, utm_medium, utm_campaign: Filter by UTM parameters
  • page: Filter by page path
  • hostname: Filter by hostname

Example Usage

Once configured, you can ask Claude:

  • "Show me my website's overview analytics for last month"
  • "How many visitors do I have right now?"
  • "What are my top pages by visitors?"
  • "Which countries are my visitors from?"
  • "Show me traffic by device type"
  • "What referrers are driving the most revenue?"

API Documentation

For more details, see the Datafast API Documentation.

License

MIT