Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
X402_PRIVATE_KEYRequired, 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_REQUESTRequired | 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_BUDGETRequired | Lifetime ceiling across all payments, in atomic units. Required for the same reason as the per-request cap. |
X402_BUDGET_FILEOptional | Path to a file that makes the lifetime budget survive restarts. Without it the total resets every time the server starts. |
X402_ALLOW_HOSTSOptional | Comma-separated hosts that may be paid. Anything else is refused however convincing the challenge looks. |
X402_NETWORKSOptional | Networks to accept. Defaults to base. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 27 Sep 2026 |
| Last updated | 27 Sep 2026 |
| Registry name | io.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.
