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

cashpilot-mcp-server

v0.1.0

Published

MCP server for freelancer finance management powered by Stripe

Readme

CashPilot MCP Server

A Model Context Protocol (MCP) server that gives AI assistants access to freelancer finance tools powered by Stripe.

Tools

| Tool | Description | |------|-------------| | get_revenue_summary | Total revenue for a date range (auto-paginates) | | get_profit_summary | Net profit after Stripe fees and refunds | | list_invoices | List invoices with filtering by status | | create_invoice | Create a draft invoice for a customer | | send_invoice | Finalize and send a draft invoice | | list_overdue_invoices | Open invoices past their due date | | list_clients | List Stripe customers | | get_client_revenue | Revenue breakdown per client (auto-paginates) | | get_balance | Current Stripe balance (available + pending) | | cash_flow_forecast | Project 30/60/90-day cash position from invoices + subscriptions | | list_expenses | List payouts and refunds (money going out) | | create_expense | Record an expense via Stripe product metadata |

Setup

npm install
cp .env.example .env
# Add your Stripe secret key to .env

Usage

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "cashpilot": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/path/to/cashpilot",
      "env": {
        "STRIPE_SECRET_KEY": "sk_..."
      }
    }
  }
}

Development

npm run dev      # Run with tsx (hot reload)
npm run build    # Compile TypeScript
npm test         # Run tests (41 test cases)
npm run lint     # Type-check without emitting

Project Structure

src/
  index.ts              # MCP server entry point (stdio transport)
  tools/
    revenue.ts          # get_revenue_summary
    reporting.ts        # get_profit_summary, cash_flow_forecast
    invoices.ts         # list_invoices, create_invoice, send_invoice, list_overdue_invoices
    clients.ts          # list_clients, get_client_revenue
    balance.ts          # get_balance
    expenses.ts         # list_expenses, create_expense
  utils/
    stripe.ts           # Lazy Stripe client singleton
    format.ts           # Currency, date, and status formatting
tests/
  format.test.ts        # Formatting utility tests
  stripe.test.ts        # Stripe client tests
  tools/
    revenue.test.ts     # Revenue tool tests
    reporting.test.ts   # Profit summary tests
    forecast.test.ts    # Cash flow forecast tests
    invoices.test.ts    # Invoice tool tests (all 4 tools)
    clients.test.ts     # Client tool tests
    balance.test.ts     # Balance tool tests
    expenses.test.ts    # Expense tool tests
.github/
  workflows/
    ci.yml              # GitHub Actions CI (Node 20/22)