x402 Deploy
Turn any API or MCP server into a paid service with x402
What is x402 Deploy?
x402 Deploy is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to turn any api or mcp server into a paid service with x402
Turn any API or MCP server into a paid service with x402
This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Turn any API or MCP server into a paid service with x402
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx x402-deployConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use x402 Deploy
x402 Deploy is a CLI tool and MCP server that wraps existing APIs and MCP servers with cryptocurrency-based micropayment verification using the x402 payment protocol on Base (Ethereum L2). With a single 'x402-deploy deploy' command it adds per-route pricing, creates a custodial wallet, and lists your service on x402scan.com so AI agents can discover and pay for it autonomously. It supports Express, Fastify, FastAPI, Next.js, and generic MCP servers, making it straightforward to monetize any developer tool.
Prerequisites
- Node.js 18 or later installed
- An existing API server or MCP server to monetize
- A Base-compatible Ethereum wallet or willingness to use the auto-generated custodial wallet
- An MCP-compatible client such as Claude Desktop if using the MCP interface
Install x402-deploy globally
Install the x402-deploy CLI from npm so the 'x402-deploy' command is available in your terminal.
npm install -g @nirholas/x402-deployInitialize your project
Run the init command inside your existing API or MCP server project. It auto-detects the framework (Express, Fastify, FastAPI, Next.js, MCP) and creates a pricing configuration file.
cd your-api-project
x402-deploy initConfigure per-route pricing
Edit the generated pricing configuration to set prices for individual routes. Use '$0' for free endpoints and any dollar amount for paid ones.
{
"pricing": {
"model": "per-call",
"default": { "price": "$0.01" },
"routes": {
"GET /api/data": "$0.0001",
"POST /api/trade": "$0.10",
"GET /api/health": "$0"
}
}
}Deploy your payment-gated service
Run the deploy command to wrap your service with x402 payment middleware, create a custodial wallet for receiving payments, and publish the service to x402scan.com.
x402-deploy deployMonitor earnings and manage the deployment
Use the dashboard and utility commands to watch real-time earnings, check deployment health, view logs, and withdraw funds to your own wallet.
x402-deploy dashboard # Real-time earnings visualization
x402-deploy status # Deployment health check
x402-deploy logs # View deployment output
x402-deploy withdraw # Extract earnings to your wallet
x402-deploy export # Download analytics as CSVx402 Deploy Examples
Client configuration
claude_desktop_config.json entry if using x402-deploy as an MCP server directly.
{
"mcpServers": {
"x402-deploy": {
"command": "npx",
"args": ["x402-deploy"]
}
}
}Prompts to try
Example prompts for managing deployments and earnings through Claude.
- "Deploy my current MCP server project with x402 and set a default price of $0.001 per call."
- "Show me the current earnings dashboard for my deployed x402 service."
- "Update the price for the POST /api/analyze route to $0.05."
- "Withdraw my accumulated earnings from the x402 custodial wallet."Troubleshooting x402 Deploy
'x402-deploy' command not found after npm install -g
Check that your global npm bin directory is in your PATH ('npm bin -g'). On some systems you may need to add it: 'export PATH=$(npm bin -g):$PATH'.
Framework not detected during 'x402-deploy init'
Ensure you are running the command from the root of your project where package.json or requirements.txt is located. For non-standard setups, manually edit the generated config to specify the framework type.
Payments not being received after deployment
Verify the deployment is live with 'x402-deploy status' and that the custodial wallet address is correctly registered on x402scan.com. Check 'x402-deploy logs' for payment verification errors.
Frequently Asked Questions about x402 Deploy
What is x402 Deploy?
x402 Deploy is a Model Context Protocol (MCP) server that turn any api or mcp server into a paid service with x402 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install x402 Deploy?
Follow the installation instructions on the x402 Deploy GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with x402 Deploy?
x402 Deploy works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is x402 Deploy free to use?
Yes, x402 Deploy is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
x402 Deploy Alternatives — Similar Finance & Fintech Servers
Looking for alternatives to x402 Deploy? Here are other popular finance & fintech servers you can use with Claude, Cursor, and VS Code.
ValueCell
★ 10.7kValueCell is a community-driven, multi-agent platform for financial applications.
Vibe Trading
★ 8.1k'Vibe-Trading: Your Personal Trading Agent'
Quantdinger
★ 6.2kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
TradingView
★ 2.8kReal-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick patterns + native Claude Desktop integration. Multi-exchange (Binance, KuCoin, Bybit+). Open-source AI trading infrastructure.
Financial Datasets
★ 2.1kProvides access to comprehensive financial data including income statements, balance sheets, cash flow statements, stock prices, company news, SEC filings, and cryptocurrency information with built-in financial ratio analysis.
Stripe
★ 1.6kThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.
Browse More Finance & Fintech MCP Servers
Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up x402 Deploy in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use x402 Deploy?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.