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

apphud-mcp

v0.2.5

Published

MCP server for Apphud dashboard analytics

Readme

apphud-mcp

MCP server for Apphud dashboard analytics endpoints (apps, events, metrics, cohorts).

Quick Start

  1. Add MCP server:
{
  "mcpServers": {
    "apphud-mcp": {
      "command": "npx",
      "args": ["-y", "[email protected]", "start"],
      "env": {
        "login": "[email protected]",
        "password": "your_apphud_password"
      }
    }
  }
}
  1. Restart MCP server.
  2. Check dashboard access:
    • apphud_apps_list
    • apphud_analytics_events_list (requires from/to)
    • apphud_analytics_metric_timeseries (requires metric_key, from, to)

HTTP Tool Calls

If HTTP_ENABLED=true, you can call tools over HTTP (stable payload path for web clients):

curl -sS -X POST http://localhost:8080/tools/call \
  -H 'content-type: application/json' \
  -d '{
    "name":"apphud_analytics_metric_timeseries",
    "arguments":{
      "app_id":"your_app_id",
      "metric_key":"revenue_gross",
      "from":"2026-02-01T00:00:00.000Z",
      "to":"2026-02-21T23:59:59.000Z"
    }
  }'

The endpoint also accepts toolName and stringified arguments JSON for compatibility with buggy wrappers.

ETL Setup

  1. In Apphud:
    • Open Integrations -> GCS ETL -> Add connection.
    • Enter project/service account/bucket and enable export for apps.
  2. In Google Cloud Console:
    • Create/select a bucket in Cloud Storage.
    • Create a Service Account in IAM.
    • Create JSON key for that service account.
    • Grant access to the bucket (read for MCP side, write for Apphud side as needed by your policy).
  3. MCP env vars:
    • ETL_SOURCE=gcs
    • ETL_GCS_BUCKET=<bucket-name>
    • ETL_GCS_PREFIX=<optional-prefix>
    • GOOGLE_APPLICATION_CREDENTIALS=<path-to-service-account-json>
  4. Ensure gsutil is installed and authenticated in runtime environment.
  1. In Apphud:
    • Open Integrations -> S3 ETL -> Add connection.
    • Fill bucket/credentials/region and enable export for apps.
  2. In AWS Console:
    • Create/select bucket in S3.
    • Create IAM user/role with bucket access.
    • Generate access key (if using user credentials).
  3. MCP env vars:
    • ETL_SOURCE=s3
    • ETL_S3_BUCKET=<bucket-name>
    • ETL_S3_PREFIX=<optional-prefix>
    • AWS_ACCESS_KEY_ID=<key-id>
    • AWS_SECRET_ACCESS_KEY=<secret>
    • AWS_REGION=<region>
  4. Ensure AWS CLI (aws) is installed and usable in runtime environment.

Defaults

  • SQLite DB: .apphud-mcp/apphud.db
  • Incoming ETL files: .apphud-etl/incoming
  • Poll interval: 60 minutes
  • ETL enabled: true
  • ETL source default: none (set ETL_SOURCE=gcs or ETL_SOURCE=s3)

Useful Tools

  • apphud_apps_list
  • apphud_analytics_events_list
  • apphud_analytics_metrics_list
  • apphud_analytics_metric_value
  • apphud_analytics_metric_timeseries
  • apphud_analytics_metric_breakdown
  • apphud_analytics_revenue_summary
  • apphud_analytics_subscriptions_summary
  • apphud_analytics_conversion_trial_to_paid
  • apphud_analytics_cohorts_retention
  • apphud_analytics_cohorts_ltv
  • apphud_analytics_query_raw

Development

npm install
npm run ci