About Btc Lightning Client
Btc Lightning Client is an MCP server published by ehallmark in the Content category: a Bitcoin lightning client designed for Agentic workflows.
The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/ehallmark/btc-lightning-clientThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Btc Lightning Client
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- ✓License declaredUsable under a stated license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
Bitcoin Lightning Client for Agentic Workflows
GitHub: https://github.com/ehallmark/btc-lightning-client
Motivation
This repository exists as a lightweight Python client to easily connect with a Lightning Network Daemon (lnd). This library is used by https://github.com/ehallmark/btc-lightning-mcp-server for wrapping lnd in an MCP (Model Context Protocol) server to be used with Agentic systems.
Prerequisites
- You must have a running Lightning Network Daemon (
lnd) running on your machine. For more information onlnd, visit https://github.com/lightningnetwork/lnd. - Python >= 3.9
pip,uv, or similar for package management.
Installation
# with pip
pip install lightning-client-mcp
# or with uv
uv add lightning-client-mcp
Example Usage
import os
from google.protobuf.json_format import MessageToJson
from lightning_client import LightningClient
# Initialize the client
client = LightningClient(
rpc_port=10003,
cert_path=os.path.expanduser('~/Library/Application Support/Lnd/tls.cert'),
macaroon_path=os.path.expanduser('~/repos/lightning-ai/dev/charlie/data/chain/bitcoin/simnet/admin.macaroon')
)
# Call an RPC method
print(MessageToJson(client.ListChannels(client.ListChannelsRequest())))
# Output
{
"channels": [
{
"active": true,
"remotePubkey": "abc...",
...
}
]
}
README fetched from the repository 3 days ago. The original is authoritative.