Skip to main content

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 is conduit-mcp (that's what you put in claude_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 at https://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 — an admin-scope key is required, not merely write. Sending payments and generating invoices require write. Reading balances and transactions require read. The platform-fee report (conduit_fees) requires admin. If you want an agent to spend but never reconfigure itself, give it a write key — it can pay and receive, 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conduit_btc_mcp-0.8.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conduit_btc_mcp-0.8.5-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file conduit_btc_mcp-0.8.5.tar.gz.

File metadata

  • Download URL: conduit_btc_mcp-0.8.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for conduit_btc_mcp-0.8.5.tar.gz
Algorithm Hash digest
SHA256 bd4b0ae295c314e0dde66946bff0cf7838015d27e6335b077b9e4ea635a07639
MD5 6ae9a02be69f502e5d8c5e1a9d35c103
BLAKE2b-256 acd2ef2e60da58e2d5d996dec8bf55a1789952455fc2550a7d6d57c1a6edf44e

See more details on using hashes here.

File details

Details for the file conduit_btc_mcp-0.8.5-py3-none-any.whl.

File metadata

File hashes

Hashes for conduit_btc_mcp-0.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d79ceb7b398fd4d904a9be3075919dbba24d61406c988d2e18872bed0497317e
MD5 1d0693cc24d6ecfebfd27ce3013ec815
BLAKE2b-256 133b049967c4c463b1140481a50a47d315dbd8554175513edfc9b0eefc21e77e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page