Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing.
Connect Runs on your machine
claude mcp add tryx402 -e GATEWAY_MAX_BUDGET_USD=<GATEWAY_MAX_BUDGET_USD> -e TRYX402_API_KEY=<TRYX402_API_KEY> -- uvx tryx402==0.2.0
{
"mcpServers": {
"tryx402": {
"command": "uvx",
"args": [
"tryx402==0.2.0"
],
"env": {
"GATEWAY_MAX_BUDGET_USD": "<GATEWAY_MAX_BUDGET_USD>",
"TRYX402_API_KEY": "<TRYX402_API_KEY>"
}
}
}
}
{
"mcpServers": {
"tryx402": {
"command": "uvx",
"args": [
"tryx402==0.2.0"
],
"env": {
"GATEWAY_MAX_BUDGET_USD": "<GATEWAY_MAX_BUDGET_USD>",
"TRYX402_API_KEY": "<TRYX402_API_KEY>"
}
}
}
}
{
"servers": {
"tryx402": {
"type": "stdio",
"command": "uvx",
"args": [
"tryx402==0.2.0"
],
"env": {
"GATEWAY_MAX_BUDGET_USD": "<GATEWAY_MAX_BUDGET_USD>",
"TRYX402_API_KEY": "<TRYX402_API_KEY>"
}
}
}
}
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 |
|---|---|
GATEWAY_MAX_BUDGET_USDOptional | Hard session-wide budget cap in USD for all paid calls (e.g. 1.00) |
TRYX402_API_KEYOptional, secret | API key for the hosted service (server-side pricing via quote) |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 24 Aug 2026 |
| Last updated | 24 Aug 2026 |
| Registry name | io.github.crypto-yannso/tryx402 |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
