🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@scriptmasterlabs/mcp-x402-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scriptmasterlabs/mcp-x402-sdk

1-line drop-in that makes any MCP server chargeable via x402 USDC/RLUSD. No AgentCards. No registry. Their server, their tools, paid.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

mcp-x402-sdk — Make any MCP server chargeable in 5 lines

The hinge, not the cathedral.
Drop this into your MCP server. Agents pay USDC/RLUSD via x402.
No AgentCards. No credit bureau. No registry join. No worldview required.

npm i @scriptmasterlabs/mcp-x402-sdk

Drop-in

import { x402Payment } from '@scriptmasterlabs/mcp-x402-sdk';
import { z } from 'zod';

server.tool(
  'my_paid_tool',
  { city: z.string() },
  x402Payment({
    price: '0.01',
    currency: 'USDC',
    inputSchema: z.object({ city: z.string() }),
    handler: async (input, receipt) => ({
      content: [{
        type: 'text',
        text: JSON.stringify({ weather: 'sunny', paid: receipt }),
      }],
    }),
  }),
);

That is the whole product for most builders.

You keepWe handle
Your tools + MCP serverPayment attempt + receipt shape
Your pricingUSDC / RLUSD, Base default
Your UXNo mandatory identity format

What this is NOT

  • Not “install our 43-tool mall”
  • Not AgentCard / Ed25519 onboarding
  • Not a credit-bureau membership
  • Not SqueezeOS / Leviathan adoption

Those exist elsewhere. This package is only the charge wrapper.

Env (optional)

VarDefaultPurpose
PROOF402_URLhttps://four02proof.onrender.comPayment facilitator

Full server (optional later)

If you want a ready-made tool catalog too:

npx @scriptmasterlabs/mcp-x402
# remote: https://mcp-x402.onrender.com/mcp

Still start here: charge your own tools first.

License

MIT

Keywords

mcp

FAQs

Package last updated on 24 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts