Lightning-paywall sidecar: wraps any stdio MCP server, requires paid invoices before tool calls.

stdiocommunityinfra

Package Details

Transportstdio

Environment Variables

PAYWALL_UPSTREAM_COMMAND
Required

Command to spawn the upstream MCP server (e.g. npx)

PAYWALL_UPSTREAM_ARGS

JSON array of args for the upstream command

NWC_CONNECTION_STRING
RequiredSecret

NWC connection string of the receiving wallet (receive-only recommended)

PAYWALL_DEFAULT_PRICE_SATS

Default price in sats for tools not in PAYWALL_PRICE_MAP

PAYWALL_PRICE_MAP

JSON map of tool name to price in sats