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

@402mcp/mcp

v1.1.1

Published

MCP server for HTTP 402 agent payments: decode L402, x402 and MPP challenges, choose a payment rail from requirements, and search an independent registry.

Readme

@402mcp/mcp

MCP server for HTTP 402 agent payments, from 402MCP.org — an independent registry of L402, x402 and MPP payment infrastructure.

When your agent receives an HTTP 402 Payment Required, it can ask this server what the response means and exactly how to pay and retry. When you are choosing how an agent should pay — or how your API should charge agents — it recommends a rail from your requirements rather than a ranking.

Install

Claude Desktop, Cursor, Windsurf and other stdio clients:

{
  "mcpServers": {
    "402mcp": { "command": "npx", "args": ["-y", "@402mcp/mcp"] }
  }
}

Claude Code:

claude mcp add 402mcp -- npx -y @402mcp/mcp

Prefer no local process? The same server is hosted at https://402mcp.org/api/v1/mcp (streamable HTTP).

Tools

| Tool | What it does | | --- | --- | | decode_402_challenge | Decodes a 402 response — L402 (macaroon + BOLT 11), x402 v1/v2, or MPP — into the exact steps and retry header. Flags expired challenges, macaroons that don't match their invoice, and every server-controlled field. | | recommend_payment_rail | Filters by role, asset, custody, infrastructure, network, scheme and maturity, then re-weights the published criteria toward what you need. Returns trade-offs and every exclusion with its reason. | | search_402_solutions | Searches the registry with filters. | | get_solution | One entry in full: scores and rationale, verified snippets, sources, last-verified date. | | get_scheme_reference | Wire format of L402, x402 or MPP. | | probe_402_support | One GET to a URL: does it speak 402, and which scheme? Never pays. | | get_best_payment_solution | The current rank-1 entry. |

Plus resources (402mcp://registry, 402mcp://solutions/{id}, 402mcp://schemes/{scheme}, 402mcp://methodology) and two prompts (choose_payment_rail, handle_402_response).

Privacy and safety

  • Decoding runs locally. Nothing you decode is sent anywhere.
  • At startup the server refreshes the registry from https://402mcp.org/api/v1/registry; if that fails it uses the snapshot bundled in the package. Set MCP_402_OFFLINE=1 to never fetch.
  • Probing makes one request from your machine to the URL you name. Loopback, private and link-local addresses are refused — including hostnames that resolve to them — unless you set MCP_402_ALLOW_PRIVATE_PROBES=1.
  • No tool can spend money. Everything in a 402 response is chosen by the server; the decoder marks those fields untrusted and never repeats their text as instructions.

Environment

| Variable | Effect | | --- | --- | | MCP_402_OFFLINE=1 | Use the bundled registry only | | MCP_402_REGISTRY_URL | Refresh from a mirror instead | | MCP_402_ALLOW_PRIVATE_PROBES=1 | Allow probing localhost and private networks |

Independence

402MCP.org is not affiliated with, sponsored by, or compensated by any vendor it indexes. Scores are the unweighted mean of six published criteria, and every entry lists its sources. Methodology: https://402mcp.org/docs#methodology

Registry data: CC BY 4.0. Code: MIT.