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

paidmcp-client

v0.2.0

Published

Local stdio proxy for paid MCP servers with x402 handling.

Readme

paidmcp-client

npm version license

paidmcp-client is an optional managed-wallet MCP proxy for x402-enabled MCP servers.

Use it when you want spend caps, confirmations, and guided onboarding. You can also connect natively to /mcp without this proxy.

Requirements

  • Node.js 20+
  • npm

Install

Use one of these options:

# run without installing globally
npx paidmcp-client --help

# or install globally
npm install -g paidmcp-client

After global install, use the paidmcp command directly:

paidmcp --help

Quick start

  1. Create a local payer wallet config:
npx paidmcp-client init

This creates ~/.paidmcp/config.json with:

  • your seed phrase
  • testnet defaults (Base Sepolia) plus spend guardrails
  1. Check wallet address and balances:
npx paidmcp-client wallet
  1. Fund the wallet (testnet first, then live if needed).

  2. Connect to your paid MCP endpoint:

npx paidmcp-client connect https://your-mcp-host.dev
  1. Add the printed snippet to your MCP client config (Cursor or Claude Desktop).

CLI commands

npx paidmcp-client init
npx paidmcp-client wallet
npx paidmcp-client wallet:import "<seed phrase>" --force --confirm OVERWRITE_PAIDMCP_CONFIG
npx paidmcp-client doctor <endpoint>
npx paidmcp-client connect <endpoint>
npx paidmcp-client run <endpoint>

Examples:

npx paidmcp-client connect http://localhost:4021
npx paidmcp-client run https://your-mcp-host.dev

Configure Cursor or Claude Desktop

Generate a config snippet for a paid MCP endpoint:

npx paidmcp-client connect https://your-mcp-host.dev

The command prints JSON like:

{
  "mcpServers": {
    "your-mcp-host-dev": {
      "command": "npx",
      "args": ["paidmcp-client", "run", "https://your-mcp-host.dev"]
    }
  }
}

Paste this into your MCP config file and restart your MCP client if needed.

Local development (from source)

Inside client/:

npm install
npm run build

Run commands from source:

npm run init
npm run wallet
npm run wallet:import -- "<seed phrase>" --force --confirm OVERWRITE_PAIDMCP_CONFIG
npm run doctor -- http://localhost:4021
npm run connect -- http://localhost:4021
npm run run -- http://localhost:4021

Troubleshooting

paidmcp: command not found

Use one of:

  • npx paidmcp-client <command>
  • npm install -g paidmcp-client then paidmcp <command>
  • from source: npm run <script>

Missing config error

If you see an error like Run "paidmcp init" first, create the local config:

npx paidmcp-client init

Overwrite protection

  • when ~/.paidmcp/config.json already exists, init / wallet:import will not overwrite by default
  • overwrite requires both --force and --confirm OVERWRITE_PAIDMCP_CONFIG
  • before overwrite, a timestamped backup is created in ~/.paidmcp/ as config.backup-*.json

No balance / payment failure

  • verify your wallet has funded USDC (Base) or USDT0 (Plasma)
  • verify endpoint URL and network availability
  • run npx paidmcp-client wallet to confirm balances are readable
  • run npx paidmcp-client doctor <endpoint> for a quick endpoint check

Spend limits or confirmation stopped a call

  • adjust maxPerCallUsdt, maxSessionUsdt, and confirmAboveUsdt in ~/.paidmcp/config.json
  • restart the MCP client after changing config

Security notes

  • ~/.paidmcp/config.json contains your seed phrase in plaintext.
  • Never commit or share this file.
  • Back up your seed phrase securely. Losing it means losing access to funds.

License

MIT. See LICENSE.