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

@fsantag/x402-mcp

v0.1.1

Published

MCP server que expone los servicios x402 de agentsats (agentic-report, web-extract) como tools, con pago x402 automático (USDC en Base). Sin registro ni API key: el agente paga por llamada.

Readme

@fsantag/x402-mcp — servicios x402 de agentsats como tools MCP

Servidor MCP (Model Context Protocol) que expone los servicios x402 publicados en xl402.agentsats.org como tools para cualquier cliente MCP (Claude Desktop, IDEs, agentes). Cuando el agente invoca una tool, este server paga con x402 (USDC en Base) y devuelve el resultado. Es la pieza de distribución/demanda (P2): hace los servicios descubribles e invocables desde el tooling de agentes, sin que el dev tenga que implementar el flujo x402.

Tools

| Tool | Servicio | Precio | Entrada | |---|---|---|---| | agentic_report | /v1/agentic-report | $0.50 USDC (Base) | topic, audience (technical|executive|general), format, max_words, language | | web_extract | /v1/web-extract | $0.02 USDC (Base) | url*, format (markdown|html), only_main_content, timeout_ms |

Requisitos

  • Node ≥ 20.
  • Una wallet con USDC en Base (paga las llamadas). Se pasa por X402_PRIVATE_KEY.

    ⚠️ Usa una wallet dedicada de bajo saldo (es una clave en claro en la config). El gasto es real: cada invocación liquida el precio de la tool on-chain.

Uso

Publicado en npm — no necesitas clonar el repo ni instalar nada:

npx -y @fsantag/x402-mcp

(Para desarrollo desde el código fuente: npm install en mcp/ y luego node server.mjs.)

Configuración (variables de entorno)

| Var | Req. | Def. | Qué es | |---|---|---|---| | X402_PRIVATE_KEY | sí | — | Clave (0x…) de la wallet que paga (USDC en Base) | | X402_SERVER | no | https://xl402.agentsats.org | Base del gateway | | X402_RPC_URL | no | https://mainnet.base.org | RPC de Base |

Claude Desktop

En claude_desktop_config.json (Ajustes → Developer → Edit Config):

{
  "mcpServers": {
    "x402-agentsats": {
      "command": "npx",
      "args": ["-y", "@fsantag/x402-mcp"],
      "env": {
        "X402_PRIVATE_KEY": "0xTU_CLAVE_DE_WALLET_DEDICADA"
      }
    }
  }
}

Reinicia Claude Desktop; las tools agentic_report y web_extract aparecerán disponibles.

Prueba rápida (sin Claude)

# lista de tools (handshake MCP, no gasta):
npx -y @modelcontextprotocol/inspector npx -y @fsantag/x402-mcp

Notas

  • Añadir un servicio = añadir una entrada a TOOLS en server.mjs (mismo input_schema que el descriptor del servicio). Futuro: autodescubrir desde el Bazaar por payTo.
  • El server es stateless: no guarda claves ni resultados; la clave vive solo en tu config.
  • Código fuente: mcp/server.mjs. Patrón de pago reutilizado de scripts/canary-*.mjs.