Skip to content
MCP server

Tryx402

Budget router over x402: hard budget caps, idempotent paid calls, cost ledger…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.0
Listing updated
4 days ago

About Tryx402

Tryx402 is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing.

Install

Run in a terminal

claude mcp add tryx402 --env TRYX402_API_KEY='<TRYX402_API_KEY>' -- uvx tryx402

Add to claude_desktop_config.json

{
  "mcpServers": {
    "tryx402": {
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "tryx402": {
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "tryx402": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "tryx402": {
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "tryx402": {
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "TRYX402_API_KEY": "<TRYX402_API_KEY>"
      }
    }
  }
}

Configuration

  • GATEWAY_MAX_BUDGET_USDHard session-wide budget cap in USD for all paid calls (e.g. 1.00)
  • TRYX402_API_KEYAPI key for the hosted service (server-side pricing via quote)

Pricing

Open source

Tryx402 FAQ

Is Tryx402 free?

Yes. Tryx402 is open source, so you can use and self-host it for free.

How do I add Tryx402 to Claude Code?

Run this command in your terminal: claude mcp add tryx402 --env TRYX402_API_KEY='<TRYX402_API_KEY>' -- uvx tryx402