JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81
  • Score
    100M100P100Q93458F
  • License MIT

Stripe-style drop-in USDC billing for any HTTP API or MCP. 8 free real-API demo services (search / translate / weather / geocode / time / dictionary / fx / echo) work instantly with zero signup, zero env vars. Upgrade to paid services with one ERC-2612 permit (90 days, on-chain $25/day cap). Non-custodial β€” your USDC never touches LemonCake. x402-compatible.

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.

npm downloads Glama score MCP Registry non-custodial x402 FSA-confirmed


⚑ 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:

  1. Open lemoncake.xyz/start/v2
  2. Google sign-in (Privy embedded wallet β€” keys stay on your device)
  3. Sign ONE ERC-2612 permit β€” $25/day cap, 90 days, gas-free
  4. Copy the LEMON_CAKE_PERMIT blob
  5. 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 serviceId instantly
  • 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.

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