drio
Open app

LND MCP Server

Source

A Model Context Protocol (MCP) for querying Lightning Network (LND) node data using natural language.

Catalog onlyCatalog onlySTDIO

Overview

The LND MCP Server is an open-source Model Context Protocol (MCP) server that allows users to query Lightning Network (LND) node data using natural language, providing insights for operators and technical stakeholders.

To use the LND MCP Server, clone the repository, install dependencies, and run the server. You can then interact with it using natural language queries to fetch data from your LND node.

  • Natural language query interface for LND node data. - Secure integration with LND using TLS certificates. - Dual-format responses: human-readable summaries and structured JSON. - Modular architecture for easy extension and maintainability. - Supports mock LND mode for development and testing.
  1. Querying channel data and health.
  2. Analyzing channel liquidity distribution.
  3. Integrating with LLM applications for enhanced data interaction.

Add to your AI client

Use these steps to connect LND MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "lnd-mcp-server-pblittle": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "lnd-mcp-server-pblittle": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "lnd-mcp-server-pblittle": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "lnd-mcp-server-pblittle": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "lnd-mcp-server-pblittle": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "lnd-mcp-server-pblittle": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lnd-mcp-server-pblittle"
      ]
    }
  }
}

FAQ

What data can I query?

Currently, the server supports channel data queries, with plans for future expansions.

Is it secure to connect to my LND node?

Yes, the server uses TLS certificates for secure connections.

Can I test without a live LND node?

Yes, you can use the mock LND mode for testing purposes.