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

billforward-mcp

v1.0.6

Published

A Model Context Protocol (MCP) server for integrating Billforward's billing API with LLMs.

Readme

Billforward MCP Server 🚀

npm version npm downloads

A high-performance Model Context Protocol (MCP) server for integrating Billforward's robust billing and subscription management API with LLMs.

🛠 Features

  • Entity Discovery: Quickly list and inspect Accounts and Subscriptions.
  • Protocol Purity: Zero log leakage to stdout, ensuring 100% reliable JSON-RPC communication.
  • Security First: Built-in BILLFORWARD_READ_ONLY=true (default) mode to protect your data with instructional LLM error rejections.
  • Modern SDK: Uses the latest @modelcontextprotocol/sdk signatures (registerTool).
  • Fully Testable: Includes protocol compliance and unit tests via Vitest.

🔑 How to Get Your API Token

You need an API token to allow the MCP server to communicate with Billforward.

  1. Log in to your Billforward environment.
  2. Navigate to Setup > Personal > API Keys.
  3. Create a new token and copy it.

Quick Links:


⚙️ Configuration

To run this server with npx (local or published):

{
  "mcpServers": {
    "billforward": {
      "command": "npx",
      "args": [
        "-y",
        "billforward-mcp"
      ],
      "env": {
        "BILLFORWARD_ACCESS_TOKEN": "your_private_access_token",
        "BILLFORWARD_ENVIRONMENT": "sandbox",
        "BILLFORWARD_READ_ONLY": "true"
      }
    }
  }
}

Advanced Environment Variables

The server behaves differently depending on these configurations:

| Variable | Default Value | Description | |----------|---------------|-------------| | BILLFORWARD_ENVIRONMENT | sandbox | Sets the target API. Change to production when ready. | | BILLFORWARD_READ_ONLY | true | When true, POST/PUT actions return instructional error messages to the LLM preventing data mutation. | | BILLFORWARD_PRODUCTION_URL | https://app.billforward.net/v1/ | Base URL used when environment is production. | | BILLFORWARD_SANDBOX_URL | https://app-sandbox.billforward.net/v1/ | Base URL used when environment is sandbox. | | BILLFORWARD_DEFAULT_RESULTS| 10 | The default number of results parsed per paginated tool response. | | BILLFORWARD_MAX_RESULTS | 200 | The hard limit cap on how many records the LLM can ask for per tool call. | | BILLFORWARD_TIMEOUT | 15000 | Fallback timeout in milliseconds before failing a stuck Axios request. |

🧰 Available Tools

� Search & Insights

  • search: Parallelized unified search across Accounts, Subscriptions, and Invoices using email, ID, or keyword.
  • get-customer-summary: 360-degree dashboard of a customer (profile, subs, recent invoices, dunning status).
  • get-metadata-schema: Analyzes metadata keys in use across your environment to help filter queries.

�📖 Guidance

  • help: Get an overview of available entities and usage patterns.
  • get-me: Validate your connection and view profile metadata.

👥 Accounts

  • list-accounts: Fetch a paginated list of accounts (limit, offset, metadata, created_after).
  • get-account: Retrieve full details for a specific UUID.
  • get-account-by-email: Find an account quickly by its exact email address.

📝 Subscriptions

  • list-subscriptions: Fetch a paginated list of subscriptions (limit, offset, created_after).
  • get-subscription: Retrieve full details for a specific UUID.

🧾 Invoices & Payments

  • list-invoices / get-invoice: Fetch invoices and draft details.
  • list-payments / list-receipts: Fetch payments and their corresponding receipts.

💳 Pricing & Catalog

  • list-products: List the main product lines.
  • list-product-rate-plans: List specific rate plans (the entities that accounts subscribe to).

🛡 Security

Enable Read-Only Mode by ensuring the environment variable BILLFORWARD_READ_ONLY=true is set (it is true by default for safety). If the LLM attempts to use tools like create-account or update-subscription while Read-Only is active, the operation will be blocked, and the LLM will receive a descriptive error instructing it to inform you that modifications are disabled.

🧪 Development

Build

pnpm run build

Test

pnpm test

Includes a special protocol.test.ts to ensure no third-party package ever leaks logs to the MCP stream again.