The safe monetization layer for MCP servers and APIs · Open corePrivate Beta

Monetize MCP servers
and APIs in 5 minutes.

Paste your URL, set a per-call price, and share a buy link. Buyers prepay by card; agents call with spend-capped Pay Tokens.

Live today: x402 gateway / Stripe-backed Pay Token / spend caps / usage ledger. No crypto wallet. First 3,000 calls free, then 3%. Sellers keep 97%.

97%
Seller keeps
3,000
Free calls
0
Crypto wallets
LemonCake — AI agent payment infrastructure
tool-server.ts
import { createLemonCakeSDK } from "@lemon-cake/mcp-sdk";

const lc = createLemonCakeSDK(); // demo mode without env vars

// HTTP route — one line.
app.use(lc.protect("/api/search", { cost: 0.02 }));

// Or an MCP tool — same idea.
server.tool("search", lc.charge({ price: 0.02 }), handler);

Drop-in MCP middleware. Works with any MCP SDK. Free for your first 3,000 calls.

Getting started

Just three things to do.

You can start without writing code. Five minutes on the timer is plenty.

STEP 1

1 min

Connect

Already have an API / MCP? Just paste the URL — zero code changes.or build from scratch$ npx create-lemon-mcp
STEP 2

1 min

Set a price

Pick a per-call price with a slider. Sub-cent from $0.005 is fine. Change it anytime.
STEP 3

3 min

Share the buy link

Paste the generated buy link into your README or on X. Once a buyer prepays by card, you have revenue.

5 minutes total. After that, agents come and pay on their own.

How it works

Watch every cent move.

Buyer prepays → agent spends within the cap → 97% lands with you. That's the whole model.

① Buyer prepays by card

Pay Token

cap $5.00 · 500 calls · expires

② Agent pays per call

AgentLemonCake GatewayYour API

③ Revenue splits automatically. Spending stops when the budget does

97% to you (Stripe direct payout)
3%
budget zero → auto-stop with 402

You change one URL (or one SDK line). Pay Token verification, rate limiting, usage metering, and Stripe payouts — everything in the middle is handled by LemonCake.

What is a Pay Token?

What you hand the agent is
a capped prepaid card.

Not a credit-card number, not an API key — a single-use Pay Token. The cap, expiry, and scope are baked into the card itself, and the moment it's exceeded everything stops with a 402 — no exceptions.

  • Hard capA $5 card can never spend $5.01. No approvals, no monitoring required from you.

  • ExpiryExpired cards revoke themselves. A forgotten card can never become an incident.

  • ScopeLocked to the endpoint you specify. Worth nothing anywhere else.

  • Instant revokeOne click in the dashboard. The very next call is rejected.

Pay Token

lc_pay •••• •••• 8f3a

balance $3.18 / $5.00318 calls left

Holder

research-agent-01

Scope

/api/search only

Exp

07 / 26

Why developers use LemonCake

Built for the things
payment infra makes annoying.

Six things you stop worrying about after wiring up LemonCake.

Usage-based billing

Charge per tool call, per token, per outcome. Sub-cent micro-payments work natively — no minimum transaction size, no Stripe-style $0.30 floor.

AI agent payments

Agents pay your endpoint directly with one-time spend caps. No human in the loop, no API-key sharing, no "reset my credentials" support tickets.

No API-key management

Stop issuing, rotating, and revoking keys. Buyers authenticate once at install time; you never touch their secrets.

Stripe-backed payout

Buyers fund Pay Tokens by card. Sellers receive payouts through Stripe Connect Direct Charge; LemonCake never pools customer funds.

Agent identity

Every agent gets an ID, a budget, and a usage history. If one goes rogue, pause / revoke stops just that agent — even with balance remaining.

MCP-native

Drop-in middleware for any MCP server. Scaffold with npx create-lemon-mcp. Auto-listing on Glama + Smithery + mcp.so and more.

The billing stack today

Stripe is for humans. Orb & Metronome are for SaaS.
LemonCake is for AI.

Existing billing infra assumes a human swipes a card and an org renews a seat. AI APIs charge sub-cent per call to a non-human caller. Different shape — different stack.

StripeOrb / MetronomeLemonCake
Meter + invoice + pay in one SDKPay onlyMeter + invoice (pay via Stripe)Yes
AI agent as buyerCard-onlyOrg-billed onlyNative
Sub-cent per call$0.30 effective floorAllowed, but Stripe-billed$0.005
MCP / agent middlewareDrop-in
No API-key managementKeys still requiredKeys still requiredEmbedded auth
Free tierStripe rates applyEnterprise tiersFirst 3,000 calls free, then 3%
Open-source SDKClosedClosedMIT
Setup timeConnect onboardingImplementation engineerPaste a URL and publish

We don't replace Stripe for human checkout. We're the stack you want when the buyer is an AI agent.

Try the math

What would your API earn?

Drag the sliders. We compare LemonCake against running the same per-call billing on Stripe.

LemonCake

$971

Your take / month

