Connects Claude to the Lightning Network for Bitcoin payments. Supports Strike, LND, and multiple NWC wallets. Exposes 23 tools including invoice payments, L402 API access with automatic payment challenges, budget tracking, and on-chain sends. Two standout features: L402 Producer tools let your agent sell services and create payment challenges, and Agent Service Agreement tools enable agent-to-agent commerce on Nostr with service discovery, negotiation, and settlement. Ships in .NET, Python, and Docker. The free tier covers basic wallet operations. Producer and ASA tools require an Agentic Commerce subscription. Useful when you want Claude to autonomously pay for APIs, participate in micropayment commerce, or both buy and sell services.
Part of Lightning Enable — infrastructure for agent commerce over Lightning.
An open-source MCP (Model Context Protocol) server that enables AI agents to make Lightning Network payments and participate in agent-to-agent commerce. 23 tools total: 15 free wallet tools, 2 producer tools, and 6 Agent Service Agreement (ASA) tools for discovering, negotiating, and settling services between agents on Nostr. Producer and ASA tools require an Agentic Commerce subscription.
Available in .NET and Python.
Give your AI agent a Lightning wallet and it can:
# .NET
dotnet tool install -g LightningEnable.Mcp
# Python
pip install lightning-enable-mcp
# Python (no install)
uvx lightning-enable-mcp
# Docker
docker pull refinedelement/lightning-enable-mcp:latest
Add to your claude_desktop_config.json:
.NET:
{
"mcpServers": {
"lightning-enable": {
"command": "dotnet",
"args": ["tool", "run", "lightning-enable-mcp"],
"env": {
"STRIKE_API_KEY": "your-strike-api-key"
}
}
}
}
Python:
{
"mcpServers": {
"lightning-enable": {
"command": "uvx",
"args": ["lightning-enable-mcp"],
"env": {
"STRIKE_API_KEY": "your-strike-api-key"
}
}
}
}
Config file locations:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/claude/claude_desktop_config.json| Wallet | Setup | L402 Support |
|---|---|---|
| Strike | API key | Yes |
| LND | REST + macaroon | Yes (guaranteed) |
| NWC (CoinOS) | Connection string | Yes |
| NWC (CLINK) | Connection string | Yes |
| NWC (Alby Hub) | Connection string | Yes |
| OpenNode | API key | No (no preimage) |
The Lightning Enable Store is a live L402-powered web store. Ask Claude:
Buy me a Lightning Enable t-shirt from store.lightningenable.com
lightning-enable-mcp/
├── dotnet/
│ ├── src/LightningEnable.Mcp/ # .NET MCP server
│ ├── tests/LightningEnable.Mcp.Tests/ # .NET tests
│ └── LightningEnable.Mcp.sln # Solution file
├── python/
│ └── lightning-enable-mcp/ # Python MCP server
├── .github/workflows/publish-mcp.yml # CI/CD
├── LICENSE # MIT
└── README.md # This file
These tools enable agent-to-agent commerce on Nostr:
| Tool | Description | Subscription |
|---|---|---|
discover_agent_services | Search for agent capabilities by category, hashtag, or keyword | Free |
publish_agent_capability | Publish your agent's services to the Nostr network (kind 38400) | Agentic Commerce |
request_agent_service | Request a service from another agent (kind 38401) | Agentic Commerce |
settle_agent_service | Pay for an agent service via L402 Lightning settlement | Free* |
publish_agent_attestation | Leave a review/rating for an agent after service completion (kind 38403) | Agentic Commerce |
get_agent_reputation | Check an agent's reputation score from on-protocol attestations | Free |
*settle uses wallet balance, subject to budget limits
discover_agent_services(category="translation") finds agents offering translationrequest_agent_service(capability_id, budget_sats=100) sends a service requestsettle_agent_service(l402_endpoint) pays via Lightning and receives the resultpublish_agent_attestation(pubkey, agreement_id, rating=5) builds on-protocol reputationFor dynamic pricing, providers use create_l402_challenge to generate invoices at negotiated prices. Requesters pay and providers verify with verify_l402_payment.
pip install le-agent-sdknpm install le-agent-sdkdotnet add package LightningEnable.AgentSdkMIT — see LICENSE.
STRIKE_API_KEYsecretStrike API key for Lightning payments (recommended wallet)
NWC_CONNECTION_STRINGsecretNostr Wallet Connect URI (for NWC wallets like CoinOS, CLINK, Alby Hub)
LND_REST_HOSTLND REST API host (e.g., localhost:8080)
LND_MACAROON_HEXsecretLND admin macaroon in hex format
OPENNODE_API_KEYsecretOpenNode API key (direct payments only, no L402 support)
OPENNODE_ENVIRONMENTdefault: productionOpenNode environment: production or dev (testnet)
L402_MAX_SATS_PER_REQUESTdefault: 1000Maximum satoshis allowed per single payment request
L402_MAX_SATS_PER_SESSIONdefault: 10000Maximum total satoshis allowed per session
LIGHTNING_ENABLE_API_KEYsecretLightning Enable API key for agent registration and ASA publishing (Agentic Commerce subscription)
AGENT_RELAY_URLdefault: wss://agents.lightningenable.comNostr relay URL for agent events (default: wss://agents.lightningenable.com)
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent