# Tryx402

> Tryx402 is an open-source MCP server. Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/crypto-yannso/tryx402
- **MCP Registry name:** io.github.crypto-yannso/tryx402
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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

---
Source: https://ai-powered.com/mcp/tryx402
