Lightning Enable
MCP server enabling AI agents to make Bitcoin Lightning payments, check balances, access L402 APIs, and manage payment budgets. Supports Strike, OpenNode, NWC, and LND wallets.
Lightning Enable MCP Server
An open-source MCP (Model Context Protocol) server that enables AI agents to make Lightning Network payments. All tools are free — no license or subscription required.
Available in .NET and Python.
What It Does
Give your AI agent a Lightning wallet and it can:
- Pay invoices — Send Bitcoin via Lightning to any BOLT11 invoice
- Access L402 APIs — Automatically pay L402 challenges for seamless API access
- Track spending — Budget limits, payment history, and balance checks
- Create invoices — Generate invoices to receive payments
- Exchange currency — Convert USD/BTC (Strike wallet)
Quick Install
# .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
Claude Desktop Config
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:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Supported Wallets
| 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) | Connection string | Untested |
| OpenNode | API key | No (no preimage) |
Try It: Lightning Enable Store
The Lightning Enable Store is a live L402-powered web store. Ask Claude:
Buy me a Lightning Enable t-shirt from store.lightningenable.com
Documentation
- .NET README — Full .NET documentation
- Python README — Full Python documentation
- Full Docs — Complete guide with all 13 tools
- AI Spending Security — Budget controls and safety
Repository Structure
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
License
MIT — see LICENSE.
Links
- Lightning Enable — Payment enablement middleware
- Documentation — Full docs
- Store — Live L402 demo
- NuGet — .NET package
- PyPI — Python package
- Docker Hub — Docker image
Related Servers
MCP Location Services for LLM
Provides geocoding, reverse geocoding, routing, and driving distance calculations for LLMs using pgGeocoder and pgrServer.
xmcp.dev
The TypeScript framework for building & shipping MCP servers
D&D MCP Server
A server for managing Dungeons & Dragons campaigns, storing all data in local JSON files.
ynab-mcp
MCP server for YNAB. Reconcile bank statements, itemize receipts, manage transactions — all through natural language.
通胜 MCP 服务
Provides Chinese Tung Shing (almanac) data, including calendar conversions, auspicious activities, and traditional metaphysical elements.
SmartThingsMCP
A comprehensive FastMCP 2.0 server and client for interacting with SmartThings devices, locations, rooms, modes, scenes, and automation rules through the SmartThings API.
Fulcra Context
Fulcra Context MCP server for accessing your personal health, workouts, sleep, location, and more, all privately. Built around Context by Fulcra.
inspirehep-mcp
InspireHEP MCP Server - integrate high-energy physics literature with LLMs.
BWA (Burrows-Wheeler Aligner)
An MCP server for the BWA sequence alignment tool.
MCP Internet Speed Test
Perform internet speed measurements including download/upload speed, latency, and jitter.