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

x402node-mcp

v1.0.1

Published

MCP server exposing the cn402.com + x402node.dev x402 paid-API catalog (Chinese almanac/fortune + developer & data tools) to AI agents, with automatic USDC-on-Base payment.

Downloads

721

Readme

x402node-mcp

An MCP server that drops the entire cn402.com + x402node.dev paid-API catalog into any MCP client (Claude Desktop, Cursor, etc.) as two tools. Your agent discovers and calls 300+ endpoints across 47 categories; payment is handled automatically over x402 (USDC on Base) — no API keys, no accounts, no manual checkout.

  • x402_list_endpoints — browse the live catalog (path, price, category, description), with optional category / query filters.
  • x402_call — call any endpoint by path; auto-pays in USDC on Base, capped at MAX_USDC per call.

The catalog is loaded live from the providers' manifests at startup, so new endpoints appear automatically without updating this package.

What's in the catalog

x402node.dev — developer & data tools for AI agents:

  • On-chain data: token info, balances, holders, contract verification, address type (EOA / contract / Safe multisig / proxy), ENS, transaction decoding
  • Crypto markets: live prices (multi-source cross-validated), batch prices, momentum, funding rates, gas comparison across chains, swap quotes & price impact (Uniswap V3)
  • DeFi: lending markets, yield finder, DEX pools
  • Risk & safety: token safety / honeypot checks, wallet profiles, OFAC screening, sanctions checks
  • x402 ecosystem intelligence: real-time network health, wash-trading detection, seller revenue verification, pricing benchmarks — proprietary data
  • Utilities: hashing, encoding, JWT, regex, cron, UUID, text tools

cn402.com — Chinese culture APIs: almanac (黄历), BaZi (八字), I-Ching, TCM, feng shui, and more.

Install

npm install -g x402node-mcp

Configure (Claude Desktop example)

Add to your MCP client config:

{
  "mcpServers": {
    "x402node": {
      "command": "npx",
      "args": ["x402node-mcp"],
      "env": {
        "PRIVATE_KEY": "0xYOUR_BASE_WALLET_PRIVATE_KEY",
        "MAX_USDC": "1.00"
      }
    }
  }
}
  • PRIVATE_KEY (required): a Base wallet private key (0x + 64 hex) holding USDC. Each call pays the listed price from this wallet.
  • MAX_USDC (optional, default 1.00): hard per-call spend cap. A call costing more than this is rejected.
  • MANIFESTS (optional): comma-separated manifest URLs. Defaults to cn402.com + x402node.dev.

Usage

Once connected, just ask your agent naturally:

  • "List the available on-chain data endpoints" → calls x402_list_endpoints
  • "Get the live gas price across chains" → finds /chain/gas-compare, pays, returns result
  • "Check if token 0x… is safe to buy" → finds the safety endpoint, pays, returns the risk score

The agent picks the endpoint, pays in USDC automatically, and returns the data.

How payment works

Endpoints return HTTP 402 with payment terms. This server signs an EIP-3009 USDC authorization on Base, the facilitator settles it, and the endpoint returns data — all in ~1-2 seconds, capped at MAX_USDC.

Links

  • Catalog: https://api.x402node.dev · https://api.cn402.com
  • Built on the x402 protocol

License

MIT