PayGate USDT Payment Gateway MCP

8-tool non-custodial 6-chain USDT/USDC payment gateway: @mcp_tool_paywall, invoice CRUD & x402.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
99%
Naming quality
98%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~3,025Tokens (tool definitions)
~2.6 KBTypical response size
Significant attention impact (2.36% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "paygate-usdt": {
      "url": "https://chainguard-studio-production.up.railway.app/paygate/mcp"
    }
  }
}

Remote endpoints

https://chainguard-studio-production.up.railway.app/paygate/mcpstreamable-http

What it can do

Tool inventory

Tools (8)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟡create_usdt_invoice(title, amount_usd, network, merchant_wallet, webhook_url, ...)

Create a new non-custodial multi-chain USDT/USDC payment invoice and hosted checkout page on Polygon, BSC, Arbitrum, Base, Ethereum, or Solana settling 100% directly to `merchant_wallet` with 0% platform custody. State-changing operation creating a single-use `pending` invoice record (unlimited free calls, no authentication required). Supports recurring SaaS subscriptions via optional `customer_ref` and `billing_days`. Returns JSON with `ok` (boolean), `checkout_url` (hosted payment page), and `invoice` (`invoice_id`, `status`, `amount_usd`, `network`, `merchant_wallet`, `expires_at`).

Input Schema

{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Human-readable product, order, or subscription plan title displayed on the hosted checkout page (2-140 chars)."
    },
    "amount_usd": {
      "type": "number",
      "description": "Exact invoice price denominated in USD (settled 1:1 in USDT or USDC on-chain, e.g. `19.0`). Must be >= `0.01`."
    },
    "network": {
      "type": "string",
      "default": "polygon",
      "enum": [
        "polygon",
        "bsc",
        "base",
        "arbitrum",
        "ethereum",
        "solana",
        "bitcoin"
      ],
      "description": "Settlement blockchain network (`polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, `solana`, or `bitcoin`). Defaults to `polygon`."
    },
    "merchant_wallet": {
      "type": "string",
      "description": "Merchant's self-custody receiving wallet address (`0x...` for EVM chains or base58 public key for `solana`). Funds transfer directly here."
    },
    "webhook_url": {
      "type": "string",
      "default": "",
      "description": "Optional HTTPS URL to receive an HMAC-SHA256 signed `invoice.paid` POST webhook upon on-chain settlement."
    },
    "ttl_minutes": {
      "type": "integer",
      "default": 60,
      "description": "Invoice expiration window in minutes (`5` to `43200`). After `ttl_minutes`, unpaid invoices cannot be settled. Defaults to `60`."
    },
    "customer_ref": {
      "type": "string",
      "default": "",
      "description": "Optional external customer identifier (e.g. email, user ID, or Telegram ID) for tracking recurring subscription status."
    },
    "billing_days": {
      "type": "integer",
      "default": 0,
      "description": "Optional subscription duration in days (e.g. `30` for monthly, `365` for annual). Pass `0` for one-time purchases."
    }
  },
  "required": [
    "title",
    "amount_usd",
    "network",
    "merchant_wallet"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "checkout_url": {
      "type": "string"
    },
    "invoice": {
      "type": "object"
    }
  },
  "required": [
    "ok"
  ]
}
🟢get_usdt_invoice(invoice_id)

Retrieve current settlement status, payment metadata, expiration timestamp, and cryptographic SHA-256 receipt for an existing PayGate invoice by `invoice_id`. Read-only, non-destructive lookup (unlimited free calls, no authentication required). Returns JSON with `ok` (boolean), `invoice` (`invoice_id`, `status` as `pending`/`paid`/`expired`, `amount_usd`, `network`, `merchant_wallet`, `tx_hash`, `paid_at`, `metadata`), and `receipt`.

Input Schema

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "string",
      "description": "Unique PayGate invoice identifier to look up (e.g. `inv_a1b2c3d4e5f6`)."
    }
  },
  "required": [
    "invoice_id"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "invoice": {
      "type": "object"
    },
    "receipt": {
      "type": "object"
    }
  },
  "required": [
    "ok"
  ]
}
🟢list_usdt_invoices(merchant_wallet, status, customer_ref, limit)

List and filter PayGate USDT/USDC invoices by `merchant_wallet`, settlement `status` (`pending`, `paid`, `expired`), or `customer_ref`. Read-only query returning up to `limit` most recent invoices in reverse chronological order (unlimited free calls, no authentication required). Returns JSON with `ok` (boolean), `count` (integer), and `invoices` array.

