USDC micropayments for AI agents. Pay-per-call any HTTP API. Kill switch + spend limits.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
The billing, budget & identity layer for software for agents. Private Beta Β· Open core
Monetize any MCP/API in minutes, and let AI agents pay for it safely β each agent gets a spend-capped identity (budget, usage, pause/revoke). Buyers pay by card; no crypto wallet. First 3,000 calls free (lifetime). Then 3% only when your API earns.
π Get started Β· π² Pricing Β· π Docs Β· π Live
βοΈ A real AI agent buys API calls by itself ($0.01 each), stops at its cap, and the API owner earns β no human, no crypto. Β· demo source
Monetizing an MCP/API? Start here β one command:
Pick your path:
| I want to⦠| Do this |
|---|---|
| Monetize my MCP/API (sellers) | npx create-lemon-mcp β add a Seller Key in /app to go live |
| Add billing to a server I already have | @lemon-cake/mcp-sdk β wrap a tool with lc.charge(), or route through the gateway (no code) |
| Let an agent pay for paid APIs (buyers) | npx -y agent-payment-mcp β 8 free demo tools, no signup |
Ask your agent to run list_demos / call_demo. To call paid APIs, set LC_PAY_TOKEN (get one at lemoncake.xyz/app).
LemonCake is an x402 payment rail for monetizing MCP servers and HTTP APIs. Sellers register an endpoint and set a price per call. Buyers prepay by card and receive a spend-capped Pay Token. Agents call the gateway with that token, and LemonCake verifies, meters, forwards, and records usage.
Sellers register any HTTP API and set a price per call. Buyers / agents prepay with a card β Pay Token issued automatically β agent calls the API within budget. Budget exhausted β 402 challenge β agent self-funds β continues. No humans.
| Layer | Status | Where |
|---|---|---|
Buyer-side MCP (agent-payment-mcp) | β MIT | npm, src |
Seller SDK (@lemon-cake/mcp-sdk) | β MIT | npm, src |
| Starter templates | β MIT | examples/ |
| Docs site | β Public | lemoncake.xyz/docs |
| Gateway + billing engine | π Hosted | lemoncake.xyz |
| Dashboard (analytics, usage ledger) | π Hosted | lemoncake.xyz/app |
lemoncake.xyz/buy/<shortId>)Authorization: Bearer <token> to the gatewaybk_...) at /app β Pay Tokens panePOST /api/lc/agent/tokens (Bearer bk_) β off-session card charge β JWTMonetize any HTTP API or MCP server:
$0.01)sk_live_β¦) to charge from your own serverScaffold a paid MCP in one command β sandbox by default, production with one env var:
Add billing to any tool with the SDK (@lemon-cake/mcp-sdk v1, no crypto):
lc.charge wraps the handler: preflight (reserve) β run β settle (confirm on success, refund on failure). Or route existing traffic through https://lemoncake.xyz/g/<shortId> β no code changes required.
Give each AI agent its own spend-capped identity β so a fleet can pay for APIs without a shared card or runaway cost. Built on top of Pay Tokens; no balance pool, custody-free (an agent's "budget" is just the Pay Tokens bound to it).
agentId) β spend is attributed to that agent.pause / resume / revoke an agent; bound tokens are rejected at the gateway instantly (AGENT_PAUSED / AGENT_REVOKED), even with budget remaining.accepts[] with price + mintUrlbk_...), no promptsnpx create-lemon-mcp, or lc.charge() on any tool, or route through the gatewayWWW-Authenticate: Lemoncake-PrepaidLemonCake is the middle box. It never holds funds β money flows Stripe β seller via Direct Charge.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-payment)<a href="https://allmcps.com/mcp/agent-payment"><img src="https://allmcps.com/api/badge/agent-payment?style=directory" alt="Agent Payment on AllMCPs" /></a>