MCPNav
X

X402 Middleware

MCP server · by gadgethumans

One-line x402 + Stripe payment middleware for MCP servers. The Stripe for the agent economy.

Install

Run one of the commands below, then add the client config underneath.

npm
npx -y @gadgethumans/x402

Client configuration

Paste into Claude Desktop, Cursor (mcp.json), VS Code or any MCP client, then restart the client.

mcpServers
{
  "mcpServers": {
    "x402-middleware": {
      "command": "npx",
      "args": [
        "-y",
        "@gadgethumans/x402"
      ]
    }
  }
}

About this server

X402 Middleware is listed in the Finance & Payments category of the MCPNav directory. It is distributed as npm and can be loaded by any client that speaks the Model Context Protocol.

Typical uses include giving your assistant scoped access to the corresponding service so it can answer questions and take actions with real data instead of guessing. Always review what a server can access before you enable it — see our MCP security guide.

Frequently asked questions

What is the X402 Middleware MCP server?

X402 Middleware is an MCP server by gadgethumans. One-line x402 + Stripe payment middleware for MCP servers. The Stripe for the agent economy.

How do I install X402 Middleware?

Install it with: npx -y @gadgethumans/x402. Then add the JSON config to your client's MCP settings and restart the client.

Is X402 Middleware free to use?

The MCP server itself is free to install. The source is public on https://github.com/scotia1973-bot/gadgethumans-x402. Any third-party API it calls (such as a search or maps API) may require its own key and billing.

Which clients support X402 Middleware?

Any MCP-compatible client can use it, including Claude Desktop, Cursor, VS Code, Windsurf and custom agents.