Input Schema

{
  "type": "object",
  "properties": {
    "merchant_wallet": {
      "type": "string",
      "default": "",
      "description": "Optional merchant receiving wallet address (`0x...` or Solana base58) to filter invoices for a specific merchant."
    },
    "status": {
      "type": "string",
      "default": "",
      "enum": [
        "",
        "pending",
        "paid",
        "expired"
      ],
      "description": "Optional invoice lifecycle status filter: `pending`, `paid`, `expired`, or empty string for all statuses."
    },
    "customer_ref": {
      "type": "string",
      "default": "",
      "description": "Optional customer identifier (`customer_ref`) to list payment history for a single subscriber or buyer."
    },
    "limit": {
      "type": "integer",
      "default": 25,
      "description": "Maximum number of invoices to return (`1` to `100`). Defaults to `25`."
    }
  }
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "invoices": {
      "type": "array"
    }
  },
  "required": [
    "ok",
    "count",
    "invoices"
  ]
}
⚪verify_usdt_invoice(invoice_id, tx_hash)

Verify and settle a confirmed on-chain USDT/USDC transaction hash (`tx_hash`) against a PayGate `invoice_id` via live JSON-RPC receipt log inspection. Idempotent state-changing operation (unlimited free calls, anti-replay enforced): confirms recipient address, token contract, and minimum USD amount, transitions the invoice to `paid`, extends recurring `subscription_expires_at` if configured, and dispatches any configured webhook. Returns JSON with `ok` (boolean), `already_paid` (boolean), and updated `invoice` object.

Input Schema

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "string",
      "description": "Unique PayGate invoice identifier returned by `create_usdt_invoice` (e.g. `inv_a1b2c3d4e5f6`)."
    },
    "tx_hash": {
      "type": "string",
      "description": "Confirmed on-chain transaction hash (`0x...` 66-char hex on EVM chains or base58 signature on Solana) transferring USDT/USDC to the invoice's `merchant_wallet`."
    }
  },
  "required": [
    "invoice_id",
    "tx_hash"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "invoice": {
      "type": "object"
    }
  },
  "required": [
    "ok"
  ]
}
🔴expire_usdt_invoice(invoice_id, merchant_wallet)

Cancel and expire an unpaid `pending` PayGate invoice by `invoice_id` so it can no longer be settled. Idempotent state-changing operation: transitions `pending` invoices to `expired` while leaving already-`paid` invoices untouched (unlimited free calls). Returns JSON with `ok` (boolean) and the updated `invoice` object (`status: "expired"`).

Input Schema

{
  "type": "object",
  "properties": {
    "invoice_id": {
      "type": "string",
      "description": "Unique PayGate invoice identifier (`inv_...`) to cancel/expire."
    },
    "merchant_wallet": {
      "type": "string",
      "default": "",
      "description": "Optional merchant wallet address (`0x...` or Solana base58) to verify ownership before expiring the invoice."
    }
  },
  "required": [
    "invoice_id"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "invoice": {
      "type": "object"
    }
  },
  "required": [
    "ok"
  ]
}
🟢check_usdt_subscription(merchant_wallet, customer_ref, amount_usd, network, billing_days)

Check whether a customer (`customer_ref`) has an active non-custodial recurring USDT/USDC subscription with `merchant_wallet`, including remaining days, expiration timestamp, and a pre-filled 1-click renewal checkout URL. Read-only lookup (unlimited free calls, early renewals automatically stack remaining days without requiring `approve(MAX_UINT256)`). Returns JSON with `ok`, `active` (boolean), `days_remaining` (number), `expires_at` (ISO-8601 or null), `last_invoice_id`, and `renewal_url`.

Input Schema