LemonCake fee (3%): $29.10First 3,000 calls are fee-free

The same thing on Stripe…

-$29,029

Take / month

Stripe fee (2.9% + $0.30/charge): $30,029$0.29 per callLoses money on every call — sub-cent pricing is structurally impossible

Not just billing — abuse prevention

We block runaway agents.
Before they cost you anything.

Pay Token spend caps + rate limits are checked at the gateway. A misbehaving agent in an infinite loop hits the wall instantly — your API never sees the request, your AWS bill never moves. The blocked-request feed in your dashboard shows you what we caught.

Blocked request feed (sample)
14:21:08spend_cap_exceeded$12.40
14:19:55rate_limit_exceeded$0.78
14:15:02token_revoked$0.04
14:11:30spend_cap_exceeded$8.20

Sample data — see your live feed under Blocked requests in the dashboard.

Coming Q3 2026 · Early access

Margin dashboard.

AI cost vs. revenue per agent, per endpoint, per token. Catch margin leaks before they compound. The metric Stripe / Orb / Metronome don't natively show — because their buyers don't have $0.50 of OpenAI cost behind every $0.05 of revenue. Yours do.

Join early access →

Open core, like Supabase & Clerk

Fork the SDK.
Let us host the boring stuff.

Pure-OSS billing infra dies the moment funding does. Pure-SaaS billing infra is lock-in by design. Open core is the only honest middle: MIT-licensed SDK + hosted execution. If we vanish, your integration keeps working.

Open · MIT

What you can fork

  • @lemon-cake/mcp-sdk
  • @lemon-cake/x402-server
  • agent-payment-mcp
  • examples/* (starter templates)
  • MCP adapters (Claude / Cursor / LangChain)
  • All docs and migration guides
Hosted

What we run as a service

  • Billing engine (settlement, ledger)
  • Revenue routing & payout logic
  • Dashboard (analytics, payouts, abuse)
  • Compliance (tax, invoicing, reporting)
  • Fraud / abuse detection
  • Hosted gateway & uptime SLA

MIT · Supabase / Clerk / Resend pattern · 5 production MCPs published

Safety rails

Kill switch

One-click revoke on the dashboard, plus per-agent pause / revoke. Subsequent charges are rejected immediately.

Tiered limits (KYA)

$10/day default → $1k/day with Know-Your-Agent → $50k/day with full KYC.

Sandbox mode

Issue test tokens that match production behavior without moving real funds. Live demo →

FAQ

Frequently asked questions

What is LemonCake?

LemonCake is a usage-based billing and monetization layer for AI APIs and MCP servers. You add one URL prefix (or a one-line SDK call) and your endpoint becomes a paid API — metering, Pay Token verification, rate limiting, abuse prevention, and payout all handled for you. It's open core: the SDK is MIT-licensed, the billing engine is hosted.

How much does LemonCake cost?

There is no monthly fee. Your first 3,000 API calls are free — a one-time allowance per seller account, not a monthly reset. After that, you pay 3% only when your AI API actually earns — 97% goes to you. Gateway, Pay Token issuance, spend limits, and usage metering are all included.

How is LemonCake different from Stripe, Orb, or Metronome?

Stripe is built for a human swiping a card, with a ~$0.30 effective floor that breaks sub-cent pricing. Orb and Metronome meter and invoice but still settle through Stripe. LemonCake collapses meter + invoice + pay into one SDK and treats the AI agent as a first-class buyer, so you can charge $0.005 per call to a non-human caller.

What is a Pay Token?

A Pay Token is a spend-limited credential a buyer hands to your API. It carries a hard spending cap, expiry, and scope. The gateway checks it on every call, so a runaway or abusive agent hits the cap and is blocked before your API — or your cloud bill — ever sees the request.

Can AI agents pay my API directly?

Yes. Agents pay your endpoint directly with one-time spend caps — no human in the loop, no API-key sharing, and no "reset my credentials" support tickets. This is the AI-native use case LemonCake is built for.

Do my buyers need a crypto wallet?

No. Buyers pay with a card through Stripe and receive a spend-capped Pay Token. There is no blockchain wallet, no seed phrase, and no crypto onboarding for either side.

Is LemonCake open source?

It's open core, like Supabase, Clerk, and Resend. The SDK (@lemon-cake/mcp-sdk, @lemon-cake/x402-server, agent-payment-mcp) and all MCP adapters are MIT-licensed on npm and GitHub. The hosted billing engine, dashboard, compliance, and abuse detection run as a service. If we vanish, your integration keeps working.

Does LemonCake work with MCP servers?

Yes — it is drop-in middleware for any MCP server and works with any MCP SDK. The buyer-side MCP also ships free demo tools, so agents can try the payment flow before sellers connect a real API.

LemonCake

Launch Plan · Private Beta

Let your AI agent
pay for any API.

A spend-capped Pay Token your agent pays with — no crypto wallet, no per-call key. First 3,000 calls free, then 3%. Custody-free; you keep 97%.

No credit card. Sign in with email, Google, or GitHub — you’re live right away.