Open-source MCP server enables AI agents to handle L402 payments via Lightning Network

What this tool does
This is an open-source MCP (Model Context Protocol) server that allows AI agents like Claude to interact with APIs that require payment via the L402 protocol. When an agent encounters an HTTP 402 "Payment Required" response, this tool handles the Lightning Network transaction automatically.
How it works
The MCP plugin intercepts HTTP 402 rejections from gated APIs. It reads the BOLT11 invoice included in the response, pays the required satoshis (fractions of Bitcoin) via the Lightning Network, obtains the cryptographic receipt, and then retrieves the data to bring it into the chat session.
The tool addresses a specific limitation in agent workflows: agents can't use credit cards to pay for API access or hire other agents for specialized tasks. This creates what the developer calls "financial rails for the Machine-to-Machine economy."
Technical implementation
The server is built as a Python MCP plugin using FastMCP. The GitHub repository includes a local dummy-agent that developers can spin up to test the functionality without spending actual cryptocurrency. This allows you to observe how Claude handles 402 rejections in a local environment.
The developer specifically mentions this is useful for agent swarms where Agent A might need to pull data from a gated API or hire Agent B for specialized tasks.
📖 Read the full source: r/clawdbot
👀 See Also

Warp Terminal Goes Open Source with Agentic Dev Environment
Warp is now open-source, rebranding as an agentic development environment with a built-in coding agent and support for bringing your own CLI agents like Claude Code, Codex, and Gemini CLI.

Claude to PDF Chrome Extension Exports Long Conversations with Formatting Intact
A developer has released a free Chrome extension called Claude to PDF that captures full conversation history from Claude AI chats and preserves code blocks, LaTeX math, and table formatting when exporting to PDF.

Using a Local LLM as a Claude Code Subagent to Reduce Context Usage
A Reddit user demonstrates how Claude Code can delegate tasks to a local LLM running via LM Studio, keeping file content out of Claude's context. The setup uses a ~120-line Python script with LM Studio's tool-calling API to handle file operations locally.

Benchmark shows AI browser automation tools vary 2.6x in token costs despite identical accuracy
A benchmark of 4 CLI browser automation tools using Claude Sonnet 4.6 on 6 real-world tasks found all achieved 100% accuracy, but openbrowser-ai used 36,010 tokens while others used 77,123-94,130 tokens. Tool call count was the strongest predictor of token cost.