NestDaddy

x402 Trinity

io.github.devmster/x402-trinity ยท v0.2.4

Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.

Connect Runs on your machine

Terminal
claude mcp add x402-trinity -e X402_PRIVATE_KEY=<X402_PRIVATE_KEY> -e X402_MAX_PER_REQUEST=<X402_MAX_PER_REQUEST> -e X402_TOTAL_BUDGET=<X402_TOTAL_BUDGET> -e X402_BUDGET_FILE=<X402_BUDGET_FILE> -e X402_ALLOW_HOSTS=<X402_ALLOW_HOSTS> -e X402_NETWORKS=<X402_NETWORKS> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>",
        "X402_BUDGET_FILE": "<X402_BUDGET_FILE>",
        "X402_ALLOW_HOSTS": "<X402_ALLOW_HOSTS>",
        "X402_NETWORKS": "<X402_NETWORKS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>",
        "X402_BUDGET_FILE": "<X402_BUDGET_FILE>",
        "X402_ALLOW_HOSTS": "<X402_ALLOW_HOSTS>",
        "X402_NETWORKS": "<X402_NETWORKS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "x402-trinity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>",
        "X402_BUDGET_FILE": "<X402_BUDGET_FILE>",
        "X402_ALLOW_HOSTS": "<X402_ALLOW_HOSTS>",
        "X402_NETWORKS": "<X402_NETWORKS>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
X402_PRIVATE_KEY
Required, secret
Private key of the wallet that pays. Use a dedicated wallet holding only what you would accept losing. The server refuses to start without it.
X402_MAX_PER_REQUEST
Required
Hard ceiling for a single payment, in atomic units (USDC has 6 decimals, so 50000 is $0.05). Required: a model decides when payments happen, so the cap cannot come from the model.
X402_TOTAL_BUDGET
Required
Lifetime ceiling across all payments, in atomic units. Required for the same reason as the per-request cap.
X402_BUDGET_FILE
Optional
Path to a file that makes the lifetime budget survive restarts. Without it the total resets every time the server starts.
X402_ALLOW_HOSTS
Optional
Comma-separated hosts that may be paid. Anything else is refused however convincing the challenge looks.
X402_NETWORKS
Optional
Networks to accept. Defaults to base.

Details

Package[email protected] (NPM, stdio)
First published27 Sep 2026
Last updated27 Sep 2026
Registry nameio.github.devmster/x402-trinity

More finance and crypto servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.