π LemonCake β drop-in USDC billing for any API Β· monetize in 1 line Β· x402 + MCP
lemon-cake-mcp is an MCP server that gives AI agents a USDC wallet to autonomously discover, pay for, and call premium HTTP APIs without human intervention.
Setup guidance (
setup): Detects missing credentials and provides step-by-step onboarding instructions, including a ready-to-paste MCP config snippet for obtaining a Buyer JWT and Pay Token.Discover APIs (
list_services): Browse the LemonCake marketplace for approved paid API/MCP services, including their IDs, providers, types, per-call USDC pricing, and endpoints.Call paid services (
call_service): Invoke any upstream API through LemonCake's pay-per-call proxy, automatically charging USDC per successful call. Supports GET/POST/PUT/PATCH/DELETE, custom sub-paths, JSON bodies, and idempotency keys for safe retries without double-charging.Check account balance (
check_balance): View your current USDC balance, KYC/KYA tier, and account info to confirm sufficient funds before making calls.Japanese tax compliance (
check_tax): Validate a Japanese qualified-invoice (γ€γ³γγ€γΉ) registration number against the NTA registry, determine if source-withholding (ζΊζ³εΎ΄ε) applies, and calculate withholding amounts and net payable.Marketplace usage stats (
get_service_stats): Access public usage statistics (call counts, total USDC revenue, last-called timestamps) to help choose the best service.Demo mode: Run without any credentials to explore demo services (
demo_search,demo_echo,demo_fx) with canned responses and a mock $1.00 balance β no signup required.
Allows AI agents to search and retrieve content from Wikipedia via a pay-per-call API proxy, with USDC-based billing and no manual authentication.
agent-payment-mcp π
Stripe-style drop-in USDC billing for any HTTP API. Try in 5 seconds, zero signup.
π° No monthly fee. Pay 3% only when your API earns. 3,000 calls free. See pricing β
β‘ Try in 5 seconds
Easiest β Glama Playground (no install)
π Hit "Try in Browser" at the top of this page. Demo Mode starts instantly, no env vars needed.
Claude Desktop / Cursor / Cline
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (or your Cursor / Cline MCP config):
{
"mcpServers": {
"lemon": {
"command": "npx",
"args": ["-y", "agent-payment-mcp"]
}
}
}Restart, then ask:
"use lemon to translate 'Hello, agent payments' to Japanese"
or
"use lemon to get current weather in Akihabara"
Zero env vars. Zero signup. Zero credit card. Demo Mode activates automatically.
π 8 free demo tools (real APIs, no auth)
All powered by real free upstreams. Useful enough that many users never need to upgrade.
Tool | What it does | Upstream |
π | Search Wikipedia (5 results + URLs) | en.wikipedia.org |
π± | Live FX rates (160+ currencies, USD base) | open.er-api.com |
π | Translate 80+ languages | MyMemory |
π€ | Current weather for any lat/lon | Open-Meteo |
π | Place name β coordinates | OpenStreetMap Nominatim |
π | Current time + DST for any IANA timezone | worldtimeapi |
π | English definitions / synonyms / phonetics | dictionaryapi.dev |
π | HTTP echo (request inspector) | httpbin.org |
Plus check_tax β live Japanese ι©ζ Όθ«ζ±ζΈ (T+13) validation against ε½η¨εΊ. No other LLM can do this without hallucinating.
Compose them: demo_geocode β demo_weather ("weather in Tokyo"), demo_translate β demo_dictionary, etc.
π vs Stripe (when you go live)
Stripe | LemonCake | |
Min charge | $0.30+ | $0.001 (60Γ cheaper) |
Settlement | 2β7 days | 2 seconds (Base L2) |
Chargeback | Possible | Impossible (USDC) |
Global | Card-network dependent | USDC works everywhere |
Setup | Stripe account + KYB | One signature (90 days) |
Custody | Stripe holds | You hold (non-custodial) |
Reg burden | PCI / chargeback ops | FSA Q11-confirmed exempt |
π³ Unlock paid services β when you need more
Need Serper (Google search) / Hunter.io (verified emails) / Tavily / Firecrawl / gBizINFO (JP corporate registry)? One 90-day signature unlocks all of them:
Google sign-in (Privy embedded wallet β keys stay on your device)
Sign ONE ERC-2612 permit β
$25/day cap, 90 days, gas-freeCopy the
LEMON_CAKE_PERMITblobAdd to your MCP config:
{
"mcpServers": {
"lemon": {
"command": "npx",
"args": ["-y", "agent-payment-mcp"],
"env": { "LEMON_CAKE_PERMIT": "<paste the permit blob>" }
}
}
}That's it. Every API call settles directly from your wallet to the provider on Base. LemonCake never touches your USDC.
πͺ Publish your own API (for sellers)
Want to monetize your MCP / HTTP API? Self-service registration at lemoncake.xyz/sellers:
1-minute signup (name / email / Base wallet address β no KYC)
Get a
serviceIdinstantlyNo monthly fee, 3% only when your API earns (Launch Plan)
Pricing: you set the price, LemonCake takes 3% Monetization fee on revenue
USDC settles directly to your wallet on every call
Add billing in 3 lines:
import { x402Hono } from "@lemon-cake/x402-server";
app.use("/api/search", x402Hono({
serviceId: "your-providerV2-id",
pricePerCallUsd: 0.001,
facilitator: "both", // Coinbase Bazaar + LemonCake metering
}));Hybrid facilitator: "both" mode β settle through Coinbase CDP for x402 Bazaar / AWS Bedrock AgentCore discoverability, while LemonCake records the call for freee/MF auto-journal + ι©ζ Όθ«ζ±ζΈ + JPY off-ramp (Pro plan).
π Compliance β registration-exempt in 7 jurisdictions
The 2026-05-21 ruling from Japan's FSA Fintech Support Desk (Q11) confirmed that a pure non-custodial SDK model does NOT require the "electronic payment means management" registration.
Same architecture is exempt under:
Jurisdiction | Basis |
π―π΅ Japan | FSA Q11 β confirmed non-applicable |
πΊπΈ USA | FinCEN 2019 guidance Β§4.5 β non-custodial software β MSB |
πͺπΊ EU | MiCA β non-CASP (non-custodial wallet software) |
π¬π§ UK | FCA β Tech Service Provider |
πΈπ¬ Singapore | MAS β DPT non-applicable |
π¨π¦ Canada | FINTRAC β non-custodial MSB exemption |
π¨π Switzerland | FINMA β non-financial intermediary |
Full posture: lemoncake.xyz/security.
π The LemonCake family
Package | Use |
Main MCP β pay-per-call any HTTP API (this one) | |
HTTP 402 middleware for sellers (Express / Hono) | |
SDK to monetize your own MCP server | |
Buy tokenized US stocks (AAPLx, TSLAx, β¦) on Solana | |
Alpaca paper / live trading with hard USD cap | |
Dinari dShares in USDC | |
Polymarket prediction markets |
π‘ Security
On-chain hard cap β the daily $25 limit is enforced by the USDC contract itself. The agent literally cannot exceed it.
No private keys in the MCP server β the permit blob is a scope-limited EIP-712 signature.
Auto-revoke on expiry β permits self-destruct after 90 days.
Idempotency keys required on paid calls (no double-charges on retries).
Audited May 2026 by @kleosr. See security advisories.
Links
Try it (no signup) | "Try in Browser" button above, or |
Get a permit (paid services) | |
Publish your API | |
Source | |
MCP Registry | |
Discord | |
License | MIT |
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/evidai/lemon-cake'
If you have feedback or need assistance with the MCP directory API, please join our Discord server