Описание
mcp server of rgb api
README
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
Установка Rgb
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/lnfi-network/rgb-mcp-serverFAQ
Rgb MCP бесплатный?
Да, Rgb MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Rgb?
Нет, Rgb работает без API-ключей и переменных окружения.
Rgb — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Rgb в Claude Desktop, Claude Code или Cursor?
Открой Rgb на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Rgb with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
