RGB Lightning Node logo

RGB Lightning Node

Community
lnfi-network

mcp server of rgb api

Publisherlnfi-network
Repositoryrgb-mcp-server
LanguageTypeScript
Forks
1
Stars
1
Available tools
18
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    RGB Lightning Node exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 18 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    1 stars and 1 forks from the linked repository.

RGB API MCP Server

A Model Context Protocol (MCP) server that provides integration with RGB Lightning Node APIs. This server enables AI assistants to interact with RGB assets, Lightning Network operations, and Bitcoin on-chain transactions.

Features

  • Node Operations: Check node status, get network information
  • RGB Asset Management: List assets, check balances, send RGB assets
  • Lightning Network: Create/pay invoices, manage channels
  • On-chain Transactions: Generate addresses, send Bitcoin, list transactions
  • Swap Operations: List and manage asset swaps

Quick Start

npx

You can use this server directly with MCP clients like Cursor, Claude Desktop, Trae, or Cherry Studio by running

Note: Please replace with your RGB api key: xxxxxxxxxxxxxxxxxxxx Or /path/rgbapi.key

MCP Client Configuration

Add this configuration to your MCP client (e.g., Claude Desktop config):

bash
{
    "mcpServers": {
        "rgb-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "rgb-mcp-server"
            ],
            "env": {
                "RGB_API_BASE_URL": "http://localhost:3000",
                "RGB_API_KEY": "xxxxxxxxxxxxxxxxxxxx" //Optional: RGB api key Or /path/rgbapi.key
            }
        }
    }
}

Development

For developers who want to contribute or use this project:

Installation

  1. Make sure you have Node.js installed (version 16 or higher recommended)
  2. Install dependencies:
bash
npm install rgb-mcp-server

Programmatic Usage

After installing the package, you can use it programmatically in your Node.js application:

javascript
import { getRGBMcpServer } from "rgb-mcp-server";

// Initialize the RGB MCP server
const rgbMcpServer = await getRGBMcpServer({
    baseUrl: process.env.RGB_API_BASE_URL || 'http://localhost:3000',  // RGB API server URL
    apiKey: process.env.RGB_API_KEY,                                   // Optional: API key for authentication
    timeout: 30000                                                     // Optional: request timeout in ms
});

// Access available tools
const rgbTools = rgbMcpServer._registeredTools;
console.log('Available RGB tools:', Object.keys(rgbTools));

Available Tools

The server provides the following MCP tools:

  1. rgb_get_node_info - Get RGB node information
  2. rgb_get_node_status - Get node status and uptime
  3. rgb_list_assets - List all RGB assets
  4. rgb_get_asset_balance - Get balance for a specific asset
  5. rgb_send_asset - Send RGB assets
  6. rgb_generate_address - Generate new on-chain address
  7. rgb_list_transactions - List on-chain transactions
  8. rgb_send_bitcoin - Send Bitcoin to an address
  9. rgb_create_lightning_invoice - Create Lightning invoice
  10. rgb_pay_lightning_invoice - Pay Lightning invoice
  11. rgb_list_lightning_channels - List Lightning channels
  12. rgb_list_swaps - List available swaps
  13. rgb_create_swap - Create a new asset swap

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "rgb-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "rgb-mcp-server"
      ],
      "env": {
        "RGB_API_BASE_URL": "http://localhost:3000",
        "RGB_API_KEY": "xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Available Tools

  • rgb_get_node_info

    Get RGB node information including ID, version, and network status

  • rgb_get_node_status

    Get RGB node status and uptime information

  • rgb_list_assets

    List all RGB assets available in the node

  • rgb_get_asset_balance

    Get balance for a specific RGB asset

  • rgb_send_assets

    Send RGB assets to recipients

  • rgb_get_asset_metadata

    Get metadata for a specific RGB asset

  • rgb_generate_address

    Generate a new on-chain address

  • rgb_list_transactions

    List on-chain transactions

  • rgb_get_network_info

    Get network information from the RGB node

  • rgb_send_bitcoin

    Send Bitcoin to an address

  • rgb_create_lightning_invoice

    Create a Lightning Network invoice

  • rgb_pay_lightning_invoice

    Pay a Lightning Network invoice

  • rgb_list_lightning_channels

    List Lightning Network channels

  • rgb_list_swaps

    List available swaps

  • rgb_create_swap

    Create a new asset swap

  • rgb_sign_message

    Sign a message with the RGB node

  • rgb_check_indexer_url

    Check if an indexer URL is valid

  • rgb_decode_lightning_invoice

    Decode an RGB Lightning invoice

Use RGB Lightning Node MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once RGB Lightning Node is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add RGB Lightning Node as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the RGB Lightning Node MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "rgb-lightning-node": {
      "command": "npx",
      "args": [
        "-y",
        "rgb-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the RGB Lightning Node MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the RGB Lightning Node MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use RGB Lightning Node to help me with this task?
RGB Lightning Node
Sure. I read it.
Here is what I found using RGB Lightning Node.

Frequently asked questions

What is the RGB Lightning Node MCP server used for?

RGB Lightning Node is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use RGB Lightning Node MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use RGB Lightning Node with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use RGB Lightning Node MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With RGB Lightning Node connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect RGB Lightning Node MCP to TypingMind?

RGB Lightning Node runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does RGB Lightning Node MCP provide in TypingMind?

RGB Lightning Node exposes 18 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use RGB Lightning Node MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If RGB Lightning Node requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