MCP.Market

x402 Trinity MCP server

by devmster·io.github.devmster/x402-trinity·v0.2.4·3 stars

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

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

3 stars403 downloads/wk

Reviews

Write one

Nobody has reviewed x402 Trinity yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

x402 Trinity tools (3, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • check_price

    Look at what a paid resource costs WITHOUT paying for it. Fetches the URL, and if

  • pay_and_fetchwrite action

    Fetch a resource, paying automatically if it answers 402 Payment Required. THIS

  • wallet_status

    Report the paying wallet: its address, its on-chain USDC balance, how much has been

Public scan report

scanner v0.1.10 · 2026-10-02 · same rubric, same numbers if you re-run it

no findings
  • Code scan19 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 5 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How x402 Trinity compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
83/100
higher than 68% of 4,460 AI and agents servers
Tools
3
the typical AI and agents server has 6
Tools that change things
33%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
3
more than 75% of 2,711 AI and agents servers
Downloads a week
403
more than 84% of 1,538 AI and agents servers with a package

What its tools let an agent do: 2 read · 1 change

Release history: 4 versions in the registry since 2026-09-10, latest 2026-09-27, typically one every 5 days.

Install x402 Trinity in Claude Code, Cursor or VS Code

Runs npx -y x402-trinity on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add x402-trinity -- npx -y x402-trinity
Add to Cursor

What the publisher says

From the x402 Trinity repository's README, as published. We do not edit it. Read it on GitHub

x402-trinity

A drop-in fetch replacement that lets an AI agent pay for things by itself — with hard spending limits, no hosted wallet service, and no changes to the agent's own code.

Zero runtime dependencies. 7 KB gzipped. Buyer and seller in TypeScript; buyer in Python.

npm install x402-trinity

Why

When an agent hits a paid resource it gets 402 Payment Required. Without something to handle that, the request simply fails.

x402-trinity handles it: reads the challenge, checks it against limits you set, signs, retries. All of it locally — no hosted wallet service, no third-party API, and the key never leaves your process.

Gas exists but the payer doesn't pay it — under EIP-3009 the facilitator submits the transfer, so an agent's wallet only ever needs USDC.

Buy (agent pays for things)

import { createX402Fetch } from 'x402-trinity';

const x402Fetch = createX402Fetch({
  privateKey: process.env.X402_PRIVATE_KEY,   // never hardcode
  policy: {
    maxAmountPerRequest: '5000',              // 0.005 USDC max per call  (REQUIRED)
    totalBudget: '1000000',                   // 1.00 USDC lifetime       (REQUIRED)
    allowHosts: ['api.example.com'],
    allowPayTo: ['0x...'],
  },
});

const r = await x402Fetch('https://api.example.com/data');   // 402 handled, returns 200

Or patch the global so unmodified code pays automatically:

import { installX402 } from 'x402-trinity';
const uninstall = installX402(cfg);   // globalThis.fetch now pays 402s

Confirm which wallet will pay before funding anything:

X402_PRIVATE_KEY=0x... npx x402-trinity-whoami

It prints the address and its balance on every chain, and never prints the key. If the address is not the wallet you meant, stop before sending anything.

Sell (charge for a resource, get paid)

import { createX402Seller } from 'x402-trinity/seller';
import { createFileNonceStore } from 'x402-trinity/budget-file';

const seller = createX402Seller({
  payTo: '0xYourWallet',      // 100% of every payment lands here
  price: '10000',             // 0.01 USDC, atomic units
  network: 'base',
  facilitator: 'https://your-facilitator.example',   // REQUIRED — no default exists
  nonceStore: createFileNonceStore('./.x402-nonces.json'),  // REQUIRED — see below
});

// in any fetch-style handler:
const gate = await seller.guard(request);
if (gate.response) return gate.response;          // unpaid or refused — hand back the 402
return new Response(yourData, { headers: seller.receiptHeader(gate.settlement) });

Both required fields are deliberate. There is no default facilitator because settling is someone's real money and guessing an endpoint is not a default. And the replay guard has to outlive the process: an in-memory one forgets every settled payment on restart, so a buyer could re-present a spent authorization and get the resource again for free. The constructor throws rather than let either be implicit.

The seller never holds a private key and never touches funds. It quotes a price and asks a facilitator to verify and settle; money moves buyer → you directly on-chain.

This release ships Base + USDC only. Any other EVM chain works through customChains;

your address is the same on all of them.

What it does

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Grade history

  • 2026-09-19downgradeA → Bscore 83

x402 Trinity: common questions

Is x402 Trinity MCP server safe?
Mostly: it is graded B (83/100). Read the x402 Trinity safety report
How do I install x402 Trinity?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does x402 Trinity need an API key?
Yes. The registry entry asks for X402_PRIVATE_KEY.
Is x402 Trinity maintained?
The last commit was 37 days ago (2026-09-27). The latest release is v0.2.4.
What can I use instead of x402 Trinity?
Servers from other publishers that do the same job: Agoragentic Agent OS MCP server, 3D AI Agent Avatar MCP server and Figma Context MCP server.
How does x402 Trinity compare with other AI and agents MCP servers?
safety score 83/100 (higher than 68% of 4,460 AI and agents servers); tools 3 (the typical AI and agents server has 6); tools that change things 33% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to x402 Trinity

Same job from other publishers: the closest match first, then the best rated.

  • Agoragentic Agent OS MCP
    Triptych OS (Agent OS) MCP for governed routing, receipts, and USDC settlement on Base.
    B
  • 3D AI Agent Avatar
    3D AI Agent Avatar — render any GLB, give it a Solana wallet, a voice, and pump.fun powers.
    B
  • Figma Context
    Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
    B
  • IWE (iwe.md)
    Markdown knowledge base as agent memory. Runs against the notes directory it is started in.
    A