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

@arispay/payagent-mcp

v2.6.1

Published

MCP server for ArisPay-delegated x402 USDC payments. Use with Claude Desktop, Cursor, or any MCP client — no private keys in your process.

Downloads

755

Readme

@arispay/payagent-mcp

MCP server for ArisPay-delegated x402 USDC payments. Lets AI agents call paid APIs and settle HTTP 402 challenges with USDC on Base — no private keys ever live in this process.

Works with Claude Desktop, Cursor, Windsurf, or any MCP client. A thin wrapper around the payagent SDK.

Setup

  1. Provision an agent at payagent.arispay.app. You'll get:
    • A CDP-managed wallet address to fund with USDC on Base
    • An ARISPAY_AGENT_KEY (returned exactly once — store it securely)
  2. Fund the wallet with USDC on Base.
  3. Add the MCP server to your client config:

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "arispay": {
      "command": "npx",
      "args": ["-y", "@arispay/payagent-mcp"],
      "env": {
        "ARISPAY_AGENT_KEY": "ap_live_...",
        "PAYAGENT_WALLET": "0x..."
      }
    }
  }
}

Cursor

Edit .cursor/mcp.json in your project:

{
  "mcpServers": {
    "arispay": {
      "command": "npx",
      "args": ["-y", "@arispay/payagent-mcp"],
      "env": {
        "ARISPAY_AGENT_KEY": "ap_live_...",
        "PAYAGENT_WALLET": "0x..."
      }
    }
  }
}

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json with the same pattern.

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ARISPAY_AGENT_KEY | Yes | — | Agent-scoped API key from payagent.arispay.app | | ARISPAY_URL | No | https://api.arispay.app | ArisPay API base URL | | PAYAGENT_WALLET | No | — | Wallet address (for check_wallet tool output) |

Tools

pay_api

Make an HTTP request to a paid API. Automatically handles HTTP 402 payment challenges via ArisPay-delegated signing.

Parameters:

  • url (string, required) — The API endpoint URL
  • method (string, default: "GET") — HTTP method
  • headers (object, optional) — Additional HTTP headers
  • body (string, optional) — Request body

Spend caps (maxPerTx, maxDaily, maxMonthly, allowedDomains) are set on the agent at provisioning time and enforced server-side by ArisPay. There is no client-side budget parameter — attempts that exceed the delegation return a PaymentRejectedError.

Example prompt: "Use pay_api to fetch https://api.example.com/premium-data"

check_wallet

Report the configured agent, and — if PAYAGENT_WALLET is set — the on-chain USDC balance on Base.

Parameters: None

Example prompt: "Check my agent wallet"

Full delegation limits and spend history live at payagent.arispay.app.

How It Works

  1. Agent calls pay_api with a URL.
  2. If the server returns HTTP 402, payagent asks ArisPay to sign via CDP.
  3. ArisPay validates the request against the agent's delegation limits and signs.
  4. payagent retries with the signed X-PAYMENT header; the seller's facilitator settles on-chain.

No private key lives in this process. The signing key is held by Coinbase CDP; ArisPay enforces limits before signing. If a payment breaches the delegation, it's rejected before any on-chain action.

Install

npm install @arispay/payagent-mcp

Or invoke directly via npx @arispay/payagent-mcp from an MCP client config — no pre-install required.

Related

License

MIT