# PrivadoVPN x402 Payer [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/privadovpn/x402-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 389  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/privadovpn-x402-payer

## Description
Local MCP server that signs x402 USDC payments (Solana, EVM) to buy PrivadoVPN access

## Tools
Capabilities this server exposes over MCP:

- **wallet_status** — Show configured wallet addresses and network selection. Never returns private keys.
- **list_vpn_catalog** — List purchasable VPN plans (including which services — HTTP proxy, SOCKS5 — each plan includes) and supported server country codes.
- **buy_vpn** — Preferred purchase flow: quote, sign and pay on-chain, fulfill, and save credentials in one call.
- **fulfill_payment** — Recovery only: exchange an already-broadcast payment for VPN credentials.
- **sign_and_pay** — Debug only: sign and broadcast payment without fulfilling. Prefer `buy_vpn`.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "privadovpn-x402-payer": {
    "command": "npx",
    "args": ["-y","@privadovpn/x402-mcp"],
    "env": {
      "SOLANA_PRIVATE_KEY": "",
      "EVM_PRIVATE_KEY": "",
      "PREFERRED_NETWORK": "",
      "X402_BASE_URL": "",
      "SOLANA_RPC_URL": "",
      "EVM_RPC_URL": ""
    }
  }
}
```

**Requires environment variables:** `SOLANA_PRIVATE_KEY`, `EVM_PRIVATE_KEY`, `PREFERRED_NETWORK`, `X402_BASE_URL`, `SOLANA_RPC_URL`, `EVM_RPC_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What PrivadoVPN x402 Payer does

PrivadoVPN x402 Payer gives MCP-compatible agents a way to purchase PrivadoVPN access using USDC. It connects to the PrivadoVPN x402 payment backend, retrieves the live catalog and payment quotes, signs payment transactions in the local process, and returns the resulting proxy credentials after fulfillment.

The server supports two payment paths: Solana SPL USDC transfers and EVM USDC authorizations using EIP-3009. Each purchased plan currently includes an HTTP proxy and a SOCKS5 proxy. The catalog also reports supported server country codes and the services included with each plan, so agents should query it before selecting a plan.

## How it works

The MCP process reads wallet credentials from its environment. For a purchase, `buy_vpn` requests a quote from the backend, signs the selected payment locally, broadcasts it through the configured chain RPC, and sends the payment proof back to the backend to obtain VPN credentials. Private keys remain in the process and are not transmitted.

Successful credentials are returned to the agent and saved under `~/.privado/`. The saved data includes the proxy connection details and, when supplied by the plan, SOCKS5 connection details. The server does not configure an operating-system proxy; an agent or application must use the returned connection string explicitly.

## Setup and configuration

Run the package directly with:

```bash
npx -y @privadovpn/x402-mcp
```

Configure the command as a local MCP server in an MCP client such as Claude Desktop, Claude Code, or Cursor. Provide at least one wallet key:

- `SOLANA_PRIVATE_KEY`: Base58 Solana secret key used for SPL USDC payments.
- `EVM_PRIVATE_KEY`: Hex-encoded EVM key used for EIP-3009 USDC payments.
- `PREFERRED_NETWORK`: Selects `solana` or `evm` when both are available; `eip155` is accepted as an EVM alias.
- `X402_BASE_URL`: Overrides the default PrivadoVPN x402 backend URL.
- `SOLANA_RPC_URL`: Sets the Solana balance and transaction endpoint.
- `EVM_RPC_URL`: Required when making EVM payments and used for balance checks and broadcasts.

Use a separate, low-balance wallet rather than an account holding unrelated funds. `wallet_status` exposes addresses and network selection, but not private keys or other secret material.

## Tools and capabilities

- `wallet_status` reports configured wallet addresses and the selected network.
- `list_vpn_catalog` retrieves current plans, prices, included HTTP/SOCKS5 services, and supported countries from the backend.
- `buy_vpn` performs the normal quote, payment, fulfillment, and credential-saving sequence.
- `fulfill_payment` exchanges an already broadcast payment for credentials during recovery.
- `sign_and_pay` signs and broadcasts without fulfillment and is intended for debugging.

Both `buy_vpn` and `sign_and_pay` support `dry_run` balance checks. A dry run still creates an invoice, so it should not be repeated casually.

## Limitations and notes

Call `list_vpn_catalog` before purchasing because plans and prices come from the backend rather than being embedded in the client. Call `buy_vpn` only once for each purchase attempt: every payment request creates a new invoice. If payment succeeds but fulfillment fails, use the returned plan, invoice number, payment signature, and settlement transaction with `fulfill_payment` instead of starting another purchase.

The server passes backend credential fields through rather than transforming them. HTTP credentials include a connection string, and SOCKS5 credentials are available when the selected plan lists that service. Payment signing and broadcasting require sufficient wallet funds and the relevant chain RPC endpoint.

_Full upstream README: https://allmcps.com/mcp/privadovpn-x402-payer/readme_

