Skip to main content
ClaudeWave
refined-element avatar
refined-element

lightning-enable-mcp

Ver en GitHub

MCP server enabling AI agents to make Lightning Network payments

MCP ServersRegistry oficial9 estrellas2 forksC#MITActualizado today
ClaudeWave Trust Score
79/100
Trusted
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
Last scanned: 6/11/2026
Install in Claude Code / Claude Desktop
Method: UVX (Python) · lightning-enable-mcp
Claude Code CLI
claude mcp add lightning-enable-mcp -- uvx lightning-enable-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "lightning-enable-mcp": {
      "command": "uvx",
      "args": ["lightning-enable-mcp"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

<!-- mcp-name: io.github.refined-element/lightning-enable-mcp -->

Part of [Lightning Enable](https://lightningenable.com) — infrastructure for agent commerce over Lightning.

# Lightning Enable MCP Server

[![Discord](https://img.shields.io/discord/1405389254892195951?label=community&logo=discord&color=5865F2)](https://discord.gg/rX7NxHY8vx)


An open-source MCP (Model Context Protocol) server that enables AI agents to make Lightning Network payments and participate in agent-to-agent commerce. Wallet, invoice, L402, budget, and API-discovery tools work out of the box with just a wallet. Producer tools (sell access via L402) and Agent Service Agreement (ASA) tools (agent-to-agent discovery, request, settlement, and attestation over Nostr) unlock with an [Agentic Commerce subscription](https://lightningenable.com). See the [full tool list](https://docs.lightningenable.com/products/l402-microtransactions/mcp-complete-guide).

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
- **Discover APIs** — Search the L402 API registry to find paid APIs by keyword or category, or fetch a specific API's manifest for full endpoint details and pricing
- **Track spending** — Budget limits, payment history, and balance checks
- **Create invoices** — Generate invoices to receive payments
- **Get BTC price** — Real-time Bitcoin price from Strike
- **Exchange currency** — Convert between USD/BTC/EUR and more (Strike wallet)
- **Send on-chain** — Send Bitcoin on-chain (Strike/LND)
- **Sell services (L402 Producer)** — Create L402 payment challenges and verify payments, enabling agents to be full commerce participants that both buy and sell
- **Agent commerce (ASA)** — Discover, request, settle, and review agent-to-agent services on Nostr

## Quick Install

```bash
# .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:**
```json
{
  "mcpServers": {
    "lightning-enable": {
      "command": "dotnet",
      "args": ["tool", "run", "lightning-enable-mcp"],
      "env": {
        "STRIKE_API_KEY": "your-strike-api-key"
      }
    }
  }
}
```

**Python:**
```json
{
  "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 Hub)** | Connection string | Yes |
| **OpenNode** | API key | No (no preimage) |

## Try It: Lightning Enable Store

The [Lightning Enable Store](https://store.lightningenable.com) is a live L402-powered web store. Ask Claude:

```
Buy me a Lightning Enable t-shirt from store.lightningenable.com
```

## Documentation

- [.NET README](dotnet/src/LightningEnable.Mcp/README.md) — Full .NET documentation
- [Python README](python/lightning-enable-mcp/README.md) — Full Python documentation
- [Full Docs](https://docs.lightningenable.com/products/l402-microtransactions/mcp-complete-guide) — Complete guide to every tool
- [AI Spending Security](https://docs.lightningenable.com/products/l402-microtransactions/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
```

## Agent Service Agreement (ASA) Tools

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

### How Agent Commerce Works

1. **Discover** — `discover_agent_services(category="translation")` finds agents offering translation
2. **Request** — `request_agent_service(capability_id, budget_sats=100)` sends a service request
3. **Settle** — `settle_agent_service(l402_endpoint)` pays via Lightning and receives the result
4. **Review** — `publish_agent_attestation(pubkey, agreement_id, rating=5)` builds on-protocol reputation

For dynamic pricing, providers use `create_l402_challenge` to generate invoices at the agreed price. Requesters pay and providers verify with `verify_l402_payment`.

## Related Projects

- [le-agent-sdk (Python)](https://github.com/refined-element/le-agent-sdk-python) — `pip install le-agent-sdk`
- [le-agent-sdk (TypeScript)](https://github.com/refined-element/le-agent-sdk-ts) — `npm install le-agent-sdk`
- [le-agent-sdk (.NET)](https://github.com/refined-element/le-agent-sdk-dotnet) — `dotnet add package LightningEnable.AgentSdk`

## License

MIT — see [LICENSE](LICENSE).

## Links

- [Lightning Enable](https://lightningenable.com) — Payment enablement middleware
- [Documentation](https://docs.lightningenable.com) — Full docs
- [Store](https://store.lightningenable.com) — Live L402 demo
- [NuGet](https://www.nuget.org/packages/LightningEnable.Mcp) — .NET package
- [PyPI](https://pypi.org/project/lightning-enable-mcp) — Python package
- [Docker Hub](https://hub.docker.com/r/refinedelement/lightning-enable-mcp) — Docker image
agentic-commerceai-agentsbitcoinl402lightning-networkmcpmcp-servermodel-context-protocolpayments

Lo que la gente pregunta sobre lightning-enable-mcp

¿Qué es refined-element/lightning-enable-mcp?

+

refined-element/lightning-enable-mcp es mcp servers para el ecosistema de Claude AI. MCP server enabling AI agents to make Lightning Network payments Tiene 9 estrellas en GitHub y se actualizó por última vez today.

¿Cómo se instala lightning-enable-mcp?

+

Puedes instalar lightning-enable-mcp clonando el repositorio (https://github.com/refined-element/lightning-enable-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar refined-element/lightning-enable-mcp?

+

Nuestro agente de seguridad ha analizado refined-element/lightning-enable-mcp y le ha asignado un Trust Score de 79/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene refined-element/lightning-enable-mcp?

+

refined-element/lightning-enable-mcp es mantenido por refined-element. La última actividad registrada en GitHub es de today, con 8 issues abiertos.

¿Hay alternativas a lightning-enable-mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega lightning-enable-mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: refined-element/lightning-enable-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/refined-element-lightning-enable-mcp)](https://claudewave.com/repo/refined-element-lightning-enable-mcp)
<a href="https://claudewave.com/repo/refined-element-lightning-enable-mcp"><img src="https://claudewave.com/api/badge/refined-element-lightning-enable-mcp" alt="Featured on ClaudeWave: refined-element/lightning-enable-mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a lightning-enable-mcp