About Polar
Polar is an MCP server published by jamaljsr in the Blockchain category: one-click Bitcoin Lightning networks for local app development & testing. Conduid read 48 tools from its source: add_litd_session, add_node, close_channel, close_tap_channel, create_asset_invoice, create_invoice and 42 more. No package is published for it, so it installs from a source checkout.
The repository has 862 stars and 187 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v4.0.0 (6 Jan 2026): This release introduces two new major features into Polar. It follows v3.3.0 (20 Jun 2025), and the 5 most recent releases go back to v3.0.0 (23 Jul 2024). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include weather-api and weather-station.
Install
git clone https://github.com/jamaljsr/polarTools (48)
add_litd_sessionCreate a new Lightning Node Connect (LNC) session for a litd node. This generates a pairing phrase that can be used to connect remote applications to the Lightning node. Sessions can be admin (full access), read_only (view only), or custom (specific permissions).| Parameter | Type | Description |
|---|---|---|
| expiresAt | number | Unix timestamp when the session expires (in seconds). Defaults to 90 days from now if not provided. |
| label * | string | Human-readable label for the session |
| mailboxServerAddr | string | Optional mailbox server address for the session (defaults to ${LNC_MAILBOX_SERVER}) |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node to create session for |
| type * | string | Type of session permissions |
add_nodeAdds a Bitcoin Core or Lightning Network node to an existing Polar network. Supports Bitcoin Core (bitcoind), LND, c-lightning, eclair, and litd (Lightning Terminal) implementations. If the network is started, the node will be automatically started as well.| Parameter | Type | Description |
|---|---|---|
| implementation * | string | Node implementation to use |
| networkId * | number | ID of the network to add the node to |
| version | string | Version of the implementation (optional, uses latest if not specified). Use the list_node_versions tool to see supported versions. |
close_channelClose a Lightning Network channel in a Polar network. This cooperatively closes the specified channel and returns the funds to the on-chain wallet.| Parameter | Type | Description |
|---|---|---|
| channelPoint * | string | Channel point identifier in the format "txid:output_index" (e.g., "abc123...def:0") |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node that has the channel |
close_tap_channelClose a Taproot Asset-enabled Lightning Network channel in a Polar network. This cooperatively closes the specified asset-enabled channel and returns the locked Taproot Assets to the on-chain wallet. Works with litd nodes only.| Parameter | Type | Description |
|---|---|---|
| channelPoint * | string | Channel point identifier in the format "txid:output_index" (e.g., "abc123...def:0") |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node that has the channel |
create_asset_invoiceCreate a Lightning invoice payable with Taproot Assets from a litd node. The node must have sufficient assets in channels to create the invoice. Works only with litd nodes (which include integrated LND + Lightning Terminal + tapd).| Parameter | Type | Description |
|---|---|---|
| amount * | number | Amount of the asset to invoice for |
| assetId * | string | ID of the Taproot Asset to create invoice for |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node to create the invoice from |
create_invoiceCreate a Lightning Network payment invoice for a node. Generates a payment request string (BOLT11 invoice) that can be paid by other Lightning nodes. The invoice contains the payment amount and an optional memo. Returns the payment request string that can be used with pay_invoice. Works with LND, c-lightning, eclair, and litd nodes.| Parameter | Type | Description |
|---|---|---|
| amount * | number | Amount in satoshis for the invoice |
| memo | string | Optional description/memo for the invoice |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node to create invoice on |
create_networkCreates a new Lightning Network in Polar with the specified node implementations and versions. Use the list_node_versions tool to see supported versions. Nodes that omit a version will use the latest available.| Parameter | Type | Description |
|---|---|---|
| description | string | Description of the network |
| name * | string | Name of the network |
| nodes | array | List of nodes to include in the new network. Each entry may specify a version and count (defaults to 1). |
decode_tap_addressDecode Taproot Asset address| Parameter | Type | Description |
|---|---|---|
| address * | string | The Taproot Asset address to decode |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node |
delete_networkPermanently deletes a Lightning Network in Polar. This will remove all nodes, channels, and data associated with the network. This action cannot be undone.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network to delete |
deposit_fundsDeposit Bitcoin from the network to a Lightning node on-chain wallet. This sends funds from the Bitcoin Core node to the Lightning node, then mines blocks to confirm the transaction. The deposited funds will be available in the Lightning node wallet for opening channels or on-chain transactions. Works with LND, c-lightning, eclair, and litd nodes.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node to deposit funds to |
| sats * | number | Amount in satoshis to deposit |
export_network_to_zipExports a Lightning Network to a .polar.zip file. The network must be in Stopped or Error status. The exported file can be imported back into Polar using the import_network_from_zip tool.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network to export |
| outputPath * | string | Absolute path where the .polar.zip file will be saved |
fund_tap_channelFund a Lightning Network channel with Taproot Assets between two litd nodes. This creates an asset-enabled payment channel using the specified asset as collateral. The asset must exist on the source node and will be locked in the channel. Works with litd nodes only (which include integrated LND + tapd).| Parameter | Type | Description |
|---|---|---|
| amount * | number | Amount of the asset to fund the channel with |
| assetId * | string | Asset ID of the Taproot Asset to use for funding |
| fromNode * | string | Name of the source litd node (the one holding the asset) |
| networkId * | number | ID of the network |
| toNode * | string | Name of the destination litd node |
get_assets_in_channelsGet all Taproot Assets available in Lightning channels for a litd node. Returns assets with their balances and peer information. Works only with litd nodes (which include integrated LND + Lightning Terminal + tapd).| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node to get assets in channels for |
get_bitcoin_wallet_infoGet wallet information from a Bitcoin node including the total balance and transaction count. Returns the current wallet balance in BTC and the total number of transactions in the wallet.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName | string | Name of the Bitcoin node to query (optional, uses first node if not specified) |
get_blockchain_infoGet blockchain information from a Bitcoin node in a Polar network. Returns current block height, chain name, difficulty, and other blockchain state.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName | string | Name of the Bitcoin node to query (optional, uses first node if not specified) |
get_default_node_commandReturns the default docker command for a given node implementation and version. The command includes placeholders like {{name}}, {{backendName}}, etc. that get replaced with actual values when the node starts. If version is not provided, the latest version will be used.| Parameter | Type | Description |
|---|---|---|
| implementation * | string | The node implementation to get the default command for |
| version | string | Optional version of the implementation. Uses latest if not specified. |
get_new_bitcoin_addressGenerate new Bitcoin address for Lightning/Bitcoin nodes. This creates a new receiving address that can be used to receive on-chain Bitcoin payments.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName | string | Name of the node to generate address for (optional, uses first available node if not specified) |
get_node_infoGet information about a Lightning node including its public key, alias, sync status, block height, and channel counts. This provides essential node information for monitoring and debugging Lightning Network operations.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node to get info for |
get_tap_addressGenerate Taproot Asset address| Parameter | Type | Description |
|---|---|---|
| amount * | string | The amount of the asset to send |
| assetId * | string | The asset ID to create an address for |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node |
get_tap_balancesGet all Taproot Asset balances for a specific tapd or litd node. Returns a list of assets with their balances. Works with tapd nodes and litd nodes (which include integrated tapd).| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node to get balances from |
get_wallet_balanceGet the on-chain wallet balance for a Lightning node (LND, c-lightning, eclair, or litd). Returns the total, confirmed, and unconfirmed balances in satoshis. This shows the funds available in the node's on-chain Bitcoin wallet that can be used to open channels or for on-chain transactions. Note: This does not return channel balances - use list_channels to see balances within Lightning channels.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node to get balance for |
import_network_from_zipImports a Lightning Network from a .polar.zip file that was previously exported from Polar. The zip file must exist at the specified path. Returns the imported network summary.| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute path to the .polar.zip file to import |
list_channelsList all Lightning Network channels for a specific node, including both channels initiated by the node and channels where the node is the peer. Returns information about each channel including status, balances, capacity, and whether the channel is pending, open, or closed. This is useful for checking channel connectivity and balance distribution.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the Lightning node to list channels for |
list_litd_sessionsList all Lightning Node Connect (LNC) sessions for a litd node. This provides information about active sessions including labels, states, pairing phrases, and expiration times. Useful for managing remote Lightning node connections.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node to list sessions for |
list_networksLists all Lightning Networks in Polar with their configurations and statuslist_node_versionsLists all supported versions for node implementations included in Polar and the compatibility requirements for each version. The compatibility requirements are a map of version to the minimum version that is compatible with it.| Parameter | Type | Description |
|---|---|---|
| implementation | string | Filter to show versions for a specific implementation only (optional) |
list_tap_assetsList all Taproot Assets for a specific tapd or litd node. Returns asset details including ID, name, type, amount, genesis point, and decimals. Works with tapd nodes and litd nodes (which include integrated tapd).| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node to list assets from |
mine_blocksMine Bitcoin blocks in a Polar network. This generates new blocks on the Bitcoin blockchain, which is necessary for confirming transactions and advancing the chain.| Parameter | Type | Description |
|---|---|---|
| blocks | number | Number of blocks to mine (default: 6) |
| networkId * | number | ID of the network |
| nodeName | string | Name of the Bitcoin node to mine with (optional, uses first node if not specified) |
mint_tap_assetMint a new Taproot Asset on a tapd or litd node. Creates a new asset with the specified parameters. For normal assets, you can specify an amount and decimals. For collectibles, the amount is always 1. Set finalize=true to automatically finalize the batch and mine blocks to confirm. Set autoFund=true to automatically fund the node with Bitcoin if needed. Works with tapd nodes and litd nodes (which include integrated tapd).| Parameter | Type | Description |
|---|---|---|
| amount * | number | Amount to mint (ignored for collectibles, which are always 1) |
| assetType * | string | Type of asset: "normal" for fungible assets, "collectible" for NFTs |
| autoFund | boolean | Whether to automatically fund the LND node with Bitcoin if needed |
| decimals | number | Number of decimal places for the asset (default: 0, max: 8). Only for normal assets. The amount must be the total number of units in the supply, so 10000 amount with 2 decimals would be displayed as 100.00 |
| enableEmission | boolean | Whether to enable future emission for this asset (creates an asset group) |
| finalize | boolean | Whether to finalize the batch immediately and mine blocks to confirm |
| name * | string | Name of the asset |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node to mint the asset on |
open_channelOpen a Lightning Network channel between two nodes in a Polar network. This creates a payment channel with the specified capacity. You can optionally set the channel as private and auto-fund the source node if it lacks sufficient balance.| Parameter | Type | Description |
|---|---|---|
| autoFund | boolean | Automatically deposit funds to the source node if it lacks sufficient balance. Default: true |
| fromNode * | string | Name of the source Lightning node (the one funding the channel) |
| isPrivate | boolean | Whether the channel should be private (not announced to the network). Default: false |
| networkId * | number | ID of the network |
| sats * | number | Channel capacity in satoshis |
| toNode * | string | Name of the destination Lightning node |
pay_asset_invoicePay a Lightning invoice using Taproot Assets from a litd node. The node must have sufficient assets in channels to pay the invoice. Works only with litd nodes (which include integrated LND + Lightning Terminal + tapd).| Parameter | Type | Description |
|---|---|---|
| assetId * | string | ID of the Taproot Asset to use for payment |
| fromNode * | string | Name of the litd node to pay the invoice from |
| invoice * | string | The Lightning invoice string to pay |
| networkId * | number | ID of the network |
pay_invoicePay a Lightning Network payment invoice from a specific node. The invoice is a BOLT11 payment request string. An optional amount can be provided for invoices without a specific amount. Returns a payment receipt with the preimage and fees paid. Works with LND, c-lightning, eclair, and litd nodes.| Parameter | Type | Description |
|---|---|---|
| amount | number | Optional amount in satoshis to pay for an invoice without a specified amount |
| fromNode * | string | Name of the Lightning node to pay the invoice from |
| invoice * | string | The BOLT11 payment request string to pay |
| networkId * | number | ID of the network |
remove_nodeRemoves a node from an existing Polar network. This will permanently delete the node and all its data. Supports removing Lightning nodes (LND, c-lightning, eclair, litd), Bitcoin nodes (bitcoind), and Taproot Asset nodes (tapd). If the network is running, the node will be stopped before removal.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network containing the node to remove |
| nodeName * | string | Name of the node to remove from the network |
rename_networkRenames a Lightning Network in Polar and optionally updates its description. The name is used for identification and must be unique among networks.| Parameter | Type | Description |
|---|---|---|
| description | string | Optional new description for the network |
| name * | string | New name for the network |
| networkId * | number | ID of the network to rename |
rename_nodeRenames a node in an existing Polar network. This will update the node name throughout the system, including Docker containers, configuration files, and UI references. Supports renaming Lightning nodes (LND, c-lightning, eclair, litd), Bitcoin nodes (bitcoind), and Taproot Asset nodes (tapd). If the network is running, it will be temporarily stopped during the rename operation.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network containing the node to rename |
| newName * | string | New name for the node |
| oldName * | string | Current name of the node to rename |
restart_nodeRestarts a specific node in a Polar network. The node must be in Started or Error state. This operation stops the node first, then starts it again. Supports Bitcoin Core, Lightning Network, and Taproot Assets daemon nodes.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network containing the node |
| nodeName * | string | Name of the node to restart |
revoke_litd_sessionRevoke an existing Lightning Node Connect (LNC) session for a litd node. This permanently disables the session and invalidates its pairing phrase. The session will no longer be usable for remote connections.| Parameter | Type | Description |
|---|---|---|
| localPublicKey * | string | Local public key of the session to revoke |
| networkId * | number | ID of the network |
| nodeName * | string | Name of the litd node to revoke session for |
send_bitcoinSend on-chain Bitcoin transaction from a Bitcoin node to an address, optionally mining blocks to confirm the transaction.| Parameter | Type | Description |
|---|---|---|
| amount * | number | Amount of Bitcoin to send (in bitcoin, so 0.00000001 is 1 satoshi) |
| autoMine | boolean | Whether to automatically mine 6 blocks to confirm the transaction (default: false) |
| fromNode * | string | Name of the node sending the Bitcoin |
| networkId * | number | ID of the network |
| toAddress * | string | Bitcoin address to send to |
send_tap_assetSend a Taproot Asset from a tapd or litd node to a given address. Set autoFund=true to automatically fund the node with Bitcoin if needed. Works with tapd nodes and litd nodes (which include integrated tapd).| Parameter | Type | Description |
|---|---|---|
| address * | string | The Taproot Asset address to send to |
| autoFund | boolean | Whether to automatically fund the LND node with Bitcoin if needed |
| fromNode * | string | Name of the tapd or litd node to send the asset from |
| networkId * | number | ID of the network |
set_auto_mine_modeSet the auto-mining mode for a Polar network. Auto-mining automatically generates new blocks at regular intervals, which is useful for testing Lightning Network functionality.| Parameter | Type | Description |
|---|---|---|
| mode * | number | Auto-mining mode: 0=Off, 30=Every 30s, 60=Every 1m, 300=Every 5m, 600=Every 10m |
| networkId * | number | ID of the network |
set_lightning_backendChanges the Bitcoin backend node for a Lightning Network node. This reassigns which Bitcoin node the Lightning node will connect to as its backend. If the network is running, the Lightning node will be restarted to apply the change.| Parameter | Type | Description |
|---|---|---|
| bitcoinNodeName * | string | Name of the Bitcoin node to set as the backend |
| lightningNodeName * | string | Name of the Lightning node whose backend should be changed |
| networkId * | number | ID of the network containing the nodes |
set_tap_backendChanges the LND backend node for a Taproot Assets (TAP) node. This reassigns which LND node the TAP node will connect to as its backend.| Parameter | Type | Description |
|---|---|---|
| lndNodeName * | string | Name of the LND node to set as the backend |
| networkId * | number | ID of the network containing the nodes |
| tapNodeName * | string | Name of the TAP node whose backend should be changed |
start_networkStarts a Lightning Network in Polar. This will start all Bitcoin and Lightning nodes in the specified network.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network to start |
start_nodeStarts a specific node in a Polar network. The node must be in Stopped or Error state. Supports Bitcoin Core, Lightning Network, and Taproot Assets daemon nodes.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network containing the node |
| nodeName * | string | Name of the node to start |
stop_networkStops a Lightning Network in Polar. This will gracefully shut down all Bitcoin and Lightning nodes in the specified network.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network to stop |
stop_nodeStops a specific node in a Polar network. The node must be in Started state. Supports Bitcoin Core, Lightning Network, and Taproot Assets daemon nodes.| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network containing the node |
| nodeName * | string | Name of the node to stop |
sync_tap_universeSync with Taproot Assets universe| Parameter | Type | Description |
|---|---|---|
| networkId * | number | ID of the network |
| nodeName * | string | Name of the tapd or litd node |
| universeNodeName * | string | The name of the tapd node to sync with |
update_node_commandUpdates the custom docker command for a node in a network. This allows customization of node startup parameters. The command will be used instead of the default command for the node implementation. Leave command empty to reset to the default.| Parameter | Type | Description |
|---|---|---|
| command * | string | The docker command to use for the node. Empty string resets to default. |
| networkId * | number | ID of the network containing the node |
| nodeName * | string | Name of the node whose command should be updated |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 716 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by yarn.lock.
- !No dynamic code executionScanned 294 source files and found 2 calls to eval or shell execution, in electron/hacks/windows.ts:8 and electron/hacks/windows.ts:26. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- 2 callselectron/hacks/windows.ts:8, electron/hacks/windows.ts:26
- Outbound network calls
- 1 callsrc/lib/lightning/eclair/eclairApi.ts:93
- Writes or deletes files
- No file writes or deletes
- Lockfile
- yarn.lock
Pattern matches on the source text of 294 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 716 words, fetched 2 days ago. The original in the repository is authoritative.
Read full README