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
agent-payment-mcp π
Stripe-style drop-in USDC billing for any HTTP API. Try in 5 seconds, zero signup.
β‘ 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 |
|---|---|---|
π demo_search |
Search Wikipedia (5 results + URLs) | en.wikipedia.org |
π± demo_fx |
Live FX rates (160+ currencies, USD base) | 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 / phonetics | dictionaryapi.dev |
π demo_echo |
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:
- Open lemoncake.xyz/start/v2
- Google sign-in (Privy embedded wallet β keys stay on your device)
- Sign ONE ERC-2612 permit β
$25/day cap, 90 days, gas-free - Copy the
LEMON_CAKE_PERMITblob - Add 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
serviceIdinstantly - First 1,000 calls / month free (LemonCake absorbs)
- Above: $0.001/call (you set the price, 100% to you)
- 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 |
|---|---|
agent-payment-mcp |
Main MCP β pay-per-call any HTTP API (this one) |
@lemon-cake/x402-server |
HTTP 402 middleware for sellers (Express / Hono) |
@lemon-cake/mcp-sdk |
SDK to monetize your own MCP server |
xstocks-mcp |
Buy tokenized US stocks (AAPLx, TSLAx, β¦) on Solana |
alpaca-guard-mcp |
Alpaca paper / live trading with hard USD cap |
tokenized-stock-mcp |
Dinari dShares in USDC |
polymarket-guard-mcp |
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 npx -y agent-payment-mcp |
| Get a permit (paid services) | lemoncake.xyz/start/v2 |
| Publish your API | lemoncake.xyz/sellers |
| Source | github.com/evidai/agent-payment-mcp |
| MCP Registry | registry.modelcontextprotocol.io |
| Discord | #showcase in MCP Discord |
| License | MIT |