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

@genesis-tech/peerpay-mcp

v0.1.0

Published

MCP stdio server exposing PeerPay payment tools for AI agents.

Readme

@genesis-tech/peerpay-mcp

MCP (Model Context Protocol) stdio server that lets AI agents pay for x402-gated HTTP resources through PeerPay — with spending policies and human approvals enforced server-side.

Ships the peerpay-mcp binary and exposes four tools:

| Tool | Description | | --- | --- | | peerpay_discover | Search the PeerPay discovery directory for x402-payable services; pay a result's resourceUrl with peerpay_pay. | | peerpay_pay | Pay for an HTTP 402 (x402) gated URL with the agent wallet (USDC on Base) and return the paid response. | | peerpay_payment_status | Check a payment's status (pending_approval, approved, settled, ...). | | peerpay_account | Wallet address, USDC balance, spending policy, and spend totals. |

Payments above the account's caps pause as pending_approval. The tool result then carries an approvalUrl; the model is instructed to surface that URL to the user (who approves on the PeerPay dashboard) rather than retrying the payment.

Configuration

Two environment variables:

  • PEERPAY_AGENT_KEY — agent API key (pp_ag_...), created on the PeerPay dashboard under your agent account's Keys tab.
  • PEERPAY_BASE_URL — base URL of the PeerPay deployment, e.g. https://peerpay.example.

Claude Code

claude mcp add peerpay \
  --env PEERPAY_AGENT_KEY=pp_ag_your_key \
  --env PEERPAY_BASE_URL=https://your-peerpay-instance.example \
  -- npx -y @genesis-tech/peerpay-mcp

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "peerpay": {
      "command": "npx",
      "args": ["-y", "@genesis-tech/peerpay-mcp"],
      "env": {
        "PEERPAY_AGENT_KEY": "pp_ag_your_key",
        "PEERPAY_BASE_URL": "https://your-peerpay-instance.example"
      }
    }
  }
}

Usage example (skill-style prompt)

Once connected, prompts like these drive the tools:

Check my PeerPay balance, then buy the report at
https://api.example.com/reports/q2 if it costs at most 0.50 USDC.

The model will call peerpay_account, then peerpay_pay with maxAmountUsdc: "0.50". If the account's policy requires approval, the tool returns the approval URL and the model asks you to approve it on the PeerPay dashboard, then polls peerpay_payment_status.

Running directly

PEERPAY_AGENT_KEY=pp_ag_your_key \
PEERPAY_BASE_URL=https://your-peerpay-instance.example \
npx -y @genesis-tech/peerpay-mcp

The server speaks MCP over stdio; diagnostics go to stderr.

Programmatic use

import { PeerPayAgent } from "@genesis-tech/peerpay-agent";
import { createPeerPayMcpServer } from "@genesis-tech/peerpay-mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

const server = createPeerPayMcpServer({
  agent: new PeerPayAgent({ apiKey: "pp_ag_...", baseUrl: "https://peerpay.example" }),
});
await server.connect(new StdioServerTransport());