ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 4/5

lightning-mcp-server

Build and configure the MCP server for Lightning Node Connect (LNC). Connects AI assistants to lnd nodes via encrypted WebSocket tunnels using pairing phrases — no direct network access or TLS certs needed. Read-only by default (18 tools for querying node state, channels, payments, invoices, peers, on-chain data).

Why use this skill?

Securely connect your AI agent to Lightning Network nodes using encrypted LNC tunnels. Monitor node state and channels with read-only MCP tools.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/roasbeef/lightning-mcp-server
Or

What This Skill Does

The lightning-mcp-server skill allows AI agents to securely connect to Lightning Network nodes via Lightning Node Connect (LNC). It creates an encrypted WebSocket tunnel between an AI assistant and an LND (Lightning Network Daemon) node, bypassing the need for direct network exposure, TLS certificates, or macaroon management. By using a simple 10-word pairing phrase, the server acts as a gateway that grants the AI read-only access to node data, enabling the model to inspect channels, analyze payment history, and monitor on-chain statistics without risking node funds.

Installation

You can install this skill directly into your OpenClaw environment using the command: clawhub install openclaw/skills/skills/roasbeef/lightning-mcp-server. After installation, ensure you have Go 1.24+ if building from source, or use the pre-built binary via npx. Run the configuration script using skills/lightning-mcp-server/scripts/configure.sh to generate the necessary .env file. For integration with Claude Code, you can register the MCP server via claude mcp add --transport stdio lnc -- npx -y @lightninglabs/lightning-mcp-server.

Use Cases

This skill is perfect for lightning node operators who want to build custom dashboards, automate reporting, or gain deep insights into their liquidity without compromising node security. Developers can use it to build automated health checkers that alert when channels go offline or when liquidity is depleted. Furthermore, it serves as a powerful research tool for understanding network trends by querying real-time node activity.

Example Prompts

  1. "Connect to my node using the pairing phrase [PHRASE_HERE] and summarize my current active channel balance and total inbound liquidity."
  2. "Review the last 10 successful payments processed by the node and identify any recurring routing failures that might indicate a need to adjust my fee strategy."
  3. "List all my currently open channels and highlight which ones are approaching low local liquidity thresholds, then suggest potential rebalancing actions."

Tips & Limitations

The server is read-only by design; it cannot perform on-chain transactions or modify channel states, which ensures the safety of your funds. Always handle your pairing phrases with care, as they are the sole key to your node's metadata. If you are operating in a development environment, use the --dev flag during configuration to test with regtest nodes before moving to mainnet. Ensure your LNC connection is monitored for latency, as the mailbox relay can occasionally experience jitter depending on network conditions.

Metadata

Author@roasbeef
Stars1171
Views0
Updated2026-02-19
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-roasbeef-lightning-mcp-server": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#lightning#bitcoin#mcp#crypto#networking
Safety Score: 4/5

Flags: network-access