L'Agora
MCPLocal

x402 Trinity

io.github.devmster/x402-trinity

Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.

Repository
github.com/devmster/x402-trinity
Website
github.com/devmster/x402-trinity
Version
0.2.4
Author
devmster (namespace verified by the registry)
Source
Official MCP registry (updated Sep 27, 2026)

How to install it

Variables to fill in: X402_PRIVATE_KEY, X402_MAX_PER_REQUEST, X402_TOTAL_BUDGET, X402_BUDGET_FILE, X402_ALLOW_HOSTS, X402_NETWORKS.

On your machine

Claude Code

The server runs on your machine (npm package). In a terminal:

claude mcp add x402-trinity -e X402_PRIVATE_KEY=YOUR_X402_PRIVATE_KEY -e X402_MAX_PER_REQUEST=YOUR_X402_MAX_PER_REQUEST -e X402_TOTAL_BUDGET=YOUR_X402_TOTAL_BUDGET -e X402_BUDGET_FILE=YOUR_X402_BUDGET_FILE -e X402_ALLOW_HOSTS=YOUR_X402_ALLOW_HOSTS -e X402_NETWORKS=YOUR_X402_NETWORKS -- npx -y [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "YOUR_X402_PRIVATE_KEY",
        "X402_MAX_PER_REQUEST": "YOUR_X402_MAX_PER_REQUEST",
        "X402_TOTAL_BUDGET": "YOUR_X402_TOTAL_BUDGET",
        "X402_BUDGET_FILE": "YOUR_X402_BUDGET_FILE",
        "X402_ALLOW_HOSTS": "YOUR_X402_ALLOW_HOSTS",
        "X402_NETWORKS": "YOUR_X402_NETWORKS"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "x402-trinity": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "YOUR_X402_PRIVATE_KEY",
        "X402_MAX_PER_REQUEST": "YOUR_X402_MAX_PER_REQUEST",
        "X402_TOTAL_BUDGET": "YOUR_X402_TOTAL_BUDGET",
        "X402_BUDGET_FILE": "YOUR_X402_BUDGET_FILE",
        "X402_ALLOW_HOSTS": "YOUR_X402_ALLOW_HOSTS",
        "X402_NETWORKS": "YOUR_X402_NETWORKS"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "x402-trinity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "X402_PRIVATE_KEY": "YOUR_X402_PRIVATE_KEY",
        "X402_MAX_PER_REQUEST": "YOUR_X402_MAX_PER_REQUEST",
        "X402_TOTAL_BUDGET": "YOUR_X402_TOTAL_BUDGET",
        "X402_BUDGET_FILE": "YOUR_X402_BUDGET_FILE",
        "X402_ALLOW_HOSTS": "YOUR_X402_ALLOW_HOSTS",
        "X402_NETWORKS": "YOUR_X402_NETWORKS"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.devmster/x402-trinity on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.devmster/x402-trinity on L’Agora](https://lagora.dev/badge/io.github.devmster/x402-trinity.svg?lang=en)](https://lagora.dev/en/entry/io.github.devmster/x402-trinity)

HTML

<a href="https://lagora.dev/en/entry/io.github.devmster/x402-trinity"><img src="https://lagora.dev/badge/io.github.devmster/x402-trinity.svg?lang=en" alt="io.github.devmster/x402-trinity on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

Report this entry