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

@gatewards/mcp-server

v0.2.0-beta.2

Published

MCP server for Gatewards — give any agent governed, non-custodial access to paid APIs (per-agent spend caps, cross-agent dedup, x402 settlement).

Downloads

514

Readme

@gatewards/mcp-server

An MCP server that lets any agent (Claude Desktop, Cursor, VS Code, or your own MCP client) discover and call paid APIs through Gatewards — with per-agent spend caps, cross-agent dedup, and non-custodial x402 settlement.

The agent keeps its own API key and wallet. Gatewards enforces the spend limit in the request path: a call over budget is refused before it fires, not logged after.

Install

npx @gatewards/mcp-server --api-key=gw_agent_xxx --gateway=https://api.gatewards.com

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "gatewards": {
      "command": "npx",
      "args": [
        "@gatewards/mcp-server",
        "--api-key=gw_agent_xxx",
        "--gateway=https://api.gatewards.com"
      ]
    }
  }
}

Get an agent key from your Gatewards dashboard.

Two modes

| Mode | How | What you get | | ----------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Proxy (default) | --api-key=gw_agent_xxx | Routes calls through the gateway. Per-agent budget enforcement, response caching, and cross-agent dedup. No wallet, no on-chain payment. | | x402 (self-custody) | --private-key=0x... --rpc-url=... --usdc-address=... | The agent signs USDC payments itself. When an API returns 402, payment is settled on-chain and the request retries with a receipt. Keys never leave your machine. |

Pick proxy mode for governance and caching. Add x402 only when you actually need to pay per call on-chain.

Tools

| Tool | What it does | | ----------------------------- | ------------------------------------------------------------------------------- | | gatewards_discover_services | List paid API services on the marketplace (name, endpoint, price). | | gatewards_call_api | Make a GET/POST call. Returns status, data, and cost if a payment was made. | | gatewards_check_budget | Current daily spend, remaining budget, and active subscriptions. | | gatewards_get_plans | List prepaid credit plans for a service. | | gatewards_subscribe | Buy a credit bundle for a service (proxy mode only). |

Configuration

Flags or environment variables (flags win):

| Flag | Env | Default | Notes | | ---------------- | ------------------------ | ----------------------- | ----------------------------------------------------- | | --gateway | GATEWARDS_GATEWAY_URL | http://localhost:3001 | Gateway base URL. | | --api-key | GATEWARDS_API_KEY | — | Agent key. Enables proxy mode. | | --private-key | GATEWARDS_PRIVATE_KEY | — | 0x-prefixed key for x402 mode. Never sent anywhere. | | --rpc-url | GATEWARDS_RPC_URL | — | Required for x402 mode. | | --usdc-address | GATEWARDS_USDC_ADDRESS | — | Required for x402 mode. | | --network | GATEWARDS_NETWORK | base-sepolia | e.g. base, base-sepolia. | | --merchant | GATEWARDS_MERCHANT_URL | — | Restrict absolute URLs to this origin. |

Either --api-key or --private-key is required.

License

Apache-2.0