{
  "type": "object",
  "properties": {
    "merchant_wallet": {
      "type": "string",
      "description": "Merchant's receiving wallet address (`0x...` on EVM or base58 on Solana) that collects subscription payments."
    },
    "customer_ref": {
      "type": "string",
      "description": "Unique subscriber identifier (e.g. user ID, email, or account handle) passed when creating the subscription invoice."
    },
    "amount_usd": {
      "type": "number",
      "default": 9,
      "description": "Subscription renewal price in USD used to pre-populate the returned `renewal_url`. Defaults to `9.0`."
    },
    "network": {
      "type": "string",
      "default": "polygon",
      "enum": [
        "polygon",
        "bsc",
        "base",
        "arbitrum",
        "ethereum",
        "solana"
      ],
      "description": "Settlement network pre-populated in the returned `renewal_url`. Defaults to `polygon`."
    },
    "billing_days": {
      "type": "integer",
      "default": 30,
      "description": "Billing cycle length in days pre-populated in the returned `renewal_url`. Defaults to `30`."
    }
  },
  "required": [
    "merchant_wallet",
    "customer_ref"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "active": {
      "type": "boolean"
    },
    "days_remaining": {
      "type": "number"
    },
    "renewal_url": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "active",
    "days_remaining",
    "renewal_url"
  ]
}
🟢verify_onchain_transfer(network, tx_hash, min_amount_usd, expected_recipient)

Statelessly verify any standalone on-chain USDT or USDC transfer transaction hash (`tx_hash`) via live blockchain JSON-RPC without requiring a pre-created PayGate invoice ID. Read-only RPC receipt inspection across `polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, or `solana` confirming that `expected_recipient` received at least `min_amount_usd` in official USDT/USDC. Returns JSON with `verified` (boolean), `network`, `token` (`USDT` or `USDC`), `amount_usd`, `sender`, `recipient`, `tx_hash`, and `reason`.

Input Schema

{
  "type": "object",
  "properties": {
    "network": {
      "type": "string",
      "enum": [
        "polygon",
        "bsc",
        "base",
        "arbitrum",
        "ethereum",
        "solana",
        "bitcoin"
      ],
      "description": "Blockchain network where `tx_hash` was confirmed (`polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, `solana`, or `bitcoin`)."
    },
    "tx_hash": {
      "type": "string",
      "description": "On-chain transaction hash (`0x...` 66-char hex on EVM or base58 signature on Solana) to verify."
    },
    "min_amount_usd": {
      "type": "number",
      "description": "Minimum required stablecoin transfer amount in USD (e.g. `19.0`). Transfers below this threshold return `verified: false`."
    },
    "expected_recipient": {
      "type": "string",
      "description": "Expected recipient wallet address (`0x...` on EVM or base58 on Solana) that must have received the USDT/USDC transfer."
    }
  },
  "required": [
    "network",
    "tx_hash",
    "min_amount_usd",
    "expected_recipient"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "verified": {
      "type": "boolean"
    },
    "network": {
      "type": "string"
    },
    "token": {
      "type": "string"
    },
    "amount_usd": {
      "type": "number"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "verified",
    "network",
    "amount_usd"
  ]
}
🟢build_x402_paywall_challenge(resource_url, price_usd, recipient_wallet, description)

Generate a standards-compliant HTTP 402 (`x402 v2`) payment challenge JSON payload, base64 `PAYMENT-REQUIRED` header, and 1-click PayGate `checkout_url` for monetizing any REST or AI-agent API endpoint in USDT/USDC. Purely read-only deterministic payload builder with zero network calls or side effects. Returns JSON with `x402Version` (`2`), `amount_usd`, `checkout_url`, `payment_required_header_b64`, and CAIP-2 `accepts` array.

Input Schema

{
  "type": "object",
  "properties": {
    "resource_url": {
      "type": "string",
      "description": "Protected HTTPS endpoint URL being monetized (e.g. `https://api.example.com/v1/pro-signal`)."
    },
    "price_usd": {
      "type": "number",
      "description": "Required per-call or pass price in USD (e.g. `0.05` or `9.0`)."
    },
    "recipient_wallet": {
      "type": "string",
      "description": "Merchant's EVM wallet address (`0x...`) to receive on-chain USDC/USDT payments across Base, Polygon, Arbitrum, and BSC."
    },
    "description": {
      "type": "string",
      "default": "Paid API endpoint (non-custodial USDT/USDC settlement)",
      "description": "Human- and agent-readable description of what the paid endpoint delivers upon settlement."
    }
  },
  "required": [
    "resource_url",
    "price_usd",
    "recipient_wallet"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "x402Version": {
      "type": "integer"
    },
    "amount_usd": {
      "type": "number"
    },
    "checkout_url": {
      "type": "string"
    },
    "payment_required_header_b64": {
      "type": "string"
    },
    "accepts": {
      "type": "array"
    }
  },
  "required": [
    "x402Version",
    "amount_usd",
    "checkout_url",
    "accepts"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded8 tools