Lightning Network MCP Server logo

Lightning Network MCP Server

by MCP-Mirror

The Lightning Network MCP Server enables large language model agents to query Lightning node data using natural language. It implements the Model Context Protocol (MCP) specification and is compatible with MCP Inspector.

View on GitHub

Last updated: N/A

What is Lightning Network MCP Server?

The Lightning Network MCP Server is a tool that allows LLM agents to query Lightning node data using natural language, providing both human-readable summaries and machine-readable JSON output.

How to use Lightning Network MCP Server?

Configure the server with your LND node credentials (gRPC or LNC) in the .env file. Run the server using npm run mcp:prod. You can then query the server using natural language prompts, and it will return both readable summaries and structured JSON data.

Key features of Lightning Network MCP Server

  • Natural language querying of Lightning node data

  • Implements Model Context Protocol (MCP)

  • Compatible with MCP Inspector

  • Supports gRPC and LNC connections to Lightning nodes

  • Returns both human-readable and machine-readable JSON output

Use cases of Lightning Network MCP Server

  • Allowing LLM agents to understand and interact with Lightning nodes

  • Building user interfaces that display Lightning node data in a natural language format

  • Automating tasks related to Lightning node management

  • Integrating Lightning node data into other applications

FAQ from Lightning Network MCP Server

What is the Model Context Protocol (MCP)?

MCP is a specification for enabling LLMs to interact with external data sources.

What Lightning node types are supported?

Currently, the server primarily supports LND. Support for Core Lightning and Eclair is planned.

How do I connect to my Lightning node?

You can connect using gRPC or Lightning Node Connect (LNC). Configure the connection details in the .env file.

What kind of queries are supported?

Currently, the server supports basic channel queries. More robust queries are in development for channels, invoices, nodes, and routing.

How can I contribute to the project?

See the CONTRIBUTING.md file for setup, style, and testing guidance.