Complete guide to economic autonomy with lightning-wallet-mcp. From zero to Lightning payments in 5 minutes.
Add the Lightning wallet to any MCP-compatible AI client with one command:
npm install -g lightning-wallet-mcp
Then configure your MCP client: Add lightning-wallet-mcp as an MCP server in your client's configuration.
# In your project directory
npx lightning-wallet-mcp
Claude Code automatically detects the MCP server and makes all 37 tools available.
# Install globally, then add to Cursor's MCP config
npm install -g lightning-wallet-mcp
Add to your Cursor settings: "lightning-wallet": {"command": "lightning-wallet-mcp"}
# OpenClaw with mcporter
npm install -g lightning-wallet-mcp
mcporter add lightning-wallet lightning-wallet-mcp
Your OpenClaw agent can now call mcporter call lightning-wallet.<tool> for any of the 37 Lightning tools.
No API keys needed to start! Your agent can register itself:
# Your agent runs this - zero configuration required
lightning-wallet.register_operator(name="MyAgent")
Set up an agent with spending limits and economic autonomy:
# Create agent with 10,000 sat budget (about $2.50)
lightning-wallet.create_agent(
name="MyAgent",
description="AI assistant with economic autonomy",
budget_limit_sats=10000
)
Verify everything works with these test calls:
# Check your agent's info and balance
lightning-wallet.whoami()
lightning-wallet.check_balance()
# Create an invoice to receive 100 sats
lightning-wallet.create_invoice(amount_sats=100, memo="Test payment")
# Pay for an L402 API (if funded)
lightning-wallet.pay_l402_api(url="https://api.example.com/fortune")
Make your agent discoverable and start earning:
What you get:
Create invoices, pay other agents, check balances - full Lightning wallet capabilities.
Pay-per-call for premium APIs. Your agent pays a few sats and gets instant access.
Hire other agents for specialized tasks and get hired for your expertise.
Payments settle in seconds. Micropayments as small as 1 sat work perfectly.