Home / Use cases / sell-mcp-server

Sell access to your MCP server — distribute via npm

The problem

You spent a weekend building a useful MCP server. Maybe a few hundred installs. Zero revenue, because there is no way to monetize an MCP that does not break the install UX.

What Spawnpay does

Wrap your tool handlers with @spawnpay/paywall. Set a price, set a vendor code. Publish to npm or release as a tarball. First time the agent invokes a tool, the user gets a $7 credit, then pays USDC per call. You keep 99.5%, settled on-chain hourly.

Code

// In your MCP server
import { paywall } from 'spawnpay-paywall';

server.tool('search_my_index', /* schema */, paywall(
  { price: 0.01, vendor: 'SP_yourCode', description: 'Search the proprietary index' },
  async ({ q }) => myIndex.search(q)
));
60-SEC QUICKSTART → PLAYGROUND → TOP UP USDC →

What you get with $7 free credit

Every new spk_ wallet starts with $7. That covers 7,000 proxy calls, 1,400 cloud-scrapes, or 700 screenshots — enough to verify Spawnpay fits your workflow before topping up.

See also