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.
🍋 LemonCake — agent-payment-mcp
Let your AI agent pay for any API — capped, no account.
Give your agent a spend-capped prepaid wallet and it pays for paid APIs on its own. Discover → pay → pass through. No per-call key, no human in the loop, and it can't exceed your cap. First 3,000 calls free, then 3%. Seller gets 97%. LemonCake never holds your funds.
👁 npm
👁 downloads
👁 Glama score
👁 MCP Registry
👁 x402
👁 FSA-confirmed
👁 pricing
💰 No monthly fee. First 3,000 calls free (lifetime). Then 3% only when your API earns. See pricing →
⚡ Try in 30 seconds — no signup
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (or Cursor / Cline):
{
"mcpServers": {
"lemon": {
"command": "npx",
"args": ["-y", "agent-payment-mcp"]
}
}
}Restart, then ask:
"use lemon to translate 'Hello, agent payments' to Japanese"
Zero env vars. Zero signup. Zero credit card. Demo Mode activates automatically.
🎁 8 free demo tools (real APIs, no auth)
Tool | What it does | Upstream |
🔍 | Search Wikipedia (5 results + URLs) | en.wikipedia.org |
💱 | Live FX rates (160+ currencies) | 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 | dictionaryapi.dev |
🔁 | HTTP echo (request inspector) | httpbin.org |
💳 How agents pay for APIs (x402 autonomous payment)
LemonCake speaks x402 — the HTTP 402 payment protocol for AI agents.
Agent → POST /g/<endpoint>
↓
402 + accepts[] { pricePerCall, buyUrl, mintUrl }
↓
Agent mints a Pay Token (off-session, capped wallet)
↓
Bearer <jwt> → gateway → your APISeller registers any HTTP API at lemoncake.xyz/app and sets a price per call
Buyer prepays via card → Pay Token (JWT) issued automatically
Agent passes
Authorization: Bearer <token>— gateway verifies, meters, forwardsBudget exhausted → gateway returns
402 + accepts[]so agents can self-fund
🤖 Agent autonomous top-up (Agent Funding API)
For fully autonomous operation with no human per-session:
Issue a Buyer Key (
bk_...) in the Pay Tokens pane at /appSave a card once at /agent/fund
Agent uses
bk_to mint/top-up Pay Tokens off-session — hard-capped per your limits
Agent → POST /api/lc/agent/tokens (Bearer bk_...)
→ off-session card charge → Pay Token issued
→ Bearer <jwt> → gateway → pass throughCaps enforced server-side: per-mint / daily / monthly. Cannot overspend.
🏪 Publish your own API (for sellers)
Monetize any HTTP API or MCP server in minutes:
Sign in at lemoncake.xyz/app
Add API → paste your URL, set price per call
Share the buy link — buyers prepay with a card, Pay Token issued automatically
You keep 97%. LemonCake takes 3% once at checkout. Never holds funds (Stripe Connect Direct Charge).
// Your tool code is unchanged — LemonCake sits in front as a gateway
class MyTool extends MCPTool {
// existing logic — no SDK required
}
// Route traffic through: https://lemoncake.xyz/g/<shortId>🌍 Compliance — registration not required in 7 jurisdictions
Japan FSA Fintech Support Desk (2026-06) confirmed: no electronic payment means management registration required. LemonCake never holds funds (Stripe Connect Direct Charge, custody-free).
Jurisdiction | Basis |
🇯🇵 Japan | FSA confirmed — registration not required |
🇺🇸 USA | FinCEN 2019 §4.5 — non-custodial software ≠ MSB |
🇪🇺 EU | MiCA — non-CASP |
🇬🇧 UK | FCA — Tech Service Provider |
🇸🇬 Singapore | MAS — DPT non-applicable |
🇨🇦 Canada | FINTRAC — non-custodial exemption |
🇨🇭 Switzerland | FINMA — non-financial intermediary |
Full posture: lemoncake.xyz/security
🔌 The LemonCake family
Package | Use |
Main MCP — x402 gateway + agent payment rail (this one) | |
SDK to monetize your own MCP server | |
Buy tokenized US stocks on Solana | |
Alpaca paper / live trading with hard USD cap | |
Dinari dShares |
🛡 Security
Server-side hard caps — per-mint / daily / monthly limits enforced on the server. Cannot be exceeded.
Pay Token = JWT — signed HS256, verified on every gateway call. Not a blockchain asset.
No private keys in the MCP server — Buyer Key (
bk_) has hashed secret, PM reference only (no raw card data).Stripe Connect Direct Charge — funds go seller-direct. LemonCake never holds USDC or fiat.
RLS on all DB tables,
upstream_authnever returned in API responses.
Links
Try demo |
|
Seller dashboard | |
Agent card setup | |
Docs | |
Source | |
MCP Registry | |
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
