x402 Express API Paywall

•
40k
•

Integrates machine-to-machine (M2M) paywalls into Node.js/Express APIs using USDC micropayments on the Base L2 network.

This skill enables developers to monetize API endpoints and Model Context Protocol (MCP) servers by implementing x402 paywalls. It provides an Express middleware that handles the verification of USDC payments via the M2MCent protocol on Base L2. By serving as a relayer, the server facilitates gasless transactions for the client while ensuring immediate settlement, making it ideal for building autonomous agent-driven micro-SaaS applications and monetized AI services where programmatic payment exchange is required.

Key Features

01Protocol locking for secure payment escrow management
02Native support for monetizing Model Context Protocol (MCP) servers
03Seamless Express.js middleware integration for API monetization
04Machine-to-machine (M2M) payment processing via USDC on Base L2
05Automated on-chain settlement through integrated relayer functionality
0640,494 GitHub stars

Use Cases

01Creating an autonomous micro-SaaS that requires no gas fees from the end-user
02Adding a per-request micropayment barrier to a premium AI inference API
03Monetizing a custom Model Context Protocol (MCP) server for Claude or other agents