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. Hard daily cap the agent can't override.
β‘ 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 with a mock $1.00 USDC balance against real Wikipedia, real FX rate, and real httpbin APIs. No credentials needed.
Unlock paid services (free signup)
Demo Mode is real but limited. To use Serper (Google search), Hunter.io (verified emails), gBizINFO (JP corporate data), NTA invoice verification, and more β get a free Pay Token:
- Sign up at lemoncake.xyz/start (Google login, 30 sec)
- Issue a Pay Token from the dashboard
- Add it to the MCP config:
{
"mcpServers": {
"lemon": {
"command": "npx",
"args": ["-y", "agent-payment-mcp"],
"env": {
"LEMON_CAKE_PAY_TOKEN": "eyJ...",
"LEMON_CAKE_BUYER_JWT": "eyJ..."
}
}
}
}USDC top-up minimum: $5. Per-call pricing: $0.005β$0.05 depending on service.
Why "Pay Token"?
A Pay Token is a scoped JWT spend credential:
- π° Hard daily cap β agent literally cannot exceed it (enforced server-side, not in the JWT body the agent can see).
- πͺ Kill switch β revoke any token instantly via dashboard. Already-issued tokens stop working in <1 second.
- π― Scope-limited β token can be
ALL servicesor a single service ID. - π§Ύ x402-compatible receipts β every charge produces a verifiable on-chain receipt.
This is the opposite of giving your agent an API key. Lost key = stolen wallet. Lost Pay Token = bounded loss + instant revoke.
What an agent can do with it
Agent (Claude Desktop, Cursor, Cline, any MCP client)
β
ββ list_services() β browse LemonCake API marketplace
ββ check_balance() β see remaining USDC
ββ 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" }] };
}));Buyer funds their USDC wallet β agent invokes your tool β LemonCake handles billing β you collect. No Stripe setup, no KYC on your side.
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:
- Server-side hard spend cap (agent cannot raise from inside a tool call)
- Kill switch (instant token revocation)
- Timing-safe HMAC signature verification on all webhooks
- Idempotency keys required on paid calls (no double-charges on retries)
- Buyer suspension enforced in auth middleware
Links
| Dashboard | lemoncake.xyz/start |
| Docs | 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)
- alpaca-guard-mcp β Alpaca paper trading with hard USD cap
- xstocks-mcp β Buy tokenized stocks (AAPLx, TSLAx, etc.) on Solana with USDC
- tokenized-stock-mcp β Buy Dinari dShares with USDC
All built on @lemon-cake/mcp-sdk.