🌐 Lightning Network MCP Server

Ligthning Network MCP server.

Local serverstdioTypeScript

What is the 🌐 Lightning Network MCP server?

Most developer tooling work still happens through a UI a human drives. 🌐 Lightning Network MCP server moves it into the conversation instead. Ligthning Network MCP server.

The short version

A Model Context Protocol (MCP) server that enables AI models to interact with Lightning Network, allowing them to pay invoices.

The tools it exposes

The server publishes 1 tool. What each one is for:

  • pay_invoice — The pay_invoice tool exposed by this server

Getting it running

The server ships on npm as @smithery/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: BITCOIN_LNBITS_NODE_URL, BITCOIN_LNBITS_ADMIN_KEY, BITCOIN_LNBITS_READ_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. 🌐 Lightning Network's toolset — pay_invoice — is a fair guide to whether it matches your workflow. It is maintained by AbdelStark; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
pay_invoiceThe pay_invoice tool exposed by this server.

How to install the 🌐 Lightning Network MCP server

{
  "mcpServers": {
    "lightning": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "BITCOIN_LNBITS_NODE_URL": "your-value",
        "BITCOIN_LNBITS_ADMIN_KEY": "your-value",
        "BITCOIN_LNBITS_READ_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
BITCOIN_LNBITS_NODE_URLEndpoint or connection string the server talks to.Yes
BITCOIN_LNBITS_ADMIN_KEYCredential the server authenticates with.Yes
BITCOIN_LNBITS_READ_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use 🌐 Lightning Network to pay invoice.

Frequently asked questions

It lets AI models interact with the Lightning Network to pay invoices via the Model Context Protocol.