NPM PACKAGE

@scriptmasterlabs/mcp-x402 on npm

@scriptmasterlabs/mcp-x402 is the npm package published from the mcp-x402-xrpl repository. It is Apache-2.0 licensed, targets Node.js 18+, and is the only x402 middleware built specifically for XRPL/Xahau MCP servers.

Quick facts

  • Install: npm install @scriptmasterlabs/mcp-x402 xrpl express
  • License: Apache-2.0
  • Runtime: Node.js ≥ 18
  • Exports: createPaymentGate, createX402Middleware, wrapMcpServer, XrplFacilitator
  • Source: github.com/Timwal78/mcp-x402-xrpl

Frequently asked questions

What does npm install @scriptmasterlabs/mcp-x402 give me?

Server-side middleware (createPaymentGate) to gate any Express route behind x402, client-side middleware (createX402Middleware) so an agent can auto-pay gated routes, and a full wrapMcpServer helper for building an MCP-compatible server with per-tool pricing in one step.

Is there a hosted demo?

Yes — clone the repo and run node examples/pay-per-tool.js against XRPL testnet, no funds required.

What license is it released under?

Apache-2.0, the same license used across ScriptMasterLabs' open-source packages.

Related