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

x402-gateway-mcp

v0.2.0

Published

x402 analytics: the live x402 market feed for agents — a free x402_market_pulse tool with ecosystem listings by category, new services, and npm trends, refreshed 3x/day — plus 17 pay-per-call data tools (USDC on Base via x402, no API keys): crypto prices,

Readme

x402-gateway-mcp

The live x402 market feed for agents. The x402_market_pulse tool is FREE — no wallet, no payment, no signup: the x402 ecosystem in one snapshot, refreshed ~3x/day — service listings by category with week-over-week deltas, newly listed services, npm download trends for the core x402 packages, protocol release tags, and per-source reliability grades. Every metric carries a freshness stamp; a stale source says so instead of pretending.

Behind the feed: every x402-gateway data endpoint as an MCP tool that pays for calls with your wallet (USDC on Base, x402 protocol) — crypto prices, DEX pools, gas, FX, Treasury yields, US weather, WHOIS, DNS, email validation, web-to-markdown extraction, token risk scores, $1 domain dossiers, and more. Tool list is fetched from the gateway's /.well-known/x402.json at startup — new gateway endpoints appear automatically, and every response is cryptographically signed (verify).

⚠️ Funded-wallet warning: WALLET_PRIVATE_KEY signs real payments. Use a dedicated wallet holding only small balances (a few dollars of USDC). Never your main wallet. The key is read from env, never logged, and payment headers are never echoed into agent-visible output.

5-minute setup (Claude Desktop / Claude Code)

  1. Create a fresh wallet and fund it with a small amount of USDC on Base (or Base Sepolia test USDC from https://faucet.circle.com while testing).
  2. npm install -g x402-gateway-mcp (or use npx).
  3. Add to your MCP config (Claude Desktop claude_desktop_config.json, or claude mcp add for Claude Code):
{
  "mcpServers": {
    "x402-gateway": {
      "command": "npx",
      "args": ["-y", "x402-gateway-mcp"],
      "env": {
        "GATEWAY_URL": "https://<your-gateway-host>",
        "WALLET_PRIVATE_KEY": "0x<small-balance-wallet-key>",
        "MAX_PER_CALL_USD": "0.25",
        "MAX_SESSION_USD": "2.00"
      }
    }
  }
}
  1. Restart the client. The free x402_market_pulse tool works immediately (no wallet needed); every paid tool description states its price, e.g. [costs $0.005 USDC per call] Get the current USD price of a cryptocurrency…

Spend guardrails

  • MAX_PER_CALL_USD (default 0.25): tools priced above this are refused. Note: the gateway's premium /report/domain dossier costs $1.00 — set MAX_PER_CALL_USD=1.25 to enable it; the default deliberately keeps premium tools opt-in.
  • MAX_SESSION_USD (default 2.00): cumulative settled spend per server session; calls that would exceed it are refused with a clear message the agent can relay. Restart the server to reset.

Refusals happen before any payment is signed.

Env reference

| Var | Default | Purpose | |---|---|---| | GATEWAY_URL | https://gateway.stride20k.com | Gateway base URL (override for local/testnet) | | WALLET_PRIVATE_KEY | — | Buyer key (small balance!). Without it, tools list but calls fail with a clear error | | MAX_PER_CALL_USD | 0.25 | Per-call cap | | MAX_SESSION_USD | 2.00 | Per-session cap |