PayGate
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
x402 & MCP Non-Custodial Crypto Paywall Starter (Python FastAPI + Node.js 18+)
Click Use this template above to launch a production-ready HTTP 402 (x402 v2) API & Model Context Protocol (MCP) Paywall in Python (FastAPI) or Node.js 18+ (ESM, zero npm dependencies).
Every payment settles 100% directly from buyer to your self-custody wallet across 7 networks (Base, Polygon, Arbitrum, BNB Chain, Ethereum, Solana, and Bitcoin Taproot) in USDC, USDT, ETH, BNB, POL, SOL, or BTC — with 0% platform cut, no Stripe/bank account, and no merchant KYC.
Included Out of the Box
File | Purpose |
Validated | |
Runnable Python FastAPI | |
Zero-dependency Node.js 18+ HTTP/Express | |
Pre-wired MCP Server config for Cursor, Claude Code, Windsurf, and OpenCode ( | |
Automated CI check powered by |
Related MCP server: x402-mcp
60-Second Quickstart
1. Configure Your Self-Custody Wallet
Set your EVM (0x...), Solana, or Bitcoin Taproot (bc1p...) payout address:
export PAYGATE_MERCHANT_WALLET="0xYourSelfCustodyWalletAddress"
export PAYGATE_PRICE_USD="5.00"
export PAYGATE_NETWORK="base"Also update payTo in .well-known/x402.json and merchant-wallet in .github/workflows/paygate.yml.
2A. Run the Node.js 18+ Paywall Server (Zero Dependencies)
node server_express.mjs --self-test
node server_express.mjs2B. Run the Python FastAPI Paywall Server
pip install -r requirements.txt
python server_fastapi.py --self-test
python server_fastapi.py3. Test the HTTP 402 Payment Required Flow
curl -i http://localhost:8000/api/premium-alphaUnpaid callers receive HTTP/1.1 402 Payment Required, a Base64-encoded PAYMENT-REQUIRED header compatible with autonomous x402 agents, and a 1-Click 7-chain checkoutUrl for human buyers. Once settled on-chain, passing X-PayGate-Invoice: inv_... unlocks HTTP 200 OK.
Embed In-Page Glassmorphic Crypto Checkout on Any Website
Drop two lines into any HTML, Next.js, Astro, or React landing page to open an in-page 7-chain crypto checkout modal:
<script src="https://chainguard-studio-production.up.railway.app/paygate/widget.js" defer></script>
<a href="#" data-paygate data-merchant="0xYourWallet" data-amount="29" data-network="base" data-title="Pro API Access">
Pay $29 in Crypto (0% Fee)
</a>Production Upgrades & Managed Plans
Self-hosted verification and your first 3 hosted cloud settlements are 100% free. Scale up anytime with instant on-chain activation:
Cloud Pro ($9/mo) — Unlimited hosted invoices, recurring subscriptions (
customer_ref+billing_days), signedHMAC-SHA256webhooks, Telegram VIP auto-kick bot, and 1,000 Pro API calls.Lifetime White-Label License ($79 One-Time) — Removes all "Powered by PayGate" branding across every hosted checkout page for your merchant wallet forever + 25,000 Master API calls.
Turnkey Done-For-You VIP Bot / SaaS Integration ($99 Deposit) — Custom 24-hour deployment for Telegram communities, AI agencies, and SaaS teams.
Full SDK & Documentation: github.com/EzequielLech/paygate-usdt
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Pay x402 (HTTP 402) invoices from any chain, plus cross-chain swaps on 25+ chains. No API key.
x402 MCP with exact and batched payments for recurring wallet, trading, market and web workflows.
HTTP 402 and x402 billing for APIs and MCP servers. Agents pay your own wallet in USDC, 0% fee.
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceNon-custodial payment engine for AI agents supporting BTC, ETH, USDT, USDC, XRP, XMR, and ZEC. Exposes wallet, invoice, and payment tools over MCP with per-agent spend limits, plus x402 pay-per-call support.59 npmBusiness Source 1.1
- AlicenseNot gradedqualityDmaintenanceMCP server for the x402 protocol that lets AI agents discover and call payment-gated HTTP APIs automatically.Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to discover and pay for x402-gated HTTP APIs, handling 402 Payment Required flows with local signing. Supports EVM and Solana with non-custodial wallet management.3324 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover, call, and pay for existing HTTP APIs over MCP with x402 paywalls, non-custodial settlement, and no code changes to the backend.381 npm82Apache 2.0