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

mcp-stripe-analytics

v1.0.1

Published

MCP server for Stripe analytics — revenue, customers, subscriptions, refunds, and churn metrics from Claude.

Readme

mcp-stripe-analytics

Connect Claude to your Stripe dashboard. Revenue, customers, subscriptions -- all from chat.

Install

Add to your .mcp.json:

{
  "mcpServers": {
    "stripe-analytics": {
      "command": "npx",
      "args": ["-y", "mcp-stripe-analytics"],
      "env": {
        "STRIPE_SECRET_KEY": "sk_live_..."
      }
    }
  }
}

Tools

get_revenue_summary

Get gross revenue, fees, net revenue, and transaction count for a period.

get_revenue_summary({ period: "month" })
// => { gross: 12450.00, fees: 361.05, net: 12088.95, count: 187 }

Params: period"today" | "week" | "month" | "year" (default: "month")

get_customer_count

Total customers and new customers added in a period.

get_customer_count({ period: "week" })
// => { total: 1243, new_in_period: 38 }

Params: period"today" | "week" | "month" | "year" (default: "month")

get_subscription_metrics

Breakdown of subscription statuses: active, trialing, past_due, canceled.

get_subscription_metrics()
// => { active: 412, trialing: 27, past_due: 8, canceled: 63 }

Params: None

get_top_customers

Top N customers ranked by lifetime spend.

get_top_customers({ limit: 5 })
// => [{ email: "[email protected]", name: "Whale Corp", total_spent: 8420.00 }, ...]

Params: limit — number (default: 10)

get_recent_charges

List recent charges with amount, status, and customer info.

get_recent_charges({ limit: 10, status: "failed" })
// => [{ id: "ch_...", amount: 49.00, status: "failed", customer_email: "..." }, ...]

Params: limit — number (default: 20), status"succeeded" | "failed" | "all" (default: "all")

get_refund_summary

Refund count and total amount for a period.

get_refund_summary({ period: "month" })
// => { count: 4, total: 196.00 }

Params: period"today" | "week" | "month" | "year" (default: "month")

get_product_revenue

Revenue breakdown grouped by product.

get_product_revenue({ period: "month" })
// => [{ product: "Pro Plan", revenue: 7800.00, count: 156 }, ...]

Params: period"today" | "week" | "month" | "year" (default: "month")

get_mrr

Monthly Recurring Revenue calculated from all active subscriptions.

get_mrr()
// => { mrr: 4120.50, active_subscriptions: 412 }

Params: None

Security

This server uses read-only Stripe API calls only. It never creates, updates, or deletes any Stripe resources. Your billing data is safe.

Use a restricted API key with read-only permissions for maximum security.

Built by

THRYXAGI -- AI-native tools for builders.