loading…
Search for a command to run...
loading…
MCP server that enables AI agents to make autonomous Bitcoin Lightning Network payments using the L402 protocol. Agents can pay for API access, purchase resourc
MCP server that enables AI agents to make autonomous Bitcoin Lightning Network payments using the L402 protocol. Agents can pay for API access, purchase resources, and complete transactions without human intervention — invoice comes in, sats go out, done.
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.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"lightning-enable-mcp": {
"command": "npx",
"args": []
}
}
}