Skip to main content
Glama
lnfi-network

RGB Lightning Network MCP Server

by lnfi-network

rgb_list_lightning_channels

Retrieve a list of active Lightning Network channels to monitor channel status, capacity, and connectivity for managing Bitcoin and RGB asset transactions.

Instructions

List Lightning Network channels

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:221-234 (registration)
    Registers the 'rgb_list_lightning_channels' MCP tool with empty input schema. The handler fetches Lightning channels via rgbClient.listChannels() and returns formatted JSON or error.
    server.tool( 'rgb_list_lightning_channels', 'List Lightning Network channels', {}, async ({}) => { try { const channels = await rgbClient.listChannels(); return { content: [{ type: 'text', text: JSON.stringify(channels, null, 2) }] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [{ type: 'text', text: `Error: ${errorMessage}` }], isError: true }; } } );
  • Handler method in RGBApiClientWrapper that implements the core logic by delegating to the underlying RGB API SDK's lightning.listChannels().
    async listChannels() { return await this.client.lightning.listChannels(); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lnfi-network/rgb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server