Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

lightning-mcp-server

Skill by jiayaoqijia

Connects AI assistants to lnd Lightning nodes through Lightning Node Connect, using a pairing phrase instead of TLS certs or macaroons. It is read-only and suits people who want to query node state from Claude Code.

  • Score 59
  • 81 stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install lightning-mcp-server

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jiayaoqijia/cryptoskill /tmp/cryptoskill && mkdir -p ~/.claude/skills && cp -r /tmp/cryptoskill/skills/chains/lightning-mcp ~/.claude/skills/lightning-mcp-server

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install lightning-mcp-server in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This is an MCP server that lets AI assistants query Lightning nodes running lnd. It uses Lightning Node Connect (LNC), which routes encrypted WebSocket traffic through a mailbox relay, so the agent does not need direct gRPC access, TLS certificates, or macaroons. The user supplies a 10-word pairing phrase from Lightning Terminal, and the server keeps it in memory only.

The server runs over stdio and is added to Claude Code through a setup script, a claude mcp add command, or a manual config file. After the agent calls lnc_connect, it can use 18 read-only tools covering node info, balances, channels, invoices, payments, peers, and on-chain data. The server is read-only by default and does not expose payment or channel-changing operations. It is aimed at Lightning node operators and developers who want an AI assistant to observe their node.

Written from the project's SKILL.md and checked against it.

What it can do

  • lnc_connectConnects to lnd via an LNC pairing phrase.
  • lnc_disconnectCloses the active LNC connection.
  • lnc_get_infoReturns node alias, version, sync status, and block height.
  • lnc_get_balanceReturns on-chain wallet balance and channel balance.
  • lnc_list_channelsLists active and inactive channels with capacity and balances.
  • lnc_pending_channelsShows channels that are being opened or closed.
  • lnc_decode_invoiceDecodes a BOLT11 invoice.
  • lnc_list_paymentsShows payment history with pagination.
  • lnc_list_peersLists connected peers with stats.
  • lnc_estimate_feeGives fee estimates for confirmation targets.

What you need

  • Lightning Terminal (litd) on the target node to generate a pairing phrase
  • Claude Code as the MCP client
  • Go 1.24+ to build from source
  • Docker, if running the server as a container

Try asking

  • Connect to my lnd node with this pairing phrase and show the node info
  • List my active and inactive Lightning channels with their balances
  • Show my recent payment history and decode this BOLT11 invoice

Good to know

  • Read-only by default: no payment, channel, or state-changing operations are exposed
  • The pairing phrase must be exactly 10 words
  • Dev mode and insecure mode are for local regtest setups only

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/chains/lightning-mcp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to lightning-mcp-server

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

lightning-mcp-server: common questions

Does lightning-mcp-server need TLS certificates or macaroons?

No. The source says it uses only the pairing phrase from Lightning Terminal, and no keys, certs, or macaroons are stored on disk.

Can the AI assistant send payments with this server?

No. The source says the server is read-only and does not expose payment, channel, or state-changing operations.

How does the server reach my lnd node?

It opens an encrypted WebSocket tunnel through the mailbox relay, so the agent machine does not connect directly to the node's gRPC port.

How do I install lightning-mcp-server?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is lightning-mcp-server free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is lightning-mcp-server safe to use?

It scores 59 of 100. Grades: maintenance A, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to lightning-mcp-server?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

lightning-mcp-server Install

Add to stack

Loading.