RGB Lightning Network MCP Server
Enables management of Bitcoin on-chain transactions including generating addresses, sending Bitcoin, and listing transaction history through RGB Lightning Node APIs.
Provides Lightning Network operations including creating and paying invoices, managing channels, and handling RGB asset transfers over the Lightning Network.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RGB Lightning Network MCP Server what's my RGB asset balance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Alby Bitcoin Payments MCP Server
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):
{
"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
Make sure you have Node.js installed (version 16 or higher recommended)
Install dependencies:
npm install rgb-mcp-serverProgrammatic Usage
After installing the package, you can use it programmatically in your Node.js application:
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:
rgb_get_node_info- Get RGB node informationrgb_get_node_status- Get node status and uptimergb_list_assets- List all RGB assetsrgb_get_asset_balance- Get balance for a specific assetrgb_send_asset- Send RGB assetsrgb_generate_address- Generate new on-chain addressrgb_list_transactions- List on-chain transactionsrgb_send_bitcoin- Send Bitcoin to an addressrgb_create_lightning_invoice- Create Lightning invoicergb_pay_lightning_invoice- Pay Lightning invoicergb_list_lightning_channels- List Lightning channelsrgb_list_swaps- List available swapsrgb_create_swap- Create a new asset swap
License
MIT
Available Tools
18 toolsrgb_check_indexer_urlC
Check if an indexer URL is valid
Inputs: indexerUrl (required).
rgb_create_lightning_invoiceC
Create a Lightning Network invoice
Inputs: amount (required), description.
rgb_create_swapC
Create a new asset swap
Inputs: swapParams (required).
rgb_decode_lightning_invoiceC
Decode an RGB Lightning invoice
Inputs: invoice (required).
rgb_generate_addressB
Generate a new on-chain address
Inputs: no named parameters.
rgb_get_asset_balanceC
Get balance for a specific RGB asset
Inputs: assetId (required).
rgb_get_asset_metadataC
Get metadata for a specific RGB asset
Inputs: assetId (required).
rgb_get_network_infoB
Get network information from the RGB node
Inputs: no named parameters.
rgb_get_node_infoB
Get RGB node information including ID, version, and network status
Inputs: no named parameters.
rgb_get_node_statusB
Get RGB node status and uptime information
Inputs: no named parameters.
rgb_list_assetsB
List all RGB assets available in the node
Inputs: no named parameters.
rgb_list_lightning_channelsB
List Lightning Network channels
Inputs: no named parameters.
rgb_list_swapsC
List available swaps
Inputs: no named parameters.
rgb_list_transactionsB
List on-chain transactions
Inputs: no named parameters.
rgb_pay_lightning_invoiceC
Pay a Lightning Network invoice
Inputs: bolt11 (required).
rgb_send_assetsC
Send RGB assets to recipients
Inputs: recipientMap (required).
rgb_send_bitcoinC
Send Bitcoin to an address
Inputs: address (required), amount (required).
rgb_sign_messageC
Sign a message with the RGB node
Inputs: message (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have clearly distinct purposes, such as creating invoices vs. paying them, or getting asset metadata vs. listing assets. However, rgb_get_node_info and rgb_get_node_status could be confused as both relate to node status, though their descriptions differentiate them slightly (info includes ID/version, status focuses on uptime).
All tool names follow a consistent verb_noun pattern with the 'rgb_' prefix, such as rgb_create_lightning_invoice and rgb_list_assets. The naming is uniform across all tools, using snake_case and clear action-object pairs, making it predictable and easy to understand.
With 18 tools, the count is slightly high but reasonable for a server covering RGB assets, Lightning Network, and swaps. It provides comprehensive coverage without being overwhelming, though it borders on the heavy side for typical MCP scopes.
The tool set offers complete coverage for the RGB and Lightning Network domain, including asset management (create, send, balance, metadata), network operations (invoices, channels, payments), and swaps. There are no obvious gaps; it supports full lifecycle operations from creation to transactions.
Maintenance
Related MCP Connectors
Give AI agents a Bitcoin wallet with Lightning Network payments and L402 support.
Non-custodial crypto payments for AI assistants: balances, payments, and create payment links.
Bitcoin RPC for AI agents. 7 read tools; x402 USDC on Base mainnet. Discovery is free.
Crypto pay links and API for people and AI agents. BTC, Lightning, USDC, USDT, EURC, SOL, ETH.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables secure interactions with cryptocurrency daemon RPC interfaces through AI assistants, supporting transaction management, wallet operations, and daemon monitoring for Bitcoin-derived cryptocurrencies.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables Bitcoin Lightning wallet integration with LLMs through Nostr Wallet Connect (NWC). Supports lightning payments, LNURL operations, and L402 authentication for AI-powered bitcoin transactions.Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents to perform Bitcoin and Lightning Network payments using a non-custodial, zero-trust architecture. It provides 13 tools for wallet management, invoice creation, and payment processing while keeping node credentials local to the user's machine.13MIT

LNbits MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Lightning wallets through LNbits, including balance checks, invoice creation, payments, and extension operations, all via natural language.7MIT