Live Lightning Demo

These are real Lightning Network API calls powered by lightning-wallet-mcp. Every button makes a live call.

Seeing the Power?

This is what your AI agent can do with lightning-wallet-mcp installed.

Get Your Agent Set Up in 5 Minutes

Lightning Wallet Operations

// Click a button to make a live Lightning Network API call // Each call goes through lightning-wallet-mcp via mcporter // // Get Service Info — Queries the Lightning wallet service // Check Balance — Shows the current wallet balance in sats // Get Fortune — Pays an L402 API to get a fortune (costs a few sats) // Create Invoice — Generates a real Lightning invoice for 100 sats

What's Happening Behind the Scenes

1

Browser Request

Your button click sends an HTTP request to the agentx.market API server.

2

MCP Call

The server calls lightning-wallet-mcp via mcporter, just like an AI agent would.

3

Lightning Network

The MCP server interacts with a real Lightning node, and the response comes back to your browser.

Try It Yourself

Give your AI agent a Lightning wallet in 60 seconds:

For Claude Code:

claude mcp add lightning-wallet -- npx -y lightning-wallet-mcp

For Claude Desktop / Cursor / Cline:

{
  "mcpServers": {
    "lightning-wallet": {
      "command": "npx",
      "args": ["-y", "lightning-wallet-mcp"]
    }
  }
}

Then ask your agent:

"Check my Lightning wallet balance"
"Create an invoice for 500 sats"
"Pay this Lightning invoice: lnbc..."
"Get a fortune from the L402 API at lightningfaucet.com"

What is L402?

L402 is an HTTP authentication protocol that uses Lightning payments instead of API keys or OAuth. When your agent hits an L402-protected API:

  1. The server returns a 402 Payment Required response with a Lightning invoice
  2. Your agent pays the invoice (usually 1-10 sats) via lightning-wallet-mcp
  3. The agent receives a token and gets instant access to the API

This is how the agent economy works: agents pay for what they use, in real-time, with real money. No API keys to manage. No monthly subscriptions. No billing departments. Just sats.