MCP server exposing your self-hosted, non-custodial Conduit Lightning instance to any MCP-compatible AI agent
Project description
conduit-btc-mcp
Model Context Protocol server that exposes Conduit Lightning payments as tools to any MCP-compatible AI agent (Claude Desktop, Cursor, custom agents).
Installs as the PyPI package
conduit-btc-mcp; the console command it provides isconduit-mcp(that's what you put inclaude_desktop_config.json).
Conduit is self-hosted and non-custodial. This MCP server connects to your own Conduit instance — the one you run against your own LND node, with your own keys. It is not a hosted Conduit service and never touches your funds. You point it at your deployment with two environment variables:
CONDUIT_API_KEY— an API key you minted on your Conduit instance.CONDUIT_API_URL— the base URL of your instance (e.g.https://conduit.your-domain.com). Optional; if unset it defaults to the hosted demo athttps://api.conduit.energy. Set it to your own URL in production.
Your node, your keys, your rules.
Install
pip install conduit-btc-mcp
Configure (Claude Desktop)
Add to claude_desktop_config.json, pointing CONDUIT_API_URL at your
self-hosted Conduit instance:
{
"mcpServers": {
"conduit": {
"command": "conduit-mcp",
"env": {
"CONDUIT_API_KEY": "ck_live_xxxxxxxxxxxx",
"CONDUIT_API_URL": "https://conduit.your-domain.com"
}
}
}
}
Tools exposed
Each tool requires a particular API-key scope. Conduit enforces these scopes
server-side: a key with an insufficient scope is rejected. Mint a key with the
right scope on your instance (read < write < admin; higher scopes include
lower ones).
| Tool | Purpose | Required scope |
|---|---|---|
conduit_create_wallet |
Create an agent wallet with a daily limit (sats) | admin |
conduit_credit |
Fund an agent wallet from operator node liquidity (sats) | admin |
conduit_attach_policy |
Set spending controls: per-tx, hourly, daily, allow/blocklist | admin |
conduit_balance |
Read current balance | read |
conduit_pay |
Send to a Lightning address (name@host) or BOLT11 invoice |
write |
conduit_receive |
Generate an invoice for inbound payment | write |
conduit_transactions |
List recent transactions | read |
conduit_fees |
Report this operator's platform-fee revenue (sats) | admin |
Scopes, accurately. Creating agents (
conduit_create_wallet) and setting policies (conduit_attach_policy) are admin operations — anadmin-scope key is required, not merelywrite. Sending payments and generating invoices requirewrite. Reading balances and transactions requireread. The platform-fee report (conduit_fees) requiresadmin. If you want an agent to spend but never reconfigure itself, give it awritekey — it canpayandreceive, but not create wallets, change policies, or read fee revenue.
conduit_fees
Calls GET /v1/fees on your instance (admin scope) and returns the operator's
accumulated platform-fee revenue — the small per-payment fee (in sats) Conduit
charges on top of each payment and keeps on settle (refunded in full on
failure). The fee is configured by you, the operator, via PLATFORM_FEE_PERCENT
/ PLATFORM_FEE_MIN_SATS / PLATFORM_FEE_MAX_SATS on your deployment. Returns:
{
"total_collected_sats": 12345,
"total_collected_btc": 0.00012345,
"today_sats": 678,
"fees_by_day": [
{ "date": "2026-06-06", "sats": 678, "tx_count": 9 }
]
}
fees_by_day is ordered most-recent-first.
Policy enforcement
The Conduit policy engine enforces every payment before it reaches the Lightning Network. An AI cannot exceed the limits attached to its wallet.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conduit_btc_mcp-0.8.4.tar.gz.
File metadata
- Download URL: conduit_btc_mcp-0.8.4.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09336c13b6fd5ea0e78cdb15732201a219cee128368fc9410dda2b8577fbd1bb
|
|
| MD5 |
e0f8aa24b2ba3fecb41471e8ed501aa6
|
|
| BLAKE2b-256 |
5f80ee390129b63ca10d5120ddd96178300e39736c8e3a64f66292c45558b19c
|
File details
Details for the file conduit_btc_mcp-0.8.4-py3-none-any.whl.
File metadata
- Download URL: conduit_btc_mcp-0.8.4-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eae19dbb1c604dabc4d5a2714f8a80a30fee7ee2da56b709a0d381abc190817
|
|
| MD5 |
0acda560b67782f0667821687b8bc2b3
|
|
| BLAKE2b-256 |
0880c9dec00a98c0e35caca73eb2a5ea9cb6df342680923d7377858375aa87db
|