Package Exports
- agent-payment-mcp
- agent-payment-mcp/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (agent-payment-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π 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.
π° 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 |
|---|---|---|
π demo_search |
Search Wikipedia (5 results + URLs) | en.wikipedia.org |
π± demo_fx |
Live FX rates (160+ currencies) | open.er-api.com |
π demo_translate |
Translate 80+ languages | MyMemory |
π€ demo_weather |
Current weather for any lat/lon | Open-Meteo |
π demo_geocode |
Place name β coordinates | OpenStreetMap Nominatim |
π demo_time |
Current time + DST for any IANA timezone | worldtimeapi |
π demo_dictionary |
English definitions / synonyms | dictionaryapi.dev |
π demo_echo |
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 API- Seller 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, forwards - Budget 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 /app - Save 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 |
|---|---|
agent-payment-mcp |
Main MCP β x402 gateway + agent payment rail (this one) |
@lemon-cake/mcp-sdk |
SDK to monetize your own MCP server |
xstocks-mcp |
Buy tokenized US stocks on Solana |
alpaca-guard-mcp |
Alpaca paper / live trading with hard USD cap |
tokenized-stock-mcp |
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 | npx -y agent-payment-mcp or lemoncake.xyz/demo |
| Seller dashboard | lemoncake.xyz/app |
| Agent card setup | lemoncake.xyz/agent/fund |
| Docs | lemoncake.xyz/docs |
| Source | github.com/evidai/agent-payment-mcp |
| MCP Registry | registry.modelcontextprotocol.io |
| License | MIT |