{"name":"dev.forgesworn/402-mcp","slug":"forgesworn-402-mcp","title":null,"description":"AI agents discover, pay for, and consume any Lightning-gated API autonomously","url":"https://mcp.market/server/forgesworn-402-mcp","rating":null,"grade":"B","score":82,"certified":false,"status":"active","category":"other","tags":[],"presence":{"score":29,"stars":0,"forks":0,"downloads_week":733,"last_push_at":"2026-09-24T15:51:17.000Z","license":"MIT"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/forgesworn/402-mcp","website":null,"version":"3.15.2","remotes":[],"packages":[{"registryType":"npm","identifier":"402-mcp","version":"3.15.2","transport":{"type":"stdio"},"environmentVariables":[{"description":"Nostr Wallet Connect URI for autonomous Lightning payments","format":"string","isSecret":true,"name":"NWC_URI"},{"description":"Maximum sats to auto-pay per request","format":"string","name":"MAX_AUTO_PAY_SATS"}]}],"tools":[{"name":"l402-balance","description":"Check cached credit balance for a server. Returns the last known balance from the credential store without making a network request. The \"stale\" flag is true if the balance was last updated more than 5 minutes ago.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-buy-credits","description":"Buy credits from a toll-booth server with volume discounts. Omit amountSats to discover available tiers. Provide amountSats to purchase a specific tier. Only works with toll-booth servers.","write_action":true,"price_micros":0,"input_schema":null},{"name":"l402-config","description":"Introspect the MCP's payment capabilities: which wallets are configured, spending limits, and stored credential count. Call this first to understand what payment methods are available.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-credentials","description":"List all stored L402 credentials. Shows origin, cached credit balance, and server type. Balance values are cached and may be stale; check lastUsed timestamp.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-discover","description":"Probe an endpoint to discover its L402 pricing without committing to payment. Returns the cost in sats, available payment methods, and credit tiers (if toll-booth server). The challenge is cached so a subsequent l402-pay can reuse it.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-fetch","description":"Fetch a URL with automatic payment handling (L402 Lightning + x402 on-chain). Manages credentials, pays automatically when autoPay is true and cost is within budget, and retries. For human wallets, returns a payment page URL or QR code. For x402 services, returns payment details (receiver address, network, asset, amount) — the user pays in their wallet and provides the transaction hash. Set autoPa","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-pay","description":"Confirm payment and store credentials. Call this after l402-fetch returns a 402 with a paymentHash — polls the payment server for settlement (up to 30s for human wallet), then stores the credential so the next l402-fetch succeeds. For human wallets, call this immediately after showing the payment URL to the user.","write_action":true,"price_micros":0,"input_schema":null},{"name":"l402-redeem-cashu","description":"Redeem Cashu ecash tokens directly on a toll-booth server, avoiding the Lightning round-trip. Handles the two-step flow automatically (create invoice then redeem token). Only works with toll-booth servers.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-search","description":"Search for paid APIs and services. Use this when the user wants something that might be available as a paid service — jokes, data, AI, content, etc. Discovers services announced on Nostr and returns their URLs, pricing, and capabilities. Then use l402-fetch with the URL to access the service.","write_action":false,"price_micros":0,"input_schema":null},{"name":"l402-store-token","description":"Store an L402 token (macaroon:preimage) obtained from a payment page. Use this when a user pastes back a token from a toll-booth payment page. The token is stored as a credential so subsequent l402-fetch calls are authenticated.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":82,"grade":"B","scanned_at":"2026-09-27T23:15:32.716Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-27T23:15:32.558Z","components":{"code":{"score":25,"max":25,"notes":["85 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":6,"max":15,"notes":["static API keys via environment variables"]},"maintenance":{"score":15,"max":15,"notes":["last push 3 days ago"]},"identity":{"score":7,"max":10,"notes":["registry namespace matches repository owner"]}},"findings":[],"inputs":{"packages":[{"registryType":"npm","identifier":"402-mcp","version":"3.15.2","found":true,"license":"MIT","hasInstallScripts":false,"dependencyCount":9,"publishedAt":"2026-04-07T21:39:52.913Z","repositoryUrl":"git+https://github.com/forgesworn/402-mcp.git","weeklyDownloads":733}],"repo":{"found":true,"owner":"forgesworn","repo":"402-mcp","archived":false,"pushedAt":"2026-09-24T15:51:17Z","stars":0,"forks":0,"openIssues":5,"ownerType":"Organization","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/269157051?v=4","ownerCreatedAt":"2026-03-18T09:46:34Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/269157051?v=4&s=128","source":"github"},"presence":{"stars":0,"forks":0,"downloadsWeek":733,"license":"MIT","lastPushAt":"2026-09-24T15:51:17.000Z","score":29}}}},"grade_history":[],"reviews":[]}