x402 Trinity
by github.com/devmster · v0.2.4 · updated Sep 27, 2026
Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
X402_PRIVATE_KEYrequiredsecretPrivate 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_REQUESTrequiredHard 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_BUDGETrequiredLifetime ceiling across all payments, in atomic units. Required for the same reason as the per-request cap.
X402_BUDGET_FILEPath to a file that makes the lifetime budget survive restarts. Without it the total resets every time the server starts.
X402_ALLOW_HOSTSComma-separated hosts that may be paid. Anything else is refused however convincing the challenge looks.
X402_NETWORKSNetworks to accept. Defaults to base.
More MCP servers
Engraphy
github.com/devon-clarkk
Self-hosted MCP memory server: a typed knowledge graph on Postgres 16 and pgvector.
Mcpg
github.com/devopam
Production-grade PostgreSQL MCP server — 279 tools for query, tuning & ops, read-only by default.
OwnPG
github.com/devops-infinity
PostgreSQL DBA tools over MCP, scoped to one database and one schema.
OwnSearch
github.com/devops-infinity
Quality-ranked SearXNG search over MCP with local fleet state, scoring, and merged results.
OwnSERP
github.com/devops-infinity
MCP server for the Serper.dev search API with per-call credit accounting
Personalinsights Feed
github.com/devp1
AI-classified tech/investor news feed with editorial verdicts, entities, and theses.