RGB Lightning Network MCP Server
Enables AI assistants to interact with RGB assets, Lightning Network operations, and Bitcoin transactions through RGB Lightning Node APIs. Supports asset management, invoice creation/payment, channel management, on-chain transactions, and asset swaps.
README
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):
{
"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-server
Programmatic 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.