Turn any API or MCP server into a paid service with x402
x402-deploy
1-click deployment for monetized APIs & MCP servers
Turn any API or MCP server into a paid service in 5 minutes. No code changes required.
๐ Choose Your Site Template
- x402 Dashboard
- x402 deploy was was originally nirholas/universal-crypto-mcp
- View Universal Crypto MCP ๐ ๏ธ
- Deploy x402 Site deploy-x402.vercel.app)
โจ Features
- ๐ฐ Instant Monetization - Charge per API call with crypto (USDC on Base)
- ๐ฅณ 1-Click Deploy - Railway, Fly.io, Vercel, or Docker
- ๐ Live Dashboard - Real-time earnings and analytics
- ๐ Auto-Discovery - Automatic listing on x402scan.com
- ๐ก๏ธ Zero Trust - Payment verification before API access
- ๐จ Beautiful CLI - Stunning terminal UI with live updates
๐ Quick Start
# Install globally
npm install -g @nirholas/x402-deploy
Navigate to your API/MCP server
cd my-awesome-api
Initialize (detects project automatically)
x402-deploy init
Deploy (creates wallet, deploys, registers)
x402-deploy deploy
Watch earnings
x402-deploy dashboard
That's it! Your API is now live and earning money. ๐ธ
๐ฆ What Gets Deployed?
x402-deploy wraps your existing API with a payment gateway:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your API (unchanged) โ
โ โ โ
โ x402 Gateway (automatic) โ
โ โ โ
โ Payment Verification โ
โ โ โ
โ Analytics & Rate Limiting โ
โ โ โ
โ Deployed to Cloud โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ก Use Cases
- MCP Servers - Monetize Claude Desktop tools
- AI APIs - Charge for GPT wrappers, embeddings
- Trading Bots - Sell API access to strategies
- Data APIs - Weather, crypto prices, analytics
- Web Services - Any REST/HTTP API
๐ Documentation
- Installation Guide
- Configuration
- Deployment Platforms
- Pricing Strategies
- Dashboard Guide
- API Reference
๐ฏ Supported Platforms
| Platform | Status | Deploy Time | Free Tier | |----------|--------|-------------|-----------| | Railway | โ | ~2 min | $5/month | | Fly.io | โ | ~3 min | Yes | | Vercel | โ | ~1 min | Yes | | Docker | โ | ~30 sec | Self-hosted |
๐๏ธ Project Types
Automatically detects and configures:
- โ
MCP Servers (
@modelcontextprotocol/sdk) - โ Express APIs
- โ Fastify
- โ FastAPI (Python)
- โ Next.js
- โ Generic Node.js/Python
๐ฐ Pricing Models
{
"pricing": {
"model": "per-call",
"default": { "price": "$0.01" },
"routes": {
"GET /api/*": "$0.0001",
"POST /api/trade": "$0.10",
"GET /api/free": "$0"
}
}
}
๐ Dashboard
Beautiful terminal dashboard with live updates:
x402-deploy dashboard
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Earnings Summary โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
โ Today: $12.45 (1,245 calls) โ
โ This Week: $87.32 (8,732 calls) โ
โ All Time: $1,547 (154,718 calls) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง CLI Commands
x402-deploy init # Initialize project
x402-deploy deploy # Deploy to cloud
x402-deploy deploy --dry-run # Preview deployment
x402-deploy dashboard # Live earnings dashboard
x402-deploy pricing # Manage pricing
x402-deploy status # Check deployment status
x402-deploy logs # View deployment logs
x402-deploy withdraw # Withdraw earnings
x402-deploy export --csv # Export analytics
๐ค Contributing
We love contributions! See CONTRIBUTING.md
๐ License
MIT ยฉ nirholas
๐ Star History
(Original Repo, Universal Crypto MCP)As with most of my repos, I spend a lot of time building then find something interesting or have a need for something and i start on the next. I hope this at the very least is a good resource you can use to monetize your APIs and MCP Servers. What I truly hope to build is a community of developers, I love shipping alone but i wouldn't mind collaborating here and there. Please, always feel free to PR and throw an issue down. I am waiting.