Integrations
Utilizes .env files for configuration of LND node connection details like certificates, macaroons, host, and port.
Used for cloning the repository during installation.
Provides repository access for installation and contribution to the LND MCP Server project.
Lightning Network MCP Server
The Lightning Network MCP Server allows large language model (LLM) agents—such as those running in Goose—to query Lightning node data using natural language. It implements the Model Context Protocol (MCP) specification version 2025-03-26
and is fully compatible with MCP Inspector 1.7.0.
The server connects to your node using gRPC or Lightning Node Connect (LNC), and returns both readable summaries and machine-readable JSON output. It is designed to be modular, testable, and extensible to support additional node types such as Core Lightning and Eclair.
For architecture details, see ARCHITECTURE.md.
What It Does
The system interprets natural-language prompts, determines user intent, evaluates domain logic, and queries your Lightning node. Responses are returned in plain language and structured JSON. It currently supports basic channel queries and is actively evolving to cover broader node status, invoices, and routing data.
Example Query
Ask in natural language:
Get human-readable responses:
Plus structured JSON data for applications:
The JSON output provides a structured version of the same data and is optimized for use by LLM agents, UI layers, or downstream applications.
Supported Features
Today, the system supports basic channel queries:
- “Show me my channels”
More robust queries are in development across the following domains:
- Channels
“What is the health of my channels?”
“Do I have any inactive channels?” - Invoices
“How many invoices have I received this week?”
“What was my last payment?” - Nodes
“What node am I connected to the most?”
“What node did I last forward a payment to?” - Routing
“How much have I routed in the last 24 hours?”
“Which channels are doing most of the routing?”
Quick Start
This provides a zero-configuration development experience using real nodes.
Run with a Real Node (LND via gRPC or LNC)
Connecting to an LND Node over Tor
To connect to an LND node running as a Tor hidden service:
- Ensure Tor is installed and running on your system:Copy
- Configure your
.env
file with the Tor SOCKS proxy settings:Copy - Make sure your TLS certificate is in PEM format (begins with
-----BEGIN CERTIFICATE-----
). If you have a raw certificate, you can convert it using the extract-credentials.js script.
Using the Credential Extraction Tool
If you have an lndconnect URL (commonly used in mobile apps), you can extract the credentials using:
This script will:
- Extract the host, port, certificate, and macaroon
- Convert the certificate to PEM format (required for proper connection)
- Save the files to the test/fixtures directory
- Print the configuration to add to your .env file
Test with MCP Inspector
To test the server using the official MCP inspector:
Compatibility
- MCP Specification version
2025-03-26
- MCP Inspector version
1.7.0
- MCP agent compatibility (e.g., Goose)
- gRPC support for direct node access
- LNC support for secure remote access
- JSON and natural-language output formats
Contributing
See CONTRIBUTING.md for setup, style, and testing guidance.
License
Apache License 2.0. See LICENSE.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Connects to Lightning Network nodes and enables natural language queries for channel information, providing both human-readable responses and structured JSON data through the Model Context Protocol.