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

payfriend-mcp

v1.0.0

Published

MCP server for Payfriend — invoice management, customer CRM, payments, and collection flows

Readme

payfriend-mcp

MCP server for Payfriend — manage invoices, customers, payments, and collection flows from Claude Code and other MCP clients.

Setup

1. Get your MCP token

Go to payfriend.io/settings → API Tokens, create a token with mcp:access ability, and copy the value shown — it's only displayed once.

2. Add to Claude Code

claude mcp add payfriend -s user -- npx -y payfriend-mcp --token=YOUR_TOKEN

That's it. The payfriend server is now available in every Claude Code session.

Verify it's connected:

claude mcp list
# payfriend: ✓ Connected

Available tools

Customers (5)

| Tool | Description | |---|---| | customers_list | List customers with pagination and status filter | | customers_get | Get a single customer with contacts and invoices | | customers_create | Create a new customer | | customers_update | Update an existing customer | | customers_search | Search by name, email, phone, or CVR |

Invoices (6)

| Tool | Description | |---|---| | invoices_list | List invoices with filters (status, customer, date range) | | invoices_get | Get invoice with customer, line items, and payments | | invoices_create | Create a new invoice | | invoices_update_status | Transition invoice status (state machine) | | invoices_mark_paid | Mark invoice as fully paid | | invoices_stats | Get invoice statistics (totals, counts by status) |

Payments (2)

| Tool | Description | |---|---| | payments_list | List payments, optionally filtered by invoice | | payments_register | Register a manual payment against an invoice |

Collection Flows (5)

| Tool | Description | |---|---| | flows_list | List all collection flows | | flows_get | Get flow with nodes, edges, and execution count | | flows_activate | Activate a flow to start processing | | flows_deactivate | Deactivate a flow to stop processing | | flows_executions | List recent flow executions |

Usage in Claude Code

Once connected, Claude can manage your collections naturally:

"Show me all overdue invoices"
"Create a customer: Acme ApS, CVR 12345678"
"Mark invoice 42 as paid"
"What are my invoice stats?"
"Activate collection flow 1"
"Search for customers matching 'hansen'"

Configuration

| Flag | Env var | Description | |---|---|---| | --token=VALUE | PAYFRIEND_TOKEN | Your MCP token (required) | | --api=URL | — | Override API base URL (default: https://payfriend.io/mcp/v1) |

Using an env var instead of a flag:

claude mcp add payfriend -s user \
  --env PAYFRIEND_TOKEN=YOUR_TOKEN \
  -- npx -y payfriend-mcp

Other MCP clients

Cursor / Windsurf — add to your MCP config file:

{
  "mcpServers": {
    "payfriend": {
      "command": "npx",
      "args": ["-y", "payfriend-mcp", "--token=YOUR_TOKEN"]
    }
  }
}

Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "payfriend": {
      "command": "npx",
      "args": ["-y", "payfriend-mcp", "--token=YOUR_TOKEN"]
    }
  }
}

Links