mcpbeat Sign in

x402 Trinity MCP Server

local only

x402 Trinity runs on your own machine — the client starts it, so there is no endpoint to ping. 263 installs a week from npm. Last commit 27 Sep 2026.

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

Installs per day peak 327 · avg 61 · -46% w/w
a month agotoday
263
Installs / week
npm · x402-trinity
3
Stars
0 open issues
27 Sep 2026
Last commit
15 releases in 90 days
BUSL-1.1
License
TypeScript

What the code does

We read the source, 6 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command tools/build.mjs:47
execFileSync(process.execPath, [fileURLToPath(new URL('node_modules/typescript/lib/tsc.js', ROOT)), '-p', 'tsconfig.json'],
  const shards = Object.keys(process.env)

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your 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>' -- npx -y x402-trinity
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "x402-trinity"
      ],
      "env": {
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.x402-trinity]
command = "npx"
args = ["-y", "x402-trinity"]
env = { X402_PRIVATE_KEY = "<X402_PRIVATE_KEY>", X402_MAX_PER_REQUEST = "<X402_MAX_PER_REQUEST>", X402_TOTAL_BUDGET = "<X402_TOTAL_BUDGET>" }
.cursor/mcp.json
{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "x402-trinity"
      ],
      "env": {
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "x402-trinity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-trinity"
      ],
      "env": {
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>"
      }
    }
  }
}

Put your own values in place of <X402_PRIVATE_KEY> (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> (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> (Lifetime ceiling across all payments, in atomic units. Required for the same reason as the per-request cap). The author’s registry entry marks them as required.

Optional settings from the registry entry, left out of the block above: X402_BUDGET_FILE (Path to a file that makes the lifetime budget survive restarts. Without it the total resets every time the server starts), X402_ALLOW_HOSTS (Comma-separated hosts that may be paid. Anything else is refused however convincing the challenge looks), X402_NETWORKS (Networks to accept. Defaults to base).

Alternatives to x402 Trinity

same job, measured the same way
XDC AI
by 0xbeny

Wallet and payments for AI agents: auto-pay x402 APIs in USDC on XDC, within on-chain limits.

answering
SpendTheBits Gift Cards
by jkambo1986-collab

Let an AI agent buy gift cards with USDC over x402, within limits the wallet owner sets.

80 installs/wk answering
Voidly Agent Wallet
by voidly-ai

Local Base USDC wallet for agents with capped x402 payments and Marketplace recovery.

163 installs/wk local only
Minia2a MCP
by minia2a

minia2a.uk — x402 pay-per-call APIs for AI agents, USDC on Base, 5 free trials per wallet.

577 installs/wk local only
presign-guard wallet
by fizzl13

Agent wallet with limits: pays x402/MPP on Base, Solana, Tempo, XRPL and Algorand; phone approval.

1 348 installs/wk answering
Obolus
by inviti8

Disposable Algorand wallet for AI agents. Pay x402 resources in USDC, no human provisioning.

70 installs/wk local only
three.ws Agent Wallet
by nirholas

Give your AI agent an x402 wallet: discover and pay for services in USDC, or earn from your own.

answering
K
Keyban Agent Wallet
by keyban-mcp

Give an AI agent its own blockchain wallet: balances, USDC transfers, x402 payments under policy.

586 installs/wk local only

x402 Trinity — questions

Answers built from our own checks of this server.

Why is there no uptime for x402 Trinity?
x402 Trinity runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package x402-trinity was installed 263 times last week.
How do I connect x402 Trinity?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls x402-trinity straight from npm; nothing to host, nothing to sign up for.
How many people use x402 Trinity?
The npm package x402-trinity was installed 263 times in the last week. Week over week that is -46%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is x402 Trinity open source?
No, and the distinction matters: its licence is declared as BUSL-1.1. That makes it source-available — you can read the code, but the terms are the author's own, not one of the recognised open-source licences. Read them before you build on it.