# "Build MCP business for vibe coder"
<!--
ref: @content/youtube/ai-jason/2025-05-20-build-mcp-business-for-vibe-coder
triggers: [want to monetize an MCP, need a payment system for usage-based billing, looking for authentication solutions for multiple clients]
trigger_prompt: When a developer aims to turn their MCP server into a paid product and needs guidance on integrating payment and authentication systems.
version: 4
updated_at: 2026-10-31T19:06:33.575Z
-->

From AI Jason, 2025-05-20: MCP servers are the fastest way for domain experts to productize AI agent capabilities, but today's distribution is broken: local setup, manual API keys, and friction-heavy onboarding mean only existing product users ever adopt them.

AI Jason walks through the full stack for turning a Model Context Protocol (MCP) server into a paid, self-serve product — combining Cloudflare, Stripe's Agent SDK, and Supabase auth.

## Core Thesis
MCP servers are the fastest way for domain experts to productize AI agent capabilities, but today's distribution is broken: local setup, manual API keys, and friction-heavy onboarding mean only existing product users ever adopt them. With Stripe's new Agent Toolkit, Cloudflare's `PaidMCPAgent` class, and an OAuth + OTP auth layer, a single developer can ship a monetized MCP that captures email, prompts for payment inline, and bills by usage — closing the loop from discovery to revenue without a traditional SaaS funnel.

## Key Insights
- **MCP monetization is a two-part problem**: a payment system tied to usage, and an authentication layer that works across multiple MCP clients (Cursor, Claude, etc.).
- **Stripe's `PaidMCPAgent`** extends Cloudflare's base MCP agent — attaching a `priceId` and `paymentReason` to any tool is enough to gate it behind one-off, subscription, or metered billing.
- **Usage-based pricing fits MCPs best** because per-call costs vary with the underlying model; Stripe Meters enable tiered pricing (e.g., 5 free → $1/30 credits → $10/500 credits → $0.001 overage).
- **OAuth is non-negotiable**: MCP servers are designed to be consumed by many clients, so Cloudflare's `OAuthProvider` + the `mcp-remote` package handle the login-prompt UX inside Cursor.
- **Observability before pricing**: tools like Helicone let you inspect per-user burn rates and cache repeated prompts before committing to a price point.
- **OTP beats magic links** for email deliverability — 6-digit codes avoid spam filters that trap link-based auth.

## Actionable Takeaways
1. **Bootstrap fast**: `create cloudflare` → pick the `cloudflare-ai/demo-remote-mcp` template → edit `src/index.ts` to define tools.
2. **Monetize an existing tool** by swapping the base class for `PaidMCPAgent` and adding `priceId` + `paymentReason` to each tool definition.
3. **For metered billing**, create a Stripe Meter first, then reference its event name in the line item config so invoices calculate dynamically.
4. **Ship auth with Supabase**: drop URL/anon key/service role into `.dev.vars`, add `supabase.ts` (send/verify OTP) and `session.ts` (`storeSessions`/`getSessions`), then replace the mock `/authorize` handler in `app.ts`.
5. **Instrument before you price** — wire Helicone or Hatacon to watch per-user/per-endpoint spend and run prompt experiments.
6. **Distribution flow for Cursor**: users add `npx mcp-remote <URL>`; browser opens for OTP sign-in; paid tools surface the Stripe payment link inline on first use.

## Notable Quotes
> "Anyone who has domain knowledge can actually build MCP to help agent complete specific tasks and distribute to hundreds of thousands of people."

> "The more user use your MCP and find value, the more they will be charged."

> "How will you know if your pricing strategy for your large model product actually makes sense or if users are secretly burning through your API budgets?"

> "For MCP, we need to use OAuth because... it is designed to be used in multiple different clients."

> "One-time password... I found has best email deliverability so I don't need to worry about those emails going to users like spam sandbox."

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*