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

MCP-India-Stack: Offline-first server for Indian financial data in AI agents
MCP-India-Stack is an offline-first MCP server that provides Indian financial and government API functionality without authentication or external API calls. It bundles datasets locally for tax calculations, validation tools, and lookups.

ClaudeMeter: Open-Source macOS Menu Bar App for Real-Time Claude Usage Tracking
ClaudeMeter is a free, open-source macOS menu bar app for Claude Max subscribers that displays session and weekly usage percentages, reset timers, and pace indicators without interrupting workflow. The entire app was built using Claude (Claude Code/Opus) for Swift code, Supabase backend, and Edge Functions.

Open-source memory system for LLM agents achieves high benchmark scores
A persistent memory system for Claude Code and OpenClaw provides LLM agents with context continuity across sessions, achieving 90.8% on LoCoMo and 89.1% on LongMemEval benchmarks. The adapter-based architecture works with any agent framework.

SprintiQ: Open-Source Sprint Planning for Claude Code
SprintiQ is an open-source agile platform that acts as an orchestration layer for Claude Code, offering AI-powered user story generation, sprint planning, velocity tracking, and a CLI that syncs git activity to sprints in real time.