Home / Use cases / monetize-claude-code-mcp

Charge Claude Code users for your MCP server — two lines

The problem

You built an MCP server. It works. People install it. You make zero. Stripe wants 7 pages of compliance and a card form in the middle of a CLI flow.

What Spawnpay does

Wrap any async tool function in @spawnpay/paywall. Per-call USDC charge, no card forms, agent pays automatically the first time it runs. You keep 99.5%. Distribute via npm or a release tarball — installation stays one command.

Code

import { paywall } from 'spawnpay-paywall';

export const fetchTweet = paywall(
  { price: 0.001, vendor: 'SP_yourCode' },
  async (id) => fetch(`https://api.fxtwitter.com/i/status/${id}`).then(r => r.json())
);
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