JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81
  • Score
    100M100P100Q93460F
  • 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 πŸ‹

Give your AI agent a USDC wallet. Pay-per-call any API. One signature, 90 days, done.

npm downloads Glama score MCP Registry Non-custodial FSA-confirmed


⚑ Try in 30 seconds β€” no signup, no API key

1. 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"]
    }
  }
}

2. Restart Claude Desktop.

3. Ask Claude:

"list the services available in lemon"

or

"use lemon to search Wikipedia for AI agents"

That's it. Demo Mode runs against real Wikipedia, real FX rate, and real httpbin APIs. No credentials, no USDC, no signup.


πŸ’³ Unlock paid services β€” 90-second setup, no JWT, no API key

Demo Mode is fully functional but limited. To unlock Serper (Google search), Hunter.io (verified emails), gBizINFO (JP corporate data), NTA invoice verification, and 20+ more:

  1. Open lemoncake.xyz/start/v2
  2. Sign in with Google (Privy creates an embedded wallet β€” keys stay on your device)
  3. Get USDC: Apple Pay / Google Pay / Coinbase / JPY bank transfer (built in, 30 sec)
  4. Sign one ERC-2612 permit β€” "up to $25/day, valid 90 days". One click. No gas.
  5. Copy the resulting LEMON_CAKE_PERMIT blob

Then your MCP config becomes:

{
  "mcpServers": {
    "lemon": {
      "command": "npx",
      "args": ["-y", "agent-payment-mcp"],
      "env": {
        "LEMON_CAKE_PERMIT": "<paste the permit blob here>"
      }
    }
  }
}

After that, every API call settles directly from your wallet to the API provider with no signing prompts for 90 days. LemonCake's address never appears in the transaction path.


Why ERC-2612 permit beats Pay Token JWT

We retired the old JWT-based "Pay Token" in v0.7. The current permit-based flow is strictly better:

Old (Pay Token JWT) New (ERC-2612 permit)
Signup Required Required only for paid services
Custody LemonCake held your USDC You hold your USDC
Signature count Every top-up Once per 90 days
Revoke Dashboard β†’ API call Spend the daily cap, expire naturally, or revoke on-chain
FSA registration Required Not required (confirmed Q11)
Reach Japan-friendly Same

Lost permit blob = bounded loss (≀ $25/day until you revoke or it expires). The agent literally cannot spend more than the cap encoded in the on-chain signature.


What an agent can do with it

Agent (Claude Desktop, Cursor, Cline, any MCP client)
  β”‚
  β”œβ”€ list_services()          β†’ browse LemonCake API marketplace
  β”œβ”€ check_balance()          β†’ see your USDC balance + permit expiry
  β”œβ”€ call_service(...)        β†’ pay-per-call any HTTP API
  β”‚   β”œβ”€β”€ demo_search         (Wikipedia, free)
  β”‚   β”œβ”€β”€ demo_fx             (live FX rates, free)
  β”‚   β”œβ”€β”€ demo_echo           (httpbin, free)
  β”‚   β”œβ”€β”€ serper              (Google search, $0.005)
  β”‚   β”œβ”€β”€ hunter              (verified emails, $0.05)
  β”‚   β”œβ”€β”€ gbizinfo            (JP company registry, $0.01)
  β”‚   β”œβ”€β”€ nta_invoice         (JP tax invoice verify, $0.005)
  β”‚   └── …more added monthly
  └─ check_tax(taxid)         β†’ verify a JP T-number (free)

For developers building MCP servers

Want to monetize your own MCP server? Add USDC pay-per-call billing in 3 lines with @lemon-cake/mcp-sdk:

import { withPayment } from "@lemon-cake/mcp-sdk";

server.tool("my_premium_tool", withPayment({ price: 0.01 }, async (args) => {
  // your existing tool logic
  return { content: [{ type: "text", text: "result" }] };
}));

Self-service registration at lemoncake.xyz/sellers:

  • Enter your name, email, and Base wallet address
  • Get a serviceId instantly
  • Set your price per call (min $0.001)
  • First 1,000 calls/month are free β€” Pattern 4 metering
  • Above the free tier: $0.005/call default (you choose)
  • USDC settles directly to your wallet on every call

No Stripe setup, no KYC on your side, no platform middleman holding your revenue.


Why this is FSA-compliant (and global-compliant)

The 2026-05-21 reply from Japan's FSA Fintech Support Desk (Q11) confirmed that a pure SDK distribution model where:

  • LemonCake never touches user USDC
  • LemonCake never operates the smart contract
  • All payments settle directly from user wallet β†’ provider wallet

…does NOT require the "electronic payment means management" registration.

The same architecture is registration-exempt under:

Jurisdiction Reasoning
πŸ‡ΊπŸ‡Έ USA FinCEN 2019 guidance Β§4.5 β€” non-custodial software is not a money services business
πŸ‡ͺπŸ‡Ί 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

See lemoncake.xyz/security for the full posture.


Security

Audited May 2026 by @kleosr. All critical and high-severity findings fixed in v0.7+. See GitHub Security Advisories for details.

Built-in protections:

  • On-chain hard cap β€” agent cannot exceed the daily cap baked into the permit signature
  • No private keys in the MCP server β€” permit signature is mathematically scope-limited
  • Auto-revoke on expiry β€” permits self-destruct after 90 days
  • Idempotency keys required on paid calls (no double-charges on retries)
  • Real-time quota check on the metering API

Try it (no signup) Add the config above and ask Claude
Unlock paid services lemoncake.xyz/start/v2
Publish your API lemoncake.xyz/sellers
Source code github.com/evidai/agent-payment-mcp
SDK for sellers @lemon-cake/mcp-sdk
MCP Registry registry.modelcontextprotocol.io
Discord #showcase in MCP Discord
License MIT

Other LemonCake MCPs (Demo Mode all work the same way)

All built on @lemon-cake/mcp-sdk